Skip to content

Commit

Permalink
Issue #131 Tag cluster-kube-apiserver-operator image
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
praveenkumar committed Nov 22, 2019
1 parent da00200 commit de4ccd5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions createdisk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ ${OC} --config $1/auth/kubeconfig create secret generic htpass-secret --from-lit
${OC} --config $1/auth/kubeconfig apply -f htpasswd_cr.yaml
${OC} --config $1/auth/kubeconfig create clusterrolebinding developer --clusterrole=sudoer --user=developer

# Get cluster-kube-apiserver-operator image along with hash and tag it
certImage=$(${OC} --config $1/auth/kubeconfig adm release info --image-for=cluster-kube-apiserver-operator)
${SSH} core@api.${CRC_VM_NAME}.${BASE_DOMAIN} -- sudo podman tag $certImage openshift/cert-recovery

# Replace pull secret with a null json string '{}'
${OC} --config $1/auth/kubeconfig replace -f pull-secret.yaml

Expand Down

0 comments on commit de4ccd5

Please sign in to comment.