Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUnstructured ¶
func CreateUnstructured(resource, crdFile string, metadata Metadata, spec, status map[string]interface{}) (unstructured.Unstructured, error)
func ExtractSecrets ¶
func ExtractSecrets(componentName, resource, crdFile string, spec map[string]interface{}) (map[string]string, error)
ExtractSecrets looks up resource schema, extracts secret objects if passed spec contains secret data and returns a map with base64 encoded values. It does not validate the spec against the CRD.
Types ¶
type Object ¶
type Object struct {
APIVersion string `json:"apiVersion" yaml:"apiVersion"`
Kind string `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec map[string]interface{} `json:"spec,omitempty" yaml:"spec,omitempty"`
// for Secrets
Data map[string]string `json:"data,omitempty" yaml:"data,omitempty"`
Type string `json:"type,omitempty" yaml:"type,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.