rules

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Overview

Package rules implements rules that are shared across providers and correspond to the latest supported ruleset version. These rules can be reused by an older supported ruleset versions in case a rule implementation did not change. Rule implementations that had changed in latest supported version but still need to be supported because of old ruleset versions should be separated in ruleset versioned specific package.

Index

Constants

View Source
const (
	ID242376 = "242376"
	ID242377 = "242377"
	ID242378 = "242378"
	ID242379 = "242379"
	ID242380 = "242380"
	ID242381 = "242381"
	ID242382 = "242382"
	ID242383 = "242383"
	ID242384 = "242384"
	ID242385 = "242385"
	ID242386 = "242386"
	ID242387 = "242387"
	ID242388 = "242388"
	ID242389 = "242389"
	ID242390 = "242390"
	ID242391 = "242391"
	ID242392 = "242392"
	ID242393 = "242393"
	ID242394 = "242394"
	ID242395 = "242395"
	ID242396 = "242396"
	ID242397 = "242397"
	ID242398 = "242398"
	ID242399 = "242399"
	ID242400 = "242400"
	ID242402 = "242402"
	ID242403 = "242403"
	ID242404 = "242404"
	ID242405 = "242405"
	ID242406 = "242406"
	ID242407 = "242407"
	ID242408 = "242408"
	ID242409 = "242409"
	ID242410 = "242410"
	ID242411 = "242411"
	ID242412 = "242412"
	ID242413 = "242413"
	ID242414 = "242414"
	ID242415 = "242415"
	ID242417 = "242417"
	ID242418 = "242418"
	ID242419 = "242419"
	ID242420 = "242420"
	ID242421 = "242421"
	ID242422 = "242422"
	ID242423 = "242423"
	ID242424 = "242424"
	ID242425 = "242425"
	ID242426 = "242426"
	ID242427 = "242427"
	ID242428 = "242428"
	ID242429 = "242429"
	ID242430 = "242430"
	ID242431 = "242431"
	ID242432 = "242432"
	ID242433 = "242433"
	ID242434 = "242434"
	ID242436 = "242436"
	ID242437 = "242437"
	ID242438 = "242438"
	ID242442 = "242442"
	ID242443 = "242443"
	ID242444 = "242444"
	ID242445 = "242445"
	ID242446 = "242446"
	ID242447 = "242447"
	ID242448 = "242448"
	ID242449 = "242449"
	ID242450 = "242450"
	ID242451 = "242451"
	ID242452 = "242452"
	ID242453 = "242453"
	ID242454 = "242454"
	ID242455 = "242455"
	ID242456 = "242456"
	ID242457 = "242457"
	ID242459 = "242459"
	ID242460 = "242460"
	ID242461 = "242461"
	ID242462 = "242462"
	ID242463 = "242463"
	ID242464 = "242464"
	ID242465 = "242465"
	ID242466 = "242466"
	ID242467 = "242467"
	ID245541 = "245541"
	ID245542 = "245542"
	ID245543 = "245543"
	ID245544 = "245544"
	ID254800 = "254800"
	ID254801 = "254801"
)

Variables

View Source
var (
	// Generator is a not secure random Generator. Exposed for testing purposes.
	Generator stringgen.StringGenerator = stringgen.Default()
)

Functions

This section is empty.

Types

type AcceptedPods242417

type AcceptedPods242417 struct {
	option.PodSelector
	Justification string `json:"justification" yaml:"justification"`
	Status        string `json:"status" yaml:"status"`
}

type AcceptedResources242383

type AcceptedResources242383 struct {
	ObjectSelector
	Justification string `json:"justification" yaml:"justification"`
	Status        string `json:"status" yaml:"status"`
}

type ObjectSelector added in v0.12.0

type ObjectSelector struct {
	APIVersion           string            `json:"apiVersion" yaml:"apiVersion"`
	Kind                 string            `json:"kind" yaml:"kind"`
	MatchLabels          map[string]string `json:"matchLabels" yaml:"matchLabels"`
	NamespaceMatchLabels map[string]string `json:"namespaceMatchLabels" yaml:"namespaceMatchLabels"`
}

func (ObjectSelector) Validate added in v0.12.0

func (s ObjectSelector) Validate() field.ErrorList

type Options242383

type Options242383 struct {
	AcceptedResources []AcceptedResources242383 `json:"acceptedResources" yaml:"acceptedResources"`
}

func (Options242383) Validate

func (o Options242383) Validate() field.ErrorList

type Options242393

type Options242393 struct {
	NodeGroupByLabels []string `json:"nodeGroupByLabels" yaml:"nodeGroupByLabels"`
}

func (Options242393) Validate

func (o Options242393) Validate() field.ErrorList

type Options242394

type Options242394 struct {
	NodeGroupByLabels []string `json:"nodeGroupByLabels" yaml:"nodeGroupByLabels"`
}

