Skip to content

Commit 2bd290d

Browse files
committed
fixup! refactor: add kube-vip static Pod to KCP in the handler
1 parent 48e7f72 commit 2bd290d

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

charts/cluster-api-runtime-extensions-nutanix/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ A Helm chart for cluster-api-runtime-extensions-nutanix
5959
| hooks.cni.cilium.helmAddonStrategy.defaultValueTemplateConfigMap.name | string | `"default-cilium-cni-helm-values-template"` | |
6060
| hooks.csi.nutanix.helmAddonStrategy.defaultValueTemplateConfigMap.create | bool | `true` | |
6161
| hooks.csi.nutanix.helmAddonStrategy.defaultValueTemplateConfigMap.name | string | `"default-nutanix-csi-helm-values-template"` | |
62-
| hooks.kubeVip.defaultTemplateConfigMap.create | bool | `true` | |
63-
| hooks.kubeVip.defaultTemplateConfigMap.name | string | `"default-kube-vip-template"` | |
6462
| hooks.nfd.crsStrategy.defaultInstallationConfigMap.name | string | `"node-feature-discovery"` | |
6563
| hooks.nfd.helmAddonStrategy.defaultValueTemplateConfigMap.create | bool | `true` | |
6664
| hooks.nfd.helmAddonStrategy.defaultValueTemplateConfigMap.name | string | `"default-nfd-helm-values-template"` | |
65+
| hooks.virtualIP.kubeVip.defaultTemplateConfigMap.create | bool | `true` | |
66+
| hooks.virtualIP.kubeVip.defaultTemplateConfigMap.name | string | `"default-kube-vip-template"` | |
6767
| image.pullPolicy | string | `"IfNotPresent"` | |
6868
| image.repository | string | `"ghcr.io/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix"` | |
6969
| image.tag | string | `""` | |

charts/cluster-api-runtime-extensions-nutanix/templates/kube-vip/manifests/kube-vip-configmap.yaml renamed to charts/cluster-api-runtime-extensions-nutanix/templates/virtual-ip/kube-vip/manifests/kube-vip-configmap.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# DO NOT EDIT THIS FILE
66
# IT HAS BEEN GENERATED BY /hack/addons/update-kube-vip-manifests.sh
77
#=================================================================
8-
{{- if .Values.hooks.kubeVip.defaultTemplateConfigMap.create }}
8+
{{- if .Values.hooks.virtualIP.kubeVip.defaultTemplateConfigMap.create }}
99
apiVersion: v1
1010
data:
1111
kube-vip.yaml: |
@@ -71,5 +71,5 @@ data:
7171
kind: ConfigMap
7272
metadata:
7373
creationTimestamp: null
74-
name: '{{ .Values.hooks.kubeVip.defaultTemplateConfigMap.name }}'
74+
name: '{{ .Values.hooks.virtualIP.kubeVip.defaultTemplateConfigMap.name }}'
7575
{{- end -}}

charts/cluster-api-runtime-extensions-nutanix/values.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,12 @@ hooks:
7171
defaultValueTemplateConfigMap:
7272
create: true
7373
name: default-cluster-autoscaler-helm-values-template
74-
kubeVip:
75-
defaultTemplateConfigMap:
76-
create: true
77-
name: default-kube-vip-template
74+
75+
virtualIP:
76+
kubeVip:
77+
defaultTemplateConfigMap:
78+
create: true
79+
name: default-kube-vip-template
7880

7981
helmAddonsConfigMap: default-helm-addons-config
8082

hack/addons/update-kube-vip-manifests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,19 @@ docker container run --rm ghcr.io/kube-vip/kube-vip:"${KUBE_VIP_VERSION}" \
3333
gojq --yaml-input --yaml-output 'del(.metadata.creationTimestamp, .status) | .spec.containers[].imagePullPolicy |= "IfNotPresent"' |
3434
sed "s/\"-99999\"/'{{ \`{{ .ControlPlaneEndpoint.Port }}\` }}'/" >"${ASSETS_DIR}/${FILE_NAME}"
3535

36-
kubectl create configmap "{{ .Values.hooks.kubeVip.defaultTemplateConfigMap.name }}" --dry-run=client --output yaml \
36+
kubectl create configmap "{{ .Values.hooks.virtualIP.kubeVip.defaultTemplateConfigMap.name }}" --dry-run=client --output yaml \
3737
--from-file "${ASSETS_DIR}/${FILE_NAME}" \
3838
>"${ASSETS_DIR}/kube-vip-configmap.yaml"
3939

4040
# add warning not to edit file directly
41-
cat <<EOF >"${GIT_REPO_ROOT}/charts/cluster-api-runtime-extensions-nutanix/templates/kube-vip/manifests/kube-vip-configmap.yaml"
41+
cat <<EOF >"${GIT_REPO_ROOT}/charts/cluster-api-runtime-extensions-nutanix/templates/virtual-ip/kube-vip/manifests/kube-vip-configmap.yaml"
4242
$(cat "${GIT_REPO_ROOT}/hack/license-header.yaml.txt")
4343
4444
#=================================================================
4545
# DO NOT EDIT THIS FILE
4646
# IT HAS BEEN GENERATED BY /hack/addons/update-kube-vip-manifests.sh
4747
#=================================================================
48-
{{- if .Values.hooks.kubeVip.defaultTemplateConfigMap.create }}
48+
{{- if .Values.hooks.virtualIP.kubeVip.defaultTemplateConfigMap.create }}
4949
$(cat "${ASSETS_DIR}/kube-vip-configmap.yaml")
5050
{{- end -}}
5151
EOF

0 commit comments

Comments
 (0)