Skip to content

Commit

Permalink
Merge pull request kosmos-io#734 from zhouhaoA1/fix_component_config
Browse files Browse the repository at this point in the history
fix: fix component parmeter config invalid
  • Loading branch information
duanmengkk authored Oct 14, 2024
2 parents 9679ed7 + 29b83d4 commit 0c70a68
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 0c70a68

Please sign in to comment.