Skip to content

Commit a8e8651

Browse files
Merge pull request #278 from Raboo/patch-1
Revert #273
2 parents d1c6d70 + 5bdd4fd commit a8e8651

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,9 @@ disable_kube_proxy: false
189189
# Option to disable builtin cloud controller - mostly for onprem
190190
rke2_disable_cloud_controller: false
191191

192-
# Cloud provider to use for the cluster (aws, azure, gce, openstack, vsphere, external)
192+
# Cloud provider to use for the cluster (aws, azure, gce, harvester, rancher-vsphere, openstack, vsphere, external)
193193
# applicable only if rke2_disable_cloud_controller is true
194+
# Can be set to false to disable setting it in the configuration file
194195
rke2_cloud_provider_name: "external"
195196

196197
# Path to custom manifests deployed during the RKE2 installation

templates/config.yaml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ kube-proxy-arg:
9191
{% endif %}
9292
{% if (rke2_disable_cloud_controller | bool ) %}
9393
disable-cloud-controller: true
94-
{% endif %}
95-
{% if not (rke2_disable_cloud_controller | bool ) %}
94+
{% if rke2_cloud_provider_name != false %}
9695
cloud-provider-name: "{{ rke2_cloud_provider_name }}"
9796
{% endif %}
97+
{% endif %}
9898
cluster-cidr: "{% for network in rke2_cluster_cidr %}{{ network }}{% if not loop['last'] %},{% endif %}{% endfor %}"
9999
service-cidr: "{% for network in rke2_service_cidr %}{{ network }}{% if not loop['last'] %},{% endif %}{% endfor %}"
100100
{% if (rke2_selinux | bool ) %}

0 commit comments

Comments
 (0)