Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultSchemaLocation = "https://kubernetesjsonschema.dev"
DefaultSchemaLocation is the default value for
var OpenShift bool
OpenShift represents whether to test against upstream Kubernetes of the OpenShift schemas
var OpenShiftSchemaLocation = "https://raw.githubusercontent.com/garethr/openshift-json-schema/master"
OpenShiftSchemaLocation is the alternative location for OpenShift specific schemas
var SchemaLocation string
SchemaLocation represents what is the schema location, / where default value is maintener github project, but can be overriden / to either different github repo, or a local file
var Strict bool
Strict tells kubeval whether to prohibit properties not in the schema. The API allows them, but kubectl does not
var Version string
Version represents the version of Kubernetes for which we should load the schema
Functions ¶
This section is empty.
Types ¶
type ValidFormat ¶
type ValidFormat struct{}
ValidFormat is a type for quickly forcing new formats on the gojsonschema loader
func (ValidFormat) IsFormat ¶
func (f ValidFormat) IsFormat(input interface{}) bool
IsFormat always returns true and meets the gojsonschema.FormatChecker interface
type ValidationResult ¶
type ValidationResult struct { FileName string Kind string APIVersion string Errors []gojsonschema.ResultError ValidatedObject map[string]interface{} PlainObjectYaml []byte }
ValidationResult contains the details from validating a given Kubernetes resource