Skip to content

Commit 1a39e5f

Browse files
committed
chore: bump versions of cpem and kube-vip, add note about doing this to release docs
Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
1 parent 4b2c21f commit 1a39e5f

File tree

7 files changed

+16
-9
lines changed

7 files changed

+16
-9
lines changed

docs/RELEASE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ In order to cut a release, you must:
2424
- Update [packet-ci-actions.yaml](../test/e2e/config/packet-ci-actions.yaml) and [packet-ci.yaml](../test/e2e/config/packet-ci.yaml) to have a new "next" version number for the latest contract version of the packet InfrastructureProvider (ie. v0.11.99).
2525
- Update clusterctl-settings.json to have the new "next" version number for the latest contract version of the packet InfrastructureProvider (ie. v0.11.99).
2626
27+
1. Review and update the versions of installed deployments like CPEM and kube-vip inside the templates.
2728
1. Commit the changes.
2829
1. Push out your branch, open a PR and merge the changes
2930
1. Wait for the Continuous Integration github action to finish running

templates/cluster-template-emlb-crs-cni.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ spec:
160160
echo "complete -o default -F __start_kubectl k" >> $HOME/.bashrc
161161
if [ -f "/run/kubeadm/kubeadm.yaml" ]; then
162162
export KUBECONFIG=/etc/kubernetes/admin.conf
163-
export CPEM_YAML=https://github.com/equinix/cloud-provider-equinix-metal/releases/download/${CPEM_VERSION:=v3.8.0}/deployment.yaml
163+
export CPEM_YAML=https://github.com/equinix/cloud-provider-equinix-metal/releases/download/${CPEM_VERSION:=v3.8.1}/deployment.yaml
164164
export SECRET_DATA='cloud-sa.json=''{"apiKey": "{{ .apiKey }}","projectID": "${PROJECT_ID}"}'''
165165
kubectl create secret generic -n kube-system metal-cloud-config --from-literal="$${SECRET_DATA}" || (sleep 1 && kubectl create secret generic -n kube-system metal-cloud-config --from-literal="$${SECRET_DATA}") || (sleep 1 && kubectl create secret generic -n kube-system metal-cloud-config --from-literal="$${SECRET_DATA}")
166166
kubectl apply -f $${CPEM_YAML} || (sleep 1 && kubectl apply -f $${CPEM_YAML}) || (sleep 1 && kubectl apply -f $${CPEM_YAML})

templates/cluster-template-emlb.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ spec:
139139
echo "complete -o default -F __start_kubectl k" >> $HOME/.bashrc
140140
if [ -f "/run/kubeadm/kubeadm.yaml" ]; then
141141
export KUBECONFIG=/etc/kubernetes/admin.conf
142-
export CPEM_YAML=https://github.com/equinix/cloud-provider-equinix-metal/releases/download/${CPEM_VERSION:=v3.8.0}/deployment.yaml
142+
export CPEM_YAML=https://github.com/equinix/cloud-provider-equinix-metal/releases/download/${CPEM_VERSION:=v3.8.1}/deployment.yaml
143143
export SECRET_DATA='cloud-sa.json=''{"apiKey": "{{ .apiKey }}","projectID": "${PROJECT_ID}"}'''
144144
kubectl create secret generic -n kube-system metal-cloud-config --from-literal="$${SECRET_DATA}" || (sleep 1 && kubectl create secret generic -n kube-system metal-cloud-config --from-literal="$${SECRET_DATA}") || (sleep 1 && kubectl create secret generic -n kube-system metal-cloud-config --from-literal="$${SECRET_DATA}")
145145
kubectl apply -f $${CPEM_YAML} || (sleep 1 && kubectl apply -f $${CPEM_YAML}) || (sleep 1 && kubectl apply -f $${CPEM_YAML})

templates/cluster-template-kube-vip-crs-cni.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,10 @@ spec:
165165
kubectl create secret generic -n kube-system metal-cloud-config --from-literal="$${SECRET_DATA}" || (sleep 1 && kubectl create secret generic -n kube-system metal-cloud-config --from-literal="$${SECRET_DATA}") || (sleep 1 && kubectl create secret generic -n kube-system metal-cloud-config --from-literal="$${SECRET_DATA}")
166166
kubectl apply -f $${CPEM_YAML} || (sleep 1 && kubectl apply -f $${CPEM_YAML}) || (sleep 1 && kubectl apply -f $${CPEM_YAML})
167167
else
168-
KVVERSION="${KUBE_VIP_VERSION:=v0.6.4}"
168+
KVVERSION="${KUBE_VIP_VERSION:=v0.8.1}"
169169
ctr image pull ghcr.io/kube-vip/kube-vip:$${KVVERSION}
170170
ctr run --rm --net-host ghcr.io/kube-vip/kube-vip:$KVVERSION vip /kube-vip manifest pod \
171+
--cidr 32 \
171172
--interface "lo" \
172173
--vip "{{ .controlPlaneEndpoint }}" \
173174
--controlplane \
@@ -225,9 +226,10 @@ spec:
225226
done
226227
if [ -f "/run/kubeadm/kubeadm.yaml" ]; then
227228
ip addr add {{ .controlPlaneEndpoint }} dev lo
228-
KVVERSION="${KUBE_VIP_VERSION:=v0.6.4}"
229+
KVVERSION="${KUBE_VIP_VERSION:=v0.8.1}"
229230
ctr image pull ghcr.io/kube-vip/kube-vip:$${KVVERSION}
230231
ctr run --rm --net-host ghcr.io/kube-vip/kube-vip:$KVVERSION vip /kube-vip manifest pod \
232+
--cidr 32 \
231233
--interface "lo" \
232234
--vip "{{ .controlPlaneEndpoint }}" \
233235
--controlplane \

