Skip to content

Commit

Permalink
f-145: Refactors ONEAPP_K8S_ENABLE_CLOUD_CONTROLLER flag
Browse files Browse the repository at this point in the history
Signed-off-by: Aleix Ramírez <aramirez@opennebula.io>
  • Loading branch information
aleixrm committed Dec 12, 2024
1 parent e8c4768 commit 5fac53f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion appliances/OneKE/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

ONEAPP_K8S_RUBY_VERSION = env :ONEAPP_K8S_RUBY_VERSION, '3.3-alpine3.18'

ONEAPP_K8S_CUSTOM_CLOUD_CONTROLLER = env :ONEAPP_K8S_CUSTOM_CLOUD_CONTROLLER, 'NO'
ONEAPP_K8S_ENABLE_CLOUD_CONTROLLER = env :ONEAPP_K8S_ENABLE_CLOUD_CONTROLLER, 'YES'

ONEAPP_VROUTER_ETH0_VIP0 = env :ONEAPP_VROUTER_ETH0_VIP0, nil
ONEAPP_VROUTER_ETH1_VIP0 = env :ONEAPP_VROUTER_ETH1_VIP0, nil
Expand Down
4 changes: 2 additions & 2 deletions appliances/OneKE/kubernetes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def init_master
'disable' => ['rke2-ingress-nginx'],
'cni' => cni,
'disable-kube-proxy' => ONEAPP_K8S_CNI_PLUGIN == 'cilium',
'disable-cloud-controller' => ONEAPP_K8S_CUSTOM_CLOUD_CONTROLLER
'disable-cloud-controller' => ONEAPP_K8S_ENABLE_CLOUD_CONTROLLER == false
}

msg :info, 'Prepare initial rke2-server config'
Expand Down Expand Up @@ -250,7 +250,7 @@ def join_master(token, retries = RETRIES, seconds = SECONDS)
'disable' => ['rke2-ingress-nginx'],
'cni' => cni,
'disable-kube-proxy' => ONEAPP_K8S_CNI_PLUGIN == 'cilium',
'disable-cloud-controller' => ONEAPP_K8S_CUSTOM_CLOUD_CONTROLLER
'disable-cloud-controller' => ONEAPP_K8S_ENABLE_CLOUD_CONTROLLER == false
}

msg :info, 'Prepare rke2-server config'
Expand Down

0 comments on commit 5fac53f

Please sign in to comment.