chore: suppress empty values on serializing several helmfile values (#1616)
This commit is contained in:
parent
1c7b872476
commit
afe82f6453
|
|
@ -70,7 +70,7 @@ type ReleaseSetSpec struct {
|
||||||
// If set to "Error", return an error when a subhelmfile points to a
|
// If set to "Error", return an error when a subhelmfile points to a
|
||||||
// non-existent path. The default behavior is to print a warning. Note the
|
// non-existent path. The default behavior is to print a warning. Note the
|
||||||
// differing default compared to other MissingFileHandlers.
|
// differing default compared to other MissingFileHandlers.
|
||||||
MissingFileHandler string `yaml:"missingFileHandler"`
|
MissingFileHandler string `yaml:"missingFileHandler,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// HelmState structure for the helmfile
|
// HelmState structure for the helmfile
|
||||||
|
|
@ -284,12 +284,12 @@ type ReleaseSpec struct {
|
||||||
// This is only needed when you can't FIX your chart to have `namespace: {{ .Namespace }}` AND you're using `helmfile template`.
|
// This is only needed when you can't FIX your chart to have `namespace: {{ .Namespace }}` AND you're using `helmfile template`.
|
||||||
// In standard use-cases, `Namespace` should be sufficient.
|
// In standard use-cases, `Namespace` should be sufficient.
|
||||||
// Use this only when you know what you want to do!
|
// Use this only when you know what you want to do!
|
||||||
ForceNamespace string `yaml:"forceNamespace"`
|
ForceNamespace string `yaml:"forceNamespace,omitempty"`
|
||||||
|
|
||||||
// SkipDeps disables running `helm dependency up` and `helm dependency build` on this release's chart.
|
// SkipDeps disables running `helm dependency up` and `helm dependency build` on this release's chart.
|
||||||
// This is relevant only when your release uses a local chart or a directory containing K8s manifests or a Kustomization
|
// This is relevant only when your release uses a local chart or a directory containing K8s manifests or a Kustomization
|
||||||
// as a Helm chart.
|
// as a Helm chart.
|
||||||
SkipDeps *bool `yaml:"skipDeps"`
|
SkipDeps *bool `yaml:"skipDeps,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Release struct {
|
type Release struct {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue