Skip to content

Commit 8087467

Browse files
committed
openshift-snc: change command checking if kubeconfig is updated
the ocp-cluster-ca.service after changing the cluster CA writes a new kubeconfig file with updated client certificates for the system:admin user and the token for kubeadmin user, this changes the command that checked for the status of the ocp-cluster-ca.service to instead check if the kubeconfig file at /opt/crc/kubeconfig is created
1 parent d4f0244 commit 8087467

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/provider/aws/action/openshift-snc/constants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var (
2626
outputDeveloperPass = "aosDeveloperPass"
2727

2828
commandReadiness = "while [ ! -f /tmp/.crc-cluster-ready ]; do sleep 5; done"
29-
commandCaServiceRan = "while [ $(sudo systemctl is-active ocp-cluster-ca.service) != inactive ]; do sleep 5; done"
29+
commandCaServiceRan = "sudo bash -c 'until oc get node --kubeconfig /opt/kubeconfig --context system:admin; do sleep 5; done'"
3030

3131
// portHTTP = 80
3232
portHTTPS = 443

0 commit comments

Comments
 (0)