container

package
v0.0.23 Latest Latest
Warning

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

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

README

Checks containers inside the template spec. This linter protects against the next cases:

  • containers with the duplicated names
  • containers with the duplicated env variables
  • misconfigured images repository and digest
  • imagePullPolicy is "Always" (should be unspecified or "IfNotPresent")
  • ephemeral storage is not defined in .resources
  • SecurityContext is not defined
  • container uses port <= 1024

Documentation

Index

Constants

View Source
const (
	ID = "container"
)

Variables

Functions

This section is empty.

Types

type Container

type Container struct {
	// contains filtered or unexported fields
}

Container linter

func New

func (*Container) Desc

func (o *Container) Desc() string

func (*Container) Name

func (o *Container) Name() string

func (*Container) Run

func (*Container) Run(m *module.Module) (result errors.LintRuleErrorsList, err error)

Jump to

Keyboard shortcuts

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