func (Options242394) Validate

func (o Options242394) Validate() field.ErrorList

type Options242396

type Options242396 struct {
	NodeGroupByLabels []string `json:"nodeGroupByLabels" yaml:"nodeGroupByLabels"`
}

func (Options242396) Validate

func (o Options242396) Validate() field.ErrorList

type Options242404

type Options242404 struct {
	NodeGroupByLabels []string `json:"nodeGroupByLabels" yaml:"nodeGroupByLabels"`
}

func (Options242404) Validate

func (o Options242404) Validate() field.ErrorList

type Options242406

type Options242406 struct {
	NodeGroupByLabels []string `json:"nodeGroupByLabels" yaml:"nodeGroupByLabels"`
	*option.FileOwnerOptions
}

func (Options242406) Validate

func (o Options242406) Validate() field.ErrorList

type Options242407

type Options242407 struct {
	NodeGroupByLabels []string `json:"nodeGroupByLabels" yaml:"nodeGroupByLabels"`
}

func (Options242407) Validate

func (o Options242407) Validate() field.ErrorList

type Options242417

type Options242417 struct {
	AcceptedPods []AcceptedPods242417 `json:"acceptedPods" yaml:"acceptedPods"`
}

func (Options242417) Validate

func (o Options242417) Validate() field.ErrorList

type Options242447

type Options242447 struct {
	KubeProxyMatchLabels map[string]string `json:"kubeProxyMatchLabels" yaml:"kubeProxyMatchLabels"`
}

func (Options242447) Validate

func (o Options242447) Validate() field.ErrorList

type Options242448

type Options242448 struct {
	KubeProxyMatchLabels map[string]string `json:"kubeProxyMatchLabels" yaml:"kubeProxyMatchLabels"`
	*option.FileOwnerOptions
}

func (Options242448) Validate

func (o Options242448) Validate() field.ErrorList

type Options242449

type Options242449 struct {
	NodeGroupByLabels []string `json:"nodeGroupByLabels" yaml:"nodeGroupByLabels"`
}

func (Options242449) Validate

func (o Options242449) Validate() field.ErrorList

type Options242450

type Options242450 struct {
	NodeGroupByLabels []string `json:"nodeGroupByLabels" yaml:"nodeGroupByLabels"`
	*option.FileOwnerOptions
}

func (Options242450) Validate

func (o Options242450) Validate() field.ErrorList

type Options242452

type Options242452 struct {
	NodeGroupByLabels []string `json:"nodeGroupByLabels" yaml:"nodeGroupByLabels"`
}

func (Options242452) Validate

func (o Options242452) Validate() field.ErrorList

type Options242453

type Options242453 struct {
	NodeGroupByLabels []string `json:"nodeGroupByLabels" yaml:"nodeGroupByLabels"`
	*option.FileOwnerOptions
}

func (Options242453) Validate

func (o Options242453) Validate() field.ErrorList

type Options245543

type Options245543 struct {
	AcceptedTokens []struct {
		User   string `yaml:"user"`
		UID    string `yaml:"uid"`
		Groups string `yaml:"groups"`
	}
}

func (Options245543) Validate

func (o Options245543) Validate() field.ErrorList

type Options254800

type Options254800 struct {
	MinPodSecurityStandardsProfile intkubeutils.PodSecurityStandardProfile `json:"minPodSecurityStandardsProfile" yaml:"minPodSecurityStandardsProfile"`
}

func (Options254800) Validate

func (o Options254800) Validate() field.ErrorList

type Rule242376

type Rule242376 struct {
	Client         client.Client
	Namespace      string
	DeploymentName string
	ContainerName  string
}

func (*Rule242376) ID

func (r *Rule242376) ID() string

func (*Rule242376) Name

func (r *Rule242376) Name() string

func (*Rule242376) Run

func (r *Rule242376) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242376) Severity added in v0.13.0

func (r *Rule242376) Severity() rule.SeverityLevel

type Rule242378

type Rule242378 struct {
	Client         client.Client
	Namespace      string
	DeploymentName string
	ContainerName  string
}

func (*Rule242378) ID

func (r *Rule242378) ID() string

func (*Rule242378) Name

func (r *Rule242378) Name() string

func (*Rule242378) Run

func (r *Rule242378) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242378) Severity added in v0.13.0

func (r *Rule242378) Severity() rule.SeverityLevel

type Rule242379

type Rule242379 struct {
	Client                client.Client
	Namespace             string
	StatefulSetETCDMain   string
	StatefulSetETCDEvents string
}

func (*Rule242379) ID

func (r *Rule242379) ID() string

func (*Rule242379) Name

func (r *Rule242379) Name() string

func (*Rule242379) Run

func (r *Rule242379) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242379) Severity added in v0.13.0

