Documentation
¶
Index ¶
- Constants
- type APIVersionRule
- type CheckReadOnlyRootFilesystemRule
- type ContainerSecurityContextRule
- type ControllerSecurityContextRule
- type DNSPolicyRule
- type EnvVariablesDuplicatesRule
- type HostNetworkPortsRule
- type ImageDigestRule
- type ImagePullPolicyRule
- type LivenessRule
- type NameDuplicatesRule
- type NamespaceLabelsRule
- type PortsRule
- type PriorityClassRule
- type ReadinessRuleNameRule
- type RecommendedLabelsRule
- type ResourcesRule
- type RevisionHistoryLimitRule
Constants ¶
View Source
const ( LivenessRuleName = "liveness-probe" ReadinessRuleName = "readiness-probe" )
View Source
const (
APIVersionRuleName = "object-api-version"
)
View Source
const (
CheckReadOnlyRootFilesystemRuleName = "read-only-root-filesystem"
)
View Source
const (
ContainerSecurityContextRuleName = "security-context"
)
View Source
const (
ControllerSecurityContextRuleName = "controller-security-context"
)
View Source
const (
DNSPolicyRuleName = "dns-policy"
)
View Source
const (
EnvVariablesDuplicatesRuleName = "env-variables-duplicates"
)
View Source
const (
HostNetworkPortsRuleName = "host-network-ports"
)
View Source
const (
ImageDigestRuleName = "image-digest"
)
View Source
const (
ImagePullPolicyRuleName = "image-pull-policy"
)
View Source
const (
NameDuplicatesRuleName = "name-duplicates"
)
View Source
const (
NamespaceLabelsRuleName = "object-namespace-labels"
)
View Source
const (
PortsRuleName = "ports"
)
View Source
const (
PriorityClassRuleName = "object-priority-class"
)
View Source
const (
RecommendedLabelsRuleName = "object-recommended-labels"
)
View Source
const (
ResourcesRuleName = "resources"
)
View Source
const (
RevisionHistoryLimitRuleName = "object-revision-history-limit"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIVersionRule ¶
func NewAPIVersionRule ¶
func NewAPIVersionRule() *APIVersionRule
func (*APIVersionRule) ObjectAPIVersion ¶
func (r *APIVersionRule) ObjectAPIVersion(object storage.StoreObject, errorList *errors.LintRuleErrorsList)
type CheckReadOnlyRootFilesystemRule ¶
type CheckReadOnlyRootFilesystemRule struct {
pkg.RuleMeta
pkg.ContainerRule
}
func NewCheckReadOnlyRootFilesystemRule ¶
func NewCheckReadOnlyRootFilesystemRule(excludeRules []pkg.ContainerRuleExclude) *CheckReadOnlyRootFilesystemRule
func (*CheckReadOnlyRootFilesystemRule) ObjectReadOnlyRootFilesystem ¶
func (r *CheckReadOnlyRootFilesystemRule) ObjectReadOnlyRootFilesystem(object storage.StoreObject, containers []corev1.Container, errorList *errors.LintRuleErrorsList)
type ContainerSecurityContextRule ¶
type ContainerSecurityContextRule struct {
pkg.RuleMeta
pkg.ContainerRule
}
func NewContainerSecurityContextRule ¶
func NewContainerSecurityContextRule(excludeRules []pkg.ContainerRuleExclude) *ContainerSecurityContextRule
func (*ContainerSecurityContextRule) ContainerSecurityContext ¶
func (r *ContainerSecurityContextRule) ContainerSecurityContext(object storage.StoreObject, containers []corev1.Container, errorList *errors.LintRuleErrorsList)
type ControllerSecurityContextRule ¶
func NewControllerSecurityContextRule ¶
func NewControllerSecurityContextRule(excludeRules []pkg.KindRuleExclude) *ControllerSecurityContextRule
func (*ControllerSecurityContextRule) ControllerSecurityContext ¶
func (r *ControllerSecurityContextRule) ControllerSecurityContext(object storage.StoreObject, errorList *errors.LintRuleErrorsList)
type DNSPolicyRule ¶
func NewDNSPolicyRule ¶
func NewDNSPolicyRule(excludeRules []pkg.KindRuleExclude) *DNSPolicyRule
func (*DNSPolicyRule) ObjectDNSPolicy ¶
func (r *DNSPolicyRule) ObjectDNSPolicy(object storage.StoreObject, errorList *errors.LintRuleErrorsList)
type EnvVariablesDuplicatesRule ¶
func NewEnvVariablesDuplicatesRule ¶
func NewEnvVariablesDuplicatesRule() *EnvVariablesDuplicatesRule
func (*EnvVariablesDuplicatesRule) ContainerEnvVariablesDuplicates ¶
func (r *EnvVariablesDuplicatesRule) ContainerEnvVariablesDuplicates(object storage.StoreObject, containers []corev1.Container, errorList *errors.LintRuleErrorsList)
type HostNetworkPortsRule ¶
type HostNetworkPortsRule struct {
pkg.RuleMeta
pkg.ContainerRule
}
func NewHostNetworkPortsRule ¶
func NewHostNetworkPortsRule(excludeRules []pkg.ContainerRuleExclude) *HostNetworkPortsRule
func (*HostNetworkPortsRule) ObjectHostNetworkPorts ¶
func (r *HostNetworkPortsRule) ObjectHostNetworkPorts(object storage.StoreObject, containers []corev1.Container, errorList *errors.LintRuleErrorsList)
type ImageDigestRule ¶
type ImageDigestRule struct {
pkg.RuleMeta
pkg.ContainerRule
}
func NewImageDigestRule ¶
func NewImageDigestRule(excludeRules []pkg.ContainerRuleExclude) *ImageDigestRule
func (*ImageDigestRule) ContainerImageDigestCheck ¶
func (r *ImageDigestRule) ContainerImageDigestCheck(object storage.StoreObject, containers []corev1.Container, errorList *errors.LintRuleErrorsList)
func (*ImageDigestRule) Enabled ¶
func (r *ImageDigestRule) Enabled(object storage.StoreObject, container *corev1.Container) bool
type ImagePullPolicyRule ¶
func NewImagePullPolicyRule ¶
func NewImagePullPolicyRule() *ImagePullPolicyRule
func (*ImagePullPolicyRule) ContainersImagePullPolicy ¶
func (r *ImagePullPolicyRule) ContainersImagePullPolicy(object storage.StoreObject, containers []corev1.Container, errorList *errors.LintRuleErrorsList)
type LivenessRule ¶
type LivenessRule struct {
pkg.RuleMeta
pkg.ContainerRule
}
func NewLivenessRule ¶
func NewLivenessRule(excludeRules []pkg.ContainerRuleExclude) *LivenessRule
func (*LivenessRule) CheckProbe ¶
func (r *LivenessRule) CheckProbe(object storage.StoreObject, containers []v1.Container, errorList *errors.LintRuleErrorsList)
check livenessProbe exist and correct
type NameDuplicatesRule ¶
func NewNameDuplicatesRule ¶
func NewNameDuplicatesRule() *NameDuplicatesRule
func (*NameDuplicatesRule) ContainerNameDuplicates ¶
func (r *NameDuplicatesRule) ContainerNameDuplicates(object storage.StoreObject, containers []corev1.Container, errorList *errors.LintRuleErrorsList)
type NamespaceLabelsRule ¶
func NewNamespaceLabelsRule ¶
func NewNamespaceLabelsRule() *NamespaceLabelsRule
func (*NamespaceLabelsRule) ObjectNamespaceLabels ¶
func (r *NamespaceLabelsRule) ObjectNamespaceLabels(object storage.StoreObject, errorList *errors.LintRuleErrorsList)
type PortsRule ¶
type PortsRule struct {
pkg.RuleMeta
pkg.ContainerRule
}
func NewPortsRule ¶
func NewPortsRule(excludeRules []pkg.ContainerRuleExclude) *PortsRule
func (*PortsRule) ContainerPorts ¶
func (r *PortsRule) ContainerPorts(object storage.StoreObject, containers []corev1.Container, errorList *errors.LintRuleErrorsList)
type PriorityClassRule ¶
func NewPriorityClassRule ¶
func NewPriorityClassRule() *PriorityClassRule
func (*PriorityClassRule) ObjectPriorityClass ¶
func (r *PriorityClassRule) ObjectPriorityClass(object storage.StoreObject, errorList *errors.LintRuleErrorsList)
type ReadinessRuleNameRule ¶
type ReadinessRuleNameRule struct {
pkg.RuleMeta
pkg.ContainerRule
}
func NewReadinessRule ¶
func NewReadinessRule(excludeRules []pkg.ContainerRuleExclude) *ReadinessRuleNameRule
func (*ReadinessRuleNameRule) CheckProbe ¶
func (r *ReadinessRuleNameRule) CheckProbe(object storage.StoreObject, containers []v1.Container, errorList *errors.LintRuleErrorsList)
check readinessProbe exist and correct
type RecommendedLabelsRule ¶
func NewRecommendedLabelsRule ¶
func NewRecommendedLabelsRule() *RecommendedLabelsRule
func (*RecommendedLabelsRule) ObjectRecommendedLabels ¶
func (r *RecommendedLabelsRule) ObjectRecommendedLabels(object storage.StoreObject, errorList *errors.LintRuleErrorsList)
type ResourcesRule ¶
type ResourcesRule struct {
pkg.RuleMeta
pkg.ContainerRule
}
func NewResourcesRule ¶
func NewResourcesRule(excludeRules []pkg.ContainerRuleExclude) *ResourcesRule
func (*ResourcesRule) ContainerStorageEphemeral ¶
func (r *ResourcesRule) ContainerStorageEphemeral(object storage.StoreObject, containers []corev1.Container, errorList *errors.LintRuleErrorsList)
type RevisionHistoryLimitRule ¶
func NewRevisionHistoryLimitRule ¶
func NewRevisionHistoryLimitRule() *RevisionHistoryLimitRule
func (*RevisionHistoryLimitRule) ObjectRevisionHistoryLimit ¶
func (r *RevisionHistoryLimitRule) ObjectRevisionHistoryLimit(object storage.StoreObject, errorList *errors.LintRuleErrorsList)
Source Files
¶
- api_version.go
- container_check_read_only_root_filesystem.go
- container_env_variables_duplicates.go
- container_host_network_ports.go
- container_image_digest_check.go
- container_image_pull_policy.go
- container_name_duplicates.go
- container_ports.go
- container_resources.go
- container_security_context.go
- controller_security_context.go
- dns_policy.go
- namespace_labels.go
- priority_class.go
- probes.go
- recommended_labels.go
- revision_history_limit.go
Click to show internal directories.
Click to hide internal directories.