Skip to content

Commit

Permalink
Add extra arguments variables for openstack and vsphere cloud control…
Browse files Browse the repository at this point in the history
…ler manager daemonsets (kubernetes-sigs#6783)
  • Loading branch information
JorenZ authored and LuckySB committed Jan 16, 2021
1 parent fca8f4b commit d6b45b4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,10 @@ external_openstack_domain_name: "{{ lookup('env','OS_USER_DOMAIN_NAME') }}"
external_openstack_domain_id: "{{ lookup('env','OS_USER_DOMAIN_ID') }}"
external_openstack_cacert: "{{ lookup('env','OS_CACERT') }}"

## A dictionary of extra arguments to add to the openstack cloud controller manager daemonset
## Format:
## external_openstack_cloud_controller_extra_args:
## arg1: "value1"
## arg2: "value2"
external_openstack_cloud_controller_extra_args: {}
external_openstack_cloud_controller_image_tag: "v1.18.2"
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ spec:
- --cloud-provider=openstack
- --use-service-account-credentials=true
- --address=127.0.0.1
{% for key, value in external_openstack_cloud_controller_extra_args.items() %}
- "{{ '--' + key + '=' + value }}"
{% endfor %}
volumeMounts:
- mountPath: /etc/kubernetes/pki
name: k8s-certs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@
external_vsphere_vcenter_port: "443"
external_vsphere_insecure: "true"

## A dictionary of extra arguments to add to the vsphere cloud controller manager daemonset
## Format:
## external_vsphere_cloud_controller_extra_args:
## arg1: "value1"
## arg2: "value2"
external_vsphere_cloud_controller_extra_args: {}
external_vsphere_cloud_controller_image_tag: "latest"
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ spec:
- --v=2
- --cloud-provider=vsphere
- --cloud-config=/etc/cloud/vsphere.conf
{% for key, value in external_vsphere_cloud_controller_extra_args.items() %}
- "{{ '--' + key + '=' + value }}"
{% endfor %}
volumeMounts:
- mountPath: /etc/cloud
name: vsphere-config-volume
Expand Down

0 comments on commit d6b45b4

Please sign in to comment.