mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-17 19:03:06 +02:00
feat: Option to pass kubeVersion to helm template (#2002)
This commit is contained in:
@@ -61,6 +61,7 @@ type ReleaseSetSpec struct {
|
||||
Releases []ReleaseSpec `yaml:"releases,omitempty"`
|
||||
Selectors []string `yaml:"-"`
|
||||
ApiVersions []string `yaml:"apiVersions,omitempty"`
|
||||
KubeVersion string `yaml:"kubeVersion,omitempty"`
|
||||
|
||||
// Hooks is a list of extension points paired with operations, that are executed in specific points of the lifecycle of releases defined in helmfile
|
||||
Hooks []event.Hook `yaml:"hooks,omitempty"`
|
||||
@@ -2459,6 +2460,9 @@ func (st *HelmState) flagsForTemplate(helm helmexec.Interface, release *ReleaseS
|
||||
}
|
||||
|
||||
flags = st.appendApiVersionsFlags(flags)
|
||||
if st.KubeVersion != "" {
|
||||
flags = append(flags, "--kube-version", st.KubeVersion)
|
||||
}
|
||||
|
||||
common, files, err := st.namespaceAndValuesFlags(helm, release, workerIndex)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user