Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeValidator ¶
type KubeValidator struct{}
KubeValidator is a struct that validates the kube configs associated with a cell config.
func NewKubeValidator ¶
func NewKubeValidator() *KubeValidator
NewKubeValidator returns a new KubeValidator instance.
func (*KubeValidator) CheckYAML ¶
func (k *KubeValidator) CheckYAML(paths []string) error
CheckYAML checks that each file ending with ".yaml" is actually parseable YAML. This is done separately from the kubeval checks because these errors cause the latter tool to not output valid JSON.
func (*KubeValidator) RunKubeval ¶
func (k *KubeValidator) RunKubeval( ctx context.Context, path string, ) ([]ValidationResult, error)
RunKubeval runs kubeval over all files in the provided path.
Click to show internal directories.
Click to hide internal directories.