Skip to content

Commit

Permalink
Merge pull request #735 from zhouhaoA1/fix_plugin_config
Browse files Browse the repository at this point in the history
Cherry-pick: fix component parmeter config invalid
  • Loading branch information
duanmengkk authored Oct 12, 2024
2 parents e1bb11f + 83cf5a4 commit a2fc0c3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/kubenest/tasks/manifests_components.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ func applyComponentsManifests(r workflow.RunData) error {
templatedMapping["KUBE_PROXY_KUBECONFIG"] = string(secret.Data[constants.KubeConfig])
imageRepository, _ := util.GetImageMessage()
templatedMapping["ImageRepository"] = imageRepository
for k, v := range data.PluginOptions() {
templatedMapping[k] = v
}
keepalivedEnable := data.VipMap() != nil && data.VipMap()[constants.VcVipStatusKey] != ""
if keepalivedEnable {
templatedMapping["Vip"] = data.VipMap()[constants.VcVipStatusKey]
Expand All @@ -103,9 +106,7 @@ func applyComponentsManifests(r workflow.RunData) error {
if nodeCount < constants.VipKeepAlivedReplicas {
keepalivedReplicas = int(nodeCount)
}
for k, v := range data.PluginOptions() {
templatedMapping[k] = v
}

templatedMapping["KeepalivedReplicas"] = keepalivedReplicas
}

Expand Down

0 comments on commit a2fc0c3

Please sign in to comment.