func (r *Rule242379) Severity() rule.SeverityLevel

type Rule242380

type Rule242380 struct {
	Client                client.Client
	Namespace             string
	StatefulSetETCDMain   string
	StatefulSetETCDEvents string
}

func (*Rule242380) ID

func (r *Rule242380) ID() string

func (*Rule242380) Name

func (r *Rule242380) Name() string

func (*Rule242380) Run

func (r *Rule242380) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242380) Severity added in v0.13.0

func (r *Rule242380) Severity() rule.SeverityLevel

type Rule242381

type Rule242381 struct {
	Client         client.Client
	Namespace      string
	DeploymentName string
	ContainerName  string
}

func (*Rule242381) ID

func (r *Rule242381) ID() string

func (*Rule242381) Name

func (r *Rule242381) Name() string

func (*Rule242381) Run

func (r *Rule242381) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242381) Severity added in v0.13.0

func (r *Rule242381) Severity() rule.SeverityLevel

type Rule242382

type Rule242382 struct {
	Client             client.Client
	Namespace          string
	DeploymentName     string
	ContainerName      string
	ExpectedStartModes []string
}

func (*Rule242382) ID

func (r *Rule242382) ID() string

func (*Rule242382) Name

func (r *Rule242382) Name() string

func (*Rule242382) Run

func (r *Rule242382) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242382) Severity added in v0.13.0

func (r *Rule242382) Severity() rule.SeverityLevel

type Rule242383

type Rule242383 struct {
	Client  client.Client
	Options *Options242383
}

func (*Rule242383) ID

func (r *Rule242383) ID() string

func (*Rule242383) Name

func (r *Rule242383) Name() string

func (*Rule242383) Run

func (r *Rule242383) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242383) Severity added in v0.13.0

func (r *Rule242383) Severity() rule.SeverityLevel

type Rule242386

type Rule242386 struct {
	Client         client.Client
	Namespace      string
	DeploymentName string
	ContainerName  string
}

func (*Rule242386) ID

func (r *Rule242386) ID() string

func (*Rule242386) Name

func (r *Rule242386) Name() string

func (*Rule242386) Run

func (r *Rule242386) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242386) Severity added in v0.13.0

func (r *Rule242386) Severity() rule.SeverityLevel

type Rule242387

type Rule242387 struct {
	Client       client.Client
	V1RESTClient rest.Interface
}

func (*Rule242387) ID

func (r *Rule242387) ID() string

func (*Rule242387) Name

func (r *Rule242387) Name() string

func (*Rule242387) Run

func (r *Rule242387) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242387) Severity added in v0.13.0

func (r *Rule242387) Severity() rule.SeverityLevel

type Rule242388

type Rule242388 struct {
	Client         client.Client
	Namespace      string
	DeploymentName string
	ContainerName  string
}

func (*Rule242388) ID

func (r *Rule242388) ID() string

func (*Rule242388) Name

func (r *Rule242388) Name() string

func (*Rule242388) Run

func (r *Rule242388) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242388) Severity added in v0.13.0

func (r *Rule242388) Severity() rule.SeverityLevel

type Rule242389

type Rule242389 struct {
	Client         client.Client
	Namespace      string
	DeploymentName string
	ContainerName  string
}

func (*Rule242389) ID

func (r *Rule242389) ID() string

func (*Rule242389) Name

func (r *Rule242389) Name() string

func (*Rule242389) Run

func (r *Rule242389) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242389) Severity added in v0.13.0

func (r *Rule242389) Severity() rule.SeverityLevel

type Rule242390

type Rule242390 struct {
	Client         client.Client
	Namespace      string
	DeploymentName string
	ContainerName  string
}

func (*Rule242390) ID

func (r *Rule242390) ID() string

func (*Rule242390) Name

func (r *Rule242390) Name() string

func (*Rule242390) Run

func (r *Rule242390) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242390) Severity added in v0.13.0

func (r *Rule242390) Severity() rule.SeverityLevel

type Rule242391

type Rule242391 struct {
	Client       client.Client
	V1RESTClient rest.Interface
}

func (*Rule242391) ID

func (r *Rule242391) ID() string

func (*Rule242391) Name

func (r *Rule242391) Name() string

func (*Rule242391) Run

func (r *Rule242391) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242391) Severity added in v0.13.0

func (r *Rule242391) Severity() rule.SeverityLevel

type Rule242392

type Rule242392 struct {
	Client       client.Client
	V1RESTClient rest.Interface
}

func (*Rule242392) ID

func (r *Rule242392) ID() string

func (*Rule242392) Name

func (r *Rule242392) Name() string

func (*Rule242392) Run

func (r *Rule242392) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242392) Severity added in v0.13.0

func (r *Rule242392) Severity() rule.SeverityLevel

type Rule242393

