Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶ added in v0.13.0
type Environment struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata Metadata `json:"metadata"` Spec Spec `json:"spec"` Data interface{} `json:"data,omitempty"` }
Environment represents a set of resources in relation to its Kubernetes cluster
func New ¶
func New() *Environment
New creates a new Environment object with internal values already set
type ExpectVersions ¶ added in v0.12.0
type ExpectVersions struct {
Tanka string `json:"tanka,omitempty"`
}
ExpectVersions holds semantic version constraints TODO: extend this to handle more than Tanka
type Metadata ¶
type Metadata struct { Name string `json:"name,omitempty"` Namespace string `json:"namespace,omitempty"` Labels map[string]string `json:"labels,omitempty"` }
Metadata is meant for humans and not parsed
type ResourceDefaults ¶ added in v0.12.0
type ResourceDefaults struct { Annotations map[string]string `json:"annotations,omitempty"` Labels map[string]string `json:"labels,omitempty"` }
ResourceDefaults will be inserted in any manifests that tanka processes.
type Spec ¶
type Spec struct { APIServer string `json:"apiServer,omitempty"` ContextNames []string `json:"contextNames,omitempty"` Namespace string `json:"namespace"` DiffStrategy string `json:"diffStrategy,omitempty"` ApplyStrategy string `json:"applyStrategy,omitempty"` InjectLabels bool `json:"injectLabels,omitempty"` ResourceDefaults ResourceDefaults `json:"resourceDefaults"` ExpectVersions ExpectVersions `json:"expectVersions"` ExportJsonnetImplementation string `json:"exportJsonnetImplementation,omitempty"` }
Spec defines Kubernetes properties
Click to show internal directories.
Click to hide internal directories.