This commit is contained in:
@@ -17,7 +17,18 @@ kubectl create namespace $NAMESPACE \
|
||||
-o yaml | \
|
||||
kubectl -f - apply
|
||||
|
||||
echo "Applying certificate..."
|
||||
kubectl apply -f $DEPLOYMENT_DIR/certificate.yml -n $NAMESPACE
|
||||
|
||||
echo "Waiting for certificate secret to be created..."
|
||||
kubectl wait --for=condition=Ready certificate/exim-forwarder-cert -n $NAMESPACE --timeout=300s
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Certificate secret creation failed or timed out"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Certificate ready, applying deployment..."
|
||||
cat $DEPLOYMENT_DIR/deploy-yml.tmpl | \
|
||||
sed -e 's,%IMAGE%,'$IMAGE_NAME':'$IMAGE_TAG','g | \
|
||||
kubectl apply -f - -n $NAMESPACE
|
||||
|
||||
Reference in New Issue
Block a user