type Rule242393 struct {
	InstanceID string
	Client     client.Client
	PodContext pod.PodContext
	Options    *Options242393
	Logger     provider.Logger
}

func (*Rule242393) ID

func (r *Rule242393) ID() string

func (*Rule242393) Name

func (r *Rule242393) Name() string

func (*Rule242393) Run

func (r *Rule242393) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242393) Severity added in v0.13.0

func (r *Rule242393) Severity() rule.SeverityLevel

type Rule242394

type Rule242394 struct {
	InstanceID string
	Client     client.Client
	PodContext pod.PodContext
	Options    *Options242394
	Logger     provider.Logger
}

func (*Rule242394) ID

func (r *Rule242394) ID() string

func (*Rule242394) Name

func (r *Rule242394) Name() string

func (*Rule242394) Run

func (r *Rule242394) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242394) Severity added in v0.13.0

func (r *Rule242394) Severity() rule.SeverityLevel

type Rule242395

type Rule242395 struct {
	Client client.Client
}

func (*Rule242395) ID

func (r *Rule242395) ID() string

func (*Rule242395) Name

func (r *Rule242395) Name() string

func (*Rule242395) Run

func (r *Rule242395) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242395) Severity added in v0.13.0

func (r *Rule242395) Severity() rule.SeverityLevel

type Rule242396

type Rule242396 struct {
	InstanceID string
	Client     client.Client
	PodContext pod.PodContext
	Options    *Options242396
	Logger     provider.Logger
}

func (*Rule242396) ID

func (r *Rule242396) ID() string

func (*Rule242396) Name

func (r *Rule242396) Name() string

func (*Rule242396) Run

func (r *Rule242396) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242396) Severity added in v0.13.0

func (r *Rule242396) Severity() rule.SeverityLevel

type Rule242397

type Rule242397 struct {
	Client       client.Client
	V1RESTClient rest.Interface
}

func (*Rule242397) ID

func (r *Rule242397) ID() string

func (*Rule242397) Name

func (r *Rule242397) Name() string

func (*Rule242397) Run

func (r *Rule242397) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242397) Severity added in v0.13.0

func (r *Rule242397) Severity() rule.SeverityLevel

type Rule242399

type Rule242399 struct {
	Client            client.Client
	KubernetesVersion *semver.Version
	V1RESTClient      rest.Interface
}

func (*Rule242399) ID

func (r *Rule242399) ID() string

func (*Rule242399) Name

func (r *Rule242399) Name() string

func (*Rule242399) Run

func (r *Rule242399) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242399) Severity added in v0.13.0

func (r *Rule242399) Severity() rule.SeverityLevel

type Rule242402

type Rule242402 struct {
	Client         client.Client
	Namespace      string
	DeploymentName string
	ContainerName  string
}

func (*Rule242402) ID

func (r *Rule242402) ID() string

func (*Rule242402) Name

func (r *Rule242402) Name() string

func (*Rule242402) Run

func (r *Rule242402) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242402) Severity added in v0.13.0

func (r *Rule242402) Severity() rule.SeverityLevel

type Rule242403

type Rule242403 struct {
	Client         client.Client
	Namespace      string
	DeploymentName string
}

func (*Rule242403) ID

func (r *Rule242403) ID() string

func (*Rule242403) Name

func (r *Rule242403) Name() string

func (*Rule242403) Run

func (r *Rule242403) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242403) Severity added in v0.13.0

func (r *Rule242403) Severity() rule.SeverityLevel

type Rule242404

type Rule242404 struct {
	InstanceID string
	Client     client.Client
	PodContext pod.PodContext
	Options    *Options242404
	Logger     provider.Logger
}

func (*Rule242404) ID

func (r *Rule242404) ID() string

func (*Rule242404) Name

func (r *Rule242404) Name() string

func (*Rule242404) Run

func (r *Rule242404) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242404) Severity added in v0.13.0

func (r *Rule242404) Severity() rule.SeverityLevel

type Rule242406

type Rule242406 struct {
	InstanceID string
	Client     client.Client
	PodContext pod.PodContext
	Options    *Options242406
	Logger     provider.Logger
}

func (*Rule242406) ID

func (r *Rule242406) ID() string

func (*Rule242406) Name

func (r *Rule242406) Name() string

func (*Rule242406) Run

func (r *Rule242406) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242406) Severity added in v0.13.0

func (r *Rule242406) Severity() rule.SeverityLevel

type Rule242407

type Rule242407 struct {
	InstanceID string
	Client     client.Client
	PodContext pod.PodContext
	Options    *Options242407
	Logger     provider.Logger
}

func (*Rule242407) ID

func (r *Rule242407) ID() string

func (*Rule242407) Name

func (r *Rule242407) Name() string

func (*Rule242407) Run

func (r *Rule242407) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242407) Severity added in v0.13.0