templates/cluster-template-kube-vip.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,10 @@ spec:
144144
kubectl create secret generic -n kube-system metal-cloud-config --from-literal="$${SECRET_DATA}" || (sleep 1 && kubectl create secret generic -n kube-system metal-cloud-config --from-literal="$${SECRET_DATA}") || (sleep 1 && kubectl create secret generic -n kube-system metal-cloud-config --from-literal="$${SECRET_DATA}")
145145
kubectl apply -f $${CPEM_YAML} || (sleep 1 && kubectl apply -f $${CPEM_YAML}) || (sleep 1 && kubectl apply -f $${CPEM_YAML})
146146
else
147-
KVVERSION="${KUBE_VIP_VERSION:=v0.6.4}"
147+
KVVERSION="${KUBE_VIP_VERSION:=v0.8.1}"
148148
ctr image pull ghcr.io/kube-vip/kube-vip:$${KVVERSION}
149149
ctr run --rm --net-host ghcr.io/kube-vip/kube-vip:$KVVERSION vip /kube-vip manifest pod \
150+
--cidr 32 \
150151
--interface "lo" \
151152
--vip "{{ .controlPlaneEndpoint }}" \
152153
--controlplane \
@@ -204,9 +205,10 @@ spec:
204205
done
205206
if [ -f "/run/kubeadm/kubeadm.yaml" ]; then
206207
ip addr add {{ .controlPlaneEndpoint }} dev lo
207-
KVVERSION="${KUBE_VIP_VERSION:=v0.6.4}"
208+
KVVERSION="${KUBE_VIP_VERSION:=v0.8.1}"
208209
ctr image pull ghcr.io/kube-vip/kube-vip:$${KVVERSION}
209210
ctr run --rm --net-host ghcr.io/kube-vip/kube-vip:$KVVERSION vip /kube-vip manifest pod \
211+
--cidr 32 \
210212
--interface "lo" \
211213
--vip "{{ .controlPlaneEndpoint }}" \
212214
--controlplane \

templates/experimental-emlb/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ patches:
7575
echo "complete -o default -F __start_kubectl k" >> $HOME/.bashrc
7676
if [ -f "/run/kubeadm/kubeadm.yaml" ]; then
7777
export KUBECONFIG=/etc/kubernetes/admin.conf
78-
export CPEM_YAML=https://github.com/equinix/cloud-provider-equinix-metal/releases/download/${CPEM_VERSION:=v3.8.0}/deployment.yaml
78+
export CPEM_YAML=https://github.com/equinix/cloud-provider-equinix-metal/releases/download/${CPEM_VERSION:=v3.8.1}/deployment.yaml
7979
export SECRET_DATA='cloud-sa.json=''{"apiKey": "{{ .apiKey }}","projectID": "${PROJECT_ID}"}'''
8080
kubectl create secret generic -n kube-system metal-cloud-config --from-literal="$${SECRET_DATA}" || (sleep 1 && kubectl create secret generic -n kube-system metal-cloud-config --from-literal="$${SECRET_DATA}") || (sleep 1 && kubectl create secret generic -n kube-system metal-cloud-config --from-literal="$${SECRET_DATA}")
8181
kubectl apply -f $${CPEM_YAML} || (sleep 1 && kubectl apply -f $${CPEM_YAML}) || (sleep 1 && kubectl apply -f $${CPEM_YAML})

templates/experimental-kube-vip/kustomization.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,10 @@ patches:
6565
done
6666
if [ -f "/run/kubeadm/kubeadm.yaml" ]; then
6767
ip addr add {{ .controlPlaneEndpoint }} dev lo
68-
KVVERSION="${KUBE_VIP_VERSION:=v0.6.4}"
68+
KVVERSION="${KUBE_VIP_VERSION:=v0.8.1}"
6969
ctr image pull ghcr.io/kube-vip/kube-vip:$${KVVERSION}
7070
ctr run --rm --net-host ghcr.io/kube-vip/kube-vip:$KVVERSION vip /kube-vip manifest pod \
71+
--cidr 32 \
7172
--interface "lo" \
7273
--vip "{{ .controlPlaneEndpoint }}" \
7374
--controlplane \
@@ -91,9 +92,10 @@ patches:
9192
kubectl create secret generic -n kube-system metal-cloud-config --from-literal="$${SECRET_DATA}" || (sleep 1 && kubectl create secret generic -n kube-system metal-cloud-config --from-literal="$${SECRET_DATA}") || (sleep 1 && kubectl create secret generic -n kube-system metal-cloud-config --from-literal="$${SECRET_DATA}")
9293
kubectl apply -f $${CPEM_YAML} || (sleep 1 && kubectl apply -f $${CPEM_YAML}) || (sleep 1 && kubectl apply -f $${CPEM_YAML})
9394
else
94-
KVVERSION="${KUBE_VIP_VERSION:=v0.6.4}"
95+
KVVERSION="${KUBE_VIP_VERSION:=v0.8.1}"
9596
ctr image pull ghcr.io/kube-vip/kube-vip:$${KVVERSION}
9697
ctr run --rm --net-host ghcr.io/kube-vip/kube-vip:$KVVERSION vip /kube-vip manifest pod \
98+
--cidr 32 \
9799
--interface "lo" \
98100
--vip "{{ .controlPlaneEndpoint }}" \
99101
--controlplane \

0 commit comments

Comments
 (0)