Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DeprecatedAPIUsed occurs when a deprecated resource type version is used
DeprecatedAPIUsed = "DeprecatedAPIUsed"
)
View Source
const Name = "deprecatedapis"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { CurrentVersion string `yaml:"currentVersion"` TargetedVersion string `yaml:"targetedVersion"` }
func (*Config) GetCurrentVersion ¶
func (*Config) GetTargetedVersion ¶
type DeprecatedAPIs ¶
DeprecatedAPIs implements Auditable
func New ¶
func New(config Config) (*DeprecatedAPIs, error)
func (*DeprecatedAPIs) Audit ¶
func (deprecatedAPIs *DeprecatedAPIs) Audit(resource k8s.Resource, _ []k8s.Resource) ([]*kubeaudit.AuditResult, error)
Audit checks that the resource API version is not deprecated
Click to show internal directories.
Click to hide internal directories.