func (r *Rule242407) Severity() rule.SeverityLevel

type Rule242409

type Rule242409 struct {
	Client         client.Client
	Namespace      string
	DeploymentName string
	ContainerName  string
}

func (*Rule242409) ID

func (r *Rule242409) ID() string

func (*Rule242409) Name

func (r *Rule242409) Name() string

func (*Rule242409) Run

func (r *Rule242409) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242409) Severity added in v0.13.0

func (r *Rule242409) Severity() rule.SeverityLevel

type Rule242417

type Rule242417 struct {
	Client  client.Client
	Options *Options242417
}

func (*Rule242417) ID

func (r *Rule242417) ID() string

func (*Rule242417) Name

func (r *Rule242417) Name() string

func (*Rule242417) Run

func (r *Rule242417) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242417) Severity added in v0.13.0

func (r *Rule242417) Severity() rule.SeverityLevel

type Rule242418

type Rule242418 struct {
	Client         client.Client
	Namespace      string
	DeploymentName string
	ContainerName  string
}

func (*Rule242418) ID

func (r *Rule242418) ID() string

func (*Rule242418) Name

func (r *Rule242418) Name() string

func (*Rule242418) Run

func (r *Rule242418) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242418) Severity added in v0.13.0

func (r *Rule242418) Severity() rule.SeverityLevel

type Rule242419

type Rule242419 struct {
	Client         client.Client
	Namespace      string
	DeploymentName string
	ContainerName  string
}

func (*Rule242419) ID

func (r *Rule242419) ID() string

func (*Rule242419) Name

func (r *Rule242419) Name() string

func (*Rule242419) Run

func (r *Rule242419) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242419) Severity added in v0.13.0

func (r *Rule242419) Severity() rule.SeverityLevel

type Rule242420

type Rule242420 struct {
	Client       client.Client
	V1RESTClient rest.Interface
}

func (*Rule242420) ID

func (r *Rule242420) ID() string

func (*Rule242420) Name

func (r *Rule242420) Name() string

func (*Rule242420) Run

func (r *Rule242420) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242420) Severity added in v0.13.0

func (r *Rule242420) Severity() rule.SeverityLevel

type Rule242421

type Rule242421 struct {
	Client         client.Client
	Namespace      string
	DeploymentName string
	ContainerName  string
}

func (*Rule242421) ID

func (r *Rule242421) ID() string

func (*Rule242421) Name

func (r *Rule242421) Name() string

func (*Rule242421) Run

func (r *Rule242421) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242421) Severity added in v0.13.0

func (r *Rule242421) Severity() rule.SeverityLevel

type Rule242422

type Rule242422 struct {
	Client         client.Client
	Namespace      string
	DeploymentName string
	ContainerName  string
}

func (*Rule242422) ID

func (r *Rule242422) ID() string

func (*Rule242422) Name

func (r *Rule242422) Name() string

func (*Rule242422) Run

func (r *Rule242422) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242422) Severity added in v0.13.0

func (r *Rule242422) Severity() rule.SeverityLevel

type Rule242423

type Rule242423 struct {
	Client                client.Client
	Namespace             string
	StatefulSetETCDMain   string
	StatefulSetETCDEvents string
}

func (*Rule242423) ID

func (r *Rule242423) ID() string

func (*Rule242423) Name

func (r *Rule242423) Name() string

func (*Rule242423) Run

func (r *Rule242423) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242423) Severity added in v0.13.0

func (r *Rule242423) Severity() rule.SeverityLevel

type Rule242424

type Rule242424 struct {
	Client       client.Client
	V1RESTClient rest.Interface
}

func (*Rule242424) ID

func (r *Rule242424) ID() string

func (*Rule242424) Name

func (r *Rule242424) Name() string

func (*Rule242424) Run

func (r *Rule242424) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242424) Severity added in v0.13.0

func (r *Rule242424) Severity() rule.SeverityLevel

type Rule242425

type Rule242425 struct {
	Client       client.Client
	V1RESTClient rest.Interface
}

func (*Rule242425) ID

func (r *Rule242425) ID() string

func (*Rule242425) Name

func (r *Rule242425) Name() string

func (*Rule242425) Run

func (r *Rule242425) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242425) Severity added in v0.13.0

func (r *Rule242425) Severity() rule.SeverityLevel

type Rule242426

type Rule242426 struct {
	Client                client.Client
	Namespace             string
	StatefulSetETCDMain   string
	StatefulSetETCDEvents string
}

func (*Rule242426) ID

func (r *Rule242426) ID() string

func (*Rule242426) Name

func (r *Rule242426) Name() string

func (*Rule242426) Run

func (r *Rule242426) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242426) Severity added in v0.13.0

func (r *Rule242426) Severity() rule.SeverityLevel

type Rule242427

