Skip to content

Commit 0c70a68

Browse files
authored
Merge pull request kosmos-io#734 from zhouhaoA1/fix_component_config
fix: fix component parmeter config invalid
2 parents 9679ed7 + 29b83d4 commit 0c70a68

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pkg/kubenest/tasks/manifests_components.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ func applyComponentsManifests(r workflow.RunData) error {
9595
templatedMapping["KUBE_PROXY_KUBECONFIG"] = string(secret.Data[constants.KubeConfig])
9696
imageRepository, _ := util.GetImageMessage()
9797
templatedMapping["ImageRepository"] = imageRepository
98+
for k, v := range data.PluginOptions() {
99+
templatedMapping[k] = v
100+
}
98101
keepalivedEnable := data.VipMap() != nil && data.VipMap()[constants.VcVipStatusKey] != ""
99102
if keepalivedEnable {
100103
templatedMapping["Vip"] = data.VipMap()[constants.VcVipStatusKey]
@@ -103,9 +106,7 @@ func applyComponentsManifests(r workflow.RunData) error {
103106
if nodeCount < constants.VipKeepAlivedReplicas {
104107
keepalivedReplicas = int(nodeCount)
105108
}
106-
for k, v := range data.PluginOptions() {
107-
templatedMapping[k] = v
108-
}
109+
109110
templatedMapping["KeepalivedReplicas"] = keepalivedReplicas
110111
}
111112

0 commit comments

Comments
 (0)