Documentation
¶
Index ¶
- func ConvertJSONToYAML(jsonBytes []byte) ([]byte, error)
- func ConvertYAMLToJSON(yamlBytes []byte) ([]byte, error)
- func GetModulesImages() map[string]interface{}
- func ManifestStringToUnstructed(doc string) *unstructured.Unstructured
- type Config
- func (hec *Config) ApplyOpenAPIDefaults()
- func (hec *Config) HelmRender(options ...Option)
- func (hec *Config) KubernetesGlobalResource(kind, name string) object_store.KubeObject
- func (hec *Config) KubernetesResource(kind, namespace, name string) object_store.KubeObject
- func (hec Config) ValuesGet(path string) library.KubeResult
- func (hec *Config) ValuesSet(path string, value interface{})
- func (hec *Config) ValuesSetFromYaml(path, value string)
- func (hec *Config) ValuesSetFromYamlWithOpenAPIDefaults(path, value string)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertJSONToYAML ¶
func ConvertYAMLToJSON ¶
func GetModulesImages ¶ added in v1.39.0
func GetModulesImages() map[string]interface{}
func ManifestStringToUnstructed ¶ added in v1.49.0
func ManifestStringToUnstructed(doc string) *unstructured.Unstructured
Types ¶
type Config ¶
type Config struct {
RenderError error
ValuesValidator *values_validation.ValuesValidator
// contains filtered or unexported fields
}
func SetupHelmConfig ¶
func (*Config) ApplyOpenAPIDefaults ¶ added in v1.76.11
func (hec *Config) ApplyOpenAPIDefaults()
ApplyOpenAPIDefaults applies OpenAPI schema defaults (config-values.yaml and values.yaml) to the current module root values, mimicking the defaulting that addon-operator performs in production before rendering module Helm templates.
It is opt-in: existing tests are unaffected unless they call this method.
Defaults are applied to the module root values (e.g. "istio"), because the module OpenAPI schemas are rooted at the bare module values object.
func (*Config) HelmRender ¶
func (*Config) KubernetesGlobalResource ¶
func (hec *Config) KubernetesGlobalResource(kind, name string) object_store.KubeObject
func (*Config) KubernetesResource ¶
func (hec *Config) KubernetesResource(kind, namespace, name string) object_store.KubeObject
func (*Config) ValuesSetFromYaml ¶
func (*Config) ValuesSetFromYamlWithOpenAPIDefaults ¶ added in v1.76.11
ValuesSetFromYamlWithOpenAPIDefaults sets the values at the given path from YAML and then applies OpenAPI schema defaults to the module root values. It is a convenience wrapper around ValuesSetFromYaml + ApplyOpenAPIDefaults.
type Option ¶ added in v1.38.0
type Option func(options *configOptions)
func WithFilteredRenderOutput ¶ added in v1.38.0
WithFilteredRenderOutput same as WithRenderOutput but filters files which contain `filter` pattern
func WithRenderOutput ¶ added in v1.38.0
WithRenderOutput output rendered files in a format: $filename: $renderedTemplates (splitted with ---)