Documentation
¶
Index ¶
- func AsBytes(v map[string]any, format string) ([]byte, error)
- func DecodePatch(buf []byte) (patch.Patch, error)
- func FromUnstructured(unstructuredObj *unstructured.Unstructured, obj any) error
- func ModuleNameFromValuesKey(moduleValuesKey string) string
- func ModuleNameToValuesKey(moduleName string) string
- func NewValuesFromBytes(data []byte) (map[string]any, error)
- func ToUnstructured(obj any) (*unstructured.Unstructured, error)
- func YamlBytes(v map[string]any) ([]byte, error)
- type ValuesPatchOperation
- type ValuesPatchType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodePatch ¶
DecodePatch decodes the passed JSON document as an RFC 6902 patch.
func FromUnstructured ¶
func FromUnstructured(unstructuredObj *unstructured.Unstructured, obj any) error
func ModuleNameFromValuesKey ¶
ModuleNameFromValuesKey returns kebab-cased name from camelCased (verySimpleModule become very-simple-module)
func ModuleNameToValuesKey ¶
ModuleNameToValuesKey returns camelCased name from kebab-cased (very-simple-module become verySimpleModule)
func NewValuesFromBytes ¶
NewValuesFromBytes loads values sections from maps in yaml or json format
func ToUnstructured ¶
func ToUnstructured(obj any) (*unstructured.Unstructured, error)
Types ¶
type ValuesPatchOperation ¶
type ValuesPatchOperation struct { Op string `json:"op,omitempty"` Path string `json:"path,omitempty"` Value json.RawMessage `json:"value,omitempty"` }
func (*ValuesPatchOperation) ToJSONPatch ¶
func (op *ValuesPatchOperation) ToJSONPatch() (patch.Patch, error)
ToJSONPatch returns a jsonpatch.Patch with one operation.
func (*ValuesPatchOperation) ToString ¶
func (op *ValuesPatchOperation) ToString() string
type ValuesPatchType ¶
type ValuesPatchType string
const ( ConfigMapPatch ValuesPatchType = "CONFIG_MAP_PATCH" MemoryValuesPatch ValuesPatchType = "MEMORY_VALUES_PATCH" )
Click to show internal directories.
Click to hide internal directories.