type Rule242427 struct {
	Client                client.Client
	Namespace             string
	StatefulSetETCDMain   string
	StatefulSetETCDEvents string
}

func (*Rule242427) ID

func (r *Rule242427) ID() string

func (*Rule242427) Name

func (r *Rule242427) Name() string

func (*Rule242427) Run

func (r *Rule242427) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242427) Severity added in v0.13.0

func (r *Rule242427) Severity() rule.SeverityLevel

type Rule242428

type Rule242428 struct {
	Client                client.Client
	Namespace             string
	StatefulSetETCDMain   string
	StatefulSetETCDEvents string
}

func (*Rule242428) ID

func (r *Rule242428) ID() string

func (*Rule242428) Name

func (r *Rule242428) Name() string

func (*Rule242428) Run

func (r *Rule242428) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242428) Severity added in v0.13.0

func (r *Rule242428) Severity() rule.SeverityLevel

type Rule242429

type Rule242429 struct {
	Client         client.Client
	Namespace      string
	DeploymentName string
	ContainerName  string
}

func (*Rule242429) ID

func (r *Rule242429) ID() string

func (*Rule242429) Name

func (r *Rule242429) Name() string

func (*Rule242429) Run

func (r *Rule242429) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242429) Severity added in v0.13.0

func (r *Rule242429) Severity() rule.SeverityLevel

type Rule242430

type Rule242430 struct {
	Client         client.Client
	Namespace      string
	DeploymentName string
	ContainerName  string
}

func (*Rule242430) ID

func (r *Rule242430) ID() string

func (*Rule242430) Name

func (r *Rule242430) Name() string

func (*Rule242430) Run

func (r *Rule242430) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242430) Severity added in v0.13.0

func (r *Rule242430) Severity() rule.SeverityLevel

type Rule242431

type Rule242431 struct {
	Client         client.Client
	Namespace      string
	DeploymentName string
	ContainerName  string
}

func (*Rule242431) ID

func (r *Rule242431) ID() string

func (*Rule242431) Name

func (r *Rule242431) Name() string

func (*Rule242431) Run

func (r *Rule242431) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242431) Severity added in v0.13.0

func (r *Rule242431) Severity() rule.SeverityLevel

type Rule242432

type Rule242432 struct {
	Client                client.Client
	Namespace             string
	StatefulSetETCDMain   string
	StatefulSetETCDEvents string
}

func (*Rule242432) ID

func (r *Rule242432) ID() string

func (*Rule242432) Name

func (r *Rule242432) Name() string

func (*Rule242432) Run

func (r *Rule242432) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242432) Severity added in v0.13.0

func (r *Rule242432) Severity() rule.SeverityLevel

type Rule242433

type Rule242433 struct {
	Client                client.Client
	Namespace             string
	StatefulSetETCDMain   string
	StatefulSetETCDEvents string
}

func (*Rule242433) ID

func (r *Rule242433) ID() string

func (*Rule242433) Name

func (r *Rule242433) Name() string

func (*Rule242433) Run

func (r *Rule242433) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242433) Severity added in v0.13.0

func (r *Rule242433) Severity() rule.SeverityLevel

type Rule242434

type Rule242434 struct {
	Client       client.Client
	V1RESTClient rest.Interface
}

func (*Rule242434) ID

func (r *Rule242434) ID() string

func (*Rule242434) Name

func (r *Rule242434) Name() string

func (*Rule242434) Run

func (r *Rule242434) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242434) Severity added in v0.13.0

func (r *Rule242434) Severity() rule.SeverityLevel

type Rule242436

type Rule242436 struct {
	Client         client.Client
	Namespace      string
	DeploymentName string
	ContainerName  string
}

func (*Rule242436) ID

func (r *Rule242436) ID() string

func (*Rule242436) Name

func (r *Rule242436) Name() string

func (*Rule242436) Run

func (r *Rule242436) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242436) Severity added in v0.13.0

func (r *Rule242436) Severity() rule.SeverityLevel

type Rule242438

type Rule242438 struct {
	Client         client.Client
	Namespace      string
	DeploymentName string
	ContainerName  string
}

func (*Rule242438) ID

func (r *Rule242438) ID() string

func (*Rule242438) Name

func (r *Rule242438) Name() string

func (*Rule242438) Run

func (r *Rule242438) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242438) Severity added in v0.13.0

func (r *Rule242438) Severity() rule.SeverityLevel

type Rule242445

type Rule242445 struct {
	InstanceID string
	Client     client.Client
	Namespace  string
	PodContext pod.PodContext
	Options    *option.FileOwnerOptions
	Logger     provider.Logger
	// TODO: Drop support for "instance" etcd label in a future release
	// "instance" label is no longer in use for etcd-druid versions >= v0.23. ref: https://github.com/gardener/etcd-druid/pull/777
	ETCDMainOldSelector labels.Selector
	ETCDMainSelector    labels.Selector
	// TODO: Drop support for "instance" etcd label in a future release
	// "instance" label is no longer in use for etcd-druid versions >= v0.23. ref: https://github.com/gardener/etcd-druid/pull/777
	ETCDEventsOldSelector labels.Selector
	ETCDEventsSelector    labels.Selector
}

func (*Rule242445) ID

func (r *Rule242445) ID() string

func (*Rule242445) Name

func (r *Rule242445) Name() string

func (*Rule242445) Run

func (r *Rule242445) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242445) Severity added in v0.13.0

func (r *Rule242445) Severity() rule.SeverityLevel

type Rule242446

type Rule242446 struct {
	InstanceID      string
	Client          client.Client
	Namespace       string
	PodContext      pod.PodContext
	DeploymentNames []string
	Options         *option.FileOwnerOptions
	Logger          provider.Logger
}

func (*Rule242446) ID

func (r *Rule242446) ID() string

func (*Rule242446) Name

func (r *Rule242446) Name() string

func (*Rule242446) Run

func (r *Rule242446) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242446) Severity added in v0.13.0

func (r *Rule242446) Severity() rule.SeverityLevel

type Rule242447

type Rule242447 struct {
	InstanceID string
	Client     client.Client
	PodContext pod.PodContext
	Options    *Options242447
	Logger     provider.Logger
}

func (*Rule242447) ID

func (r *Rule242447) ID() string

func (*Rule242447) Name

func (r *Rule242447) Name() string

func (*Rule242447) Run

func (r *Rule242447) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242447) Severity added in v0.13.0

func (r *Rule242447) Severity() rule.SeverityLevel

type Rule242448

type Rule242448 struct {
	InstanceID string
	Client     client.Client
	PodContext pod.PodContext
	Options    *Options242448
	Logger     provider.Logger
}

func (*Rule242448) ID

func (r *Rule242448) ID() string

func (*Rule242448) Name

func (r *Rule242448) Name() string

func (*Rule242448) Run

func (r *Rule242448) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242448) Severity added in v0.13.0

func (r *Rule242448) Severity() rule.SeverityLevel

type Rule242449

type Rule242449 struct {
	InstanceID string
	Client     client.Client
	PodContext pod.PodContext
	Options    *Options242449
	Logger     provider.Logger
}

func (*Rule242449) ID

func (r *Rule242449) ID() string

func (*Rule242449) Name

func (r *Rule242449) Name() string

func (*Rule242449) Run

func (r *Rule242449) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242449) Severity added in v0.13.0

func (r *Rule242449) Severity() rule.SeverityLevel

type Rule242450

type Rule242450 struct {
	InstanceID string
	Client     client.Client
	PodContext pod.PodContext
	Options    *Options242450
	Logger     provider.Logger
}

func (*Rule242450) ID

func (r *Rule242450) ID() string

func (*Rule242450) Name

func (r *Rule242450) Name() string

func (*Rule242450) Run

func (r *Rule242450) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242450) Severity added in v0.13.0

func (r *Rule242450) Severity() rule.SeverityLevel

type Rule242452

type Rule242452 struct {
	InstanceID string
	Client     client.Client
	PodContext pod.PodContext
	Options    *Options242452
	Logger     provider.Logger
}

func (*Rule242452) ID

func (r *Rule242452) ID() string

func (*Rule242452) Name

func (r *Rule242452) Name() string

func (*Rule242452) Run

func (r *Rule242452) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242452) Severity added in v0.13.0

func (r *Rule242452) Severity() rule.SeverityLevel

type Rule242453

type Rule242453 struct {
	InstanceID string
	Client     client.Client
	PodContext pod.PodContext
	Options    *Options242453
	Logger     provider.Logger
}

func (*Rule242453) ID

func (r *Rule242453) ID() string

func (*Rule242453) Name

func (r *Rule242453) Name() string

func (*Rule242453) Run

func (r *Rule242453) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242453) Severity added in v0.13.0

func (r *Rule242453) Severity() rule.SeverityLevel

type Rule242459

type Rule242459 struct {
	InstanceID string
	Client     client.Client
	Namespace  string
	PodContext pod.PodContext
	Logger     provider.Logger
	// TODO: Drop support for "instance" etcd label in a future release
	// "instance" label is no longer in use for etcd-druid versions >= v0.23. ref: https://github.com/gardener/etcd-druid/pull/777
	ETCDMainOldSelector labels.Selector
	ETCDMainSelector    labels.Selector
	// TODO: Drop support for "instance" etcd label in a future release
	// "instance" label is no longer in use for etcd-druid versions >= v0.23. ref: https://github.com/gardener/etcd-druid/pull/777
	ETCDEventsOldSelector labels.Selector
	ETCDEventsSelector    labels.Selector
}

func (*Rule242459) ID

func (r *Rule242459) ID() string

func (*Rule242459) Name

func (r *Rule242459) Name() string

func (*Rule242459) Run

func (r *Rule242459) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242459) Severity added in v0.13.0

func (r *Rule242459) Severity() rule.SeverityLevel

type Rule242460

type Rule242460 struct {
	InstanceID      string
	Client          client.Client
	Namespace       string
	PodContext      pod.PodContext
	DeploymentNames []string
	Logger          provider.Logger
}

func (*Rule242460) ID

func (r *Rule242460) ID() string

func (*Rule242460) Name

func (r *Rule242460) Name() string

func (*Rule242460) Run

func (r *Rule242460) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242460) Severity added in v0.13.0

func (r *Rule242460) Severity() rule.SeverityLevel

type Rule242461

type Rule242461 struct {
	Client         client.Client
	Namespace      string
	DeploymentName string
	ContainerName  string
}

func (*Rule242461) ID

func (r *Rule242461) ID() string

func (*Rule242461) Name

func (r *Rule242461) Name() string

func (*Rule242461) Run

func (r *Rule242461) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242461) Severity added in v0.13.0

func (r *Rule242461) Severity() rule.SeverityLevel

type Rule242462

type Rule242462 struct {
	Client         client.Client
	Namespace      string
	DeploymentName string
	ContainerName  string
}

func (*Rule242462) ID

func (r *Rule242462) ID() string

func (*Rule242462) Name

func (r *Rule242462) Name() string

func (*Rule242462) Run

func (r *Rule242462) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242462) Severity added in v0.13.0

func (r *Rule242462) Severity() rule.SeverityLevel

type Rule242463

type Rule242463 struct {
	Client         client.Client
	Namespace      string
	DeploymentName string
	ContainerName  string
}

func (*Rule242463) ID

func (r *Rule242463) ID() string

func (*Rule242463) Name

func (r *Rule242463) Name() string

func (*Rule242463) Run

func (r *Rule242463) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242463) Severity added in v0.13.0

func (r *Rule242463) Severity() rule.SeverityLevel

type Rule242464

type Rule242464 struct {
	Client         client.Client
	Namespace      string
	DeploymentName string
	ContainerName  string
}

func (*Rule242464) ID

func (r *Rule242464) ID() string

func (*Rule242464) Name

func (r *Rule242464) Name() string

func (*Rule242464) Run

func (r *Rule242464) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule242464) Severity added in v0.13.0

func (r *Rule242464) Severity() rule.SeverityLevel

type Rule245541

type Rule245541 struct {
	Client       client.Client
	V1RESTClient rest.Interface
}

func (*Rule245541) ID

func (r *Rule245541) ID() string

func (*Rule245541) Name

func (r *Rule245541) Name() string

func (*Rule245541) Run

func (r *Rule245541) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule245541) Severity added in v0.13.0

func (r *Rule245541) Severity() rule.SeverityLevel

type Rule245542

type Rule245542 struct {
	Client         client.Client
	Namespace      string
	DeploymentName string
	ContainerName  string
}

func (*Rule245542) ID

func (r *Rule245542) ID() string

func (*Rule245542) Name

func (r *Rule245542) Name() string

func (*Rule245542) Run

func (r *Rule245542) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule245542) Severity added in v0.13.0

func (r *Rule245542) Severity() rule.SeverityLevel

type Rule245543

type Rule245543 struct {
	Client         client.Client
	Namespace      string
	Options        *Options245543
	DeploymentName string
	ContainerName  string
}

func (*Rule245543) ID

func (r *Rule245543) ID() string

func (*Rule245543) Name

func (r *Rule245543) Name() string

func (*Rule245543) Run

func (r *Rule245543) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule245543) Severity added in v0.13.0

func (r *Rule245543) Severity() rule.SeverityLevel

type Rule245544

type Rule245544 struct {
	Client         client.Client
	Namespace      string
	DeploymentName string
	ContainerName  string
}

func (*Rule245544) ID

func (r *Rule245544) ID() string

func (*Rule245544) Name

func (r *Rule245544) Name() string

func (*Rule245544) Run

func (r *Rule245544) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule245544) Severity added in v0.13.0

func (r *Rule245544) Severity() rule.SeverityLevel

type Rule254800

type Rule254800 struct {
	Client         client.Client
	Namespace      string
	Options        *Options254800
	DeploymentName string
	ContainerName  string
}

func (*Rule254800) ID

func (r *Rule254800) ID() string

func (*Rule254800) Name

func (r *Rule254800) Name() string

func (*Rule254800) Run

func (r *Rule254800) Run(ctx context.Context) (rule.RuleResult, error)

func (*Rule254800) Severity added in v0.13.0

func (r *Rule254800) Severity() rule.SeverityLevel

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL