fix: chartifyOpts ignore release set values (#896)
* fix: chartifyOpts ignore release set values Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
parent
df01973824
commit
afcc9e4b80
|
|
@ -1224,11 +1224,13 @@ func (st *HelmState) PrepareCharts(helm helmexec.Interface, dir string, concurre
|
|||
|
||||
chartifyOpts.KubeVersion = release.KubeVersion
|
||||
chartifyOpts.ApiVersions = release.ApiVersions
|
||||
// https://github.com/helmfile/helmfile/pull/867
|
||||
// https://github.com/helmfile/helmfile/issues/895
|
||||
var flags []string
|
||||
for _, s := range opts.Set {
|
||||
flags = append(flags, "--set", s)
|
||||
}
|
||||
chartifyOpts.SetFlags = flags
|
||||
chartifyOpts.SetFlags = append(chartifyOpts.SetFlags, flags...)
|
||||
|
||||
out, err := c.Chartify(release.Name, chartPath, chartify.WithChartifyOpts(chartifyOpts))
|
||||
if err != nil {
|
||||
|
|
|
|||
|
|
@ -11,4 +11,6 @@ releases:
|
|||
- path: "/spec/strategy/type"
|
||||
op: replace
|
||||
value: Recreate
|
||||
|
||||
set:
|
||||
- name: image.pullPolicy
|
||||
value: Always
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ spec:
|
|||
spec:
|
||||
containers:
|
||||
- image: docker.io/citizenstig/httpbin:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
imagePullPolicy: Always
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ spec:
|
|||
spec:
|
||||
containers:
|
||||
- image: docker.io/citizenstig/httpbin:v2
|
||||
imagePullPolicy: IfNotPresent
|
||||
imagePullPolicy: Always
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
|
|
|
|||
Loading…
Reference in New Issue