Skip to content

Commit de4ccd5

Browse files
committed
Issue #131 Tag cluster-kube-apiserver-operator image
We need the image to recover the cert in case it expire, if we don't tag it properly then we need to do it on the CRC side and that require the internet connectivity to fetch the hash for KAO image. Now we can directly use `openshift/cert-recovery` tag without fetching it from the release payload.
1 parent da00200 commit de4ccd5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

createdisk.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,10 @@ ${OC} --config $1/auth/kubeconfig create secret generic htpass-secret --from-lit
255255
${OC} --config $1/auth/kubeconfig apply -f htpasswd_cr.yaml
256256
${OC} --config $1/auth/kubeconfig create clusterrolebinding developer --clusterrole=sudoer --user=developer
257257

258+
# Get cluster-kube-apiserver-operator image along with hash and tag it
259+
certImage=$(${OC} --config $1/auth/kubeconfig adm release info --image-for=cluster-kube-apiserver-operator)
260+
${SSH} core@api.${CRC_VM_NAME}.${BASE_DOMAIN} -- sudo podman tag $certImage openshift/cert-recovery
261+
258262
# Replace pull secret with a null json string '{}'
259263
${OC} --config $1/auth/kubeconfig replace -f pull-secret.yaml
260264

0 commit comments

Comments
 (0)