Skip to content

Commit b21411b

Browse files
authored
Merge pull request #1551 from Nordix/lentzi90/remove-unused-templates
🌱 Set provider ID through kubelet in ubuntu templates
2 parents 89b6ead + 8c7b85e commit b21411b

File tree

8 files changed

+21
-421
lines changed

8 files changed

+21
-421
lines changed

kustomize/v1alpha7/default/cluster-template.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ spec:
5151
name: '{{ local_hostname }}'
5252
kubeletExtraArgs:
5353
cloud-provider: external
54+
provider-id: "openstack:///'{{ instance_id }}'"
5455
clusterConfiguration:
5556
apiServer:
5657
extraArgs:
@@ -63,6 +64,7 @@ spec:
6364
name: '{{ local_hostname }}'
6465
kubeletExtraArgs:
6566
cloud-provider: external
67+
provider-id: "openstack:///'{{ instance_id }}'"
6668
files: []
6769
version: "${KUBERNETES_VERSION}"
6870
---
@@ -133,6 +135,7 @@ spec:
133135
name: '{{ local_hostname }}'
134136
kubeletExtraArgs:
135137
cloud-provider: external
138+
provider-id: "openstack:///'{{ instance_id }}'"
136139
---
137140
apiVersion: v1
138141
kind: Secret

kustomize/v1alpha7/external-cloud-provider/kustomization.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

kustomize/v1alpha7/external-cloud-provider/patch-ccm.yaml

Lines changed: 0 additions & 43 deletions
This file was deleted.

kustomize/v1alpha7/flatcar/patch-flatcar.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,16 @@ spec:
1717
joinConfiguration:
1818
nodeRegistration:
1919
name: $${COREOS_OPENSTACK_HOSTNAME}
20+
kubeletExtraArgs:
21+
provider-id: null
2022
initConfiguration:
2123
nodeRegistration:
2224
name: $${COREOS_OPENSTACK_HOSTNAME}
25+
kubeletExtraArgs:
26+
# Fixme(lentzi90): This is here just to override the value set in the default
27+
# kustomization. It will be replaced with a value that works for flatcar in
28+
# https://github.com/kubernetes-sigs/cluster-api-provider-openstack/pull/1564
29+
provider-id: null
2330
format: ignition
2431
ignition:
2532
containerLinuxConfig:
@@ -54,6 +61,11 @@ spec:
5461
joinConfiguration:
5562
nodeRegistration:
5663
name: $${COREOS_OPENSTACK_HOSTNAME}
64+
kubeletExtraArgs:
65+
# Fixme(lentzi90): This is here just to override the value set in the default
66+
# kustomization. It will be replaced with a value that works for flatcar in
67+
# https://github.com/kubernetes-sigs/cluster-api-provider-openstack/pull/1564
68+
provider-id: null
5769
preKubeadmCommands:
5870
- export COREOS_OPENSTACK_HOSTNAME=$${COREOS_OPENSTACK_HOSTNAME%.*}
5971
- envsubst < /etc/kubeadm.yml > /etc/kubeadm.yml.tmp

templates/cluster-template-external-cloud-provider-flatcar.yaml

Lines changed: 0 additions & 189 deletions
This file was deleted.

0 commit comments

Comments
 (0)