github.com/verrazzano/verrazzano@v1.7.0/cluster-operator/scripts/wait4webhook.sh (about)

     1  #!/bin/bash
     2  # Copyright (c) 2022, Oracle and/or its affiliates.
     3  # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     4  # While loop for verrazzano-cluster-operator to wait for webhooks to be started before starting up
     5  while [[ "$(curl --insecure -s -o /dev/null -w '%{http_code}' https://verrazzano-cluster-operator-webhook:443/validate-clusters-verrazzano-io-v1alpha1-verrazzanomanagedcluster -H 'Content-Type: application/json')" != "200" ]]; do sleep 5; done