Documentation
¶
Overview ¶
Package chartvalues holds the Go types of the preview-apps chart's values, from which cmd/schemagen generates charts/preview-apps/values.schema.json.
Index ¶
Constants ¶
const NamespacePattern = `^[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])?$`
NamespacePattern matches a Kubernetes namespace name (an RFC 1123 label).
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Values ¶
type Values struct {
preview.PreviewValues `yaml:",inline"`
ArgocdNamespace string `yaml:"argocdNamespace"`
}
Values is the input of the preview-apps chart: a preview values file and the ApplicationSet's argocdNamespace. No other root key is allowed.
func (Values) JSONSchemaExtend ¶
func (Values) JSONSchemaExtend(s *jsonschema.Schema)
JSONSchemaExtend applies the preview values file's root constraints (preview.PreviewValues.JSONSchemaExtend), requires argocdNamespace (a null argocdNamespace in a values file removes the chart default before validation, so it must fail as missing) and makes it a namespace name.