Remove certificate copying logic from cert-manager setup script
This commit is contained in:
@@ -5,12 +5,8 @@ metadata:
|
||||
namespace: kube-system
|
||||
spec:
|
||||
valuesContent: |-
|
||||
# The new configuration format for MetalLB v0.13.0+
|
||||
apiVersion: v1
|
||||
# We'll use IPAddressPool and L2Advertisement CRs instead of the deprecated configInline
|
||||
# Need to install the CRDs separately
|
||||
crds:
|
||||
enabled: true
|
||||
# Disable controller.configInline since it's deprecated
|
||||
controller:
|
||||
configInline: null
|
@@ -63,24 +63,8 @@ echo "Waiting for wildcard certificates to be ready (this may take several minut
|
||||
kubectl wait --for=condition=Ready certificate wildcard-internal-sovereign-cloud -n cert-manager --timeout=300s || true
|
||||
kubectl wait --for=condition=Ready certificate wildcard-sovereign-cloud -n cert-manager --timeout=300s || true
|
||||
|
||||
# Copy the certificates to necessary namespaces
|
||||
echo "Copying certificates to necessary namespaces..."
|
||||
if kubectl get namespace example-admin &>/dev/null; then
|
||||
# Create example-admin namespace if it doesn't exist
|
||||
kubectl create namespace example-admin --dry-run=client -o yaml | kubectl apply -f -
|
||||
|
||||
# Get the internal wildcard certificate secret and copy it to example-admin namespace
|
||||
if kubectl get secret wildcard-internal-sovereign-cloud-tls -n cert-manager &>/dev/null; then
|
||||
copy-secret cert-manager:wildcard-internal-sovereign-cloud-tls example-admin
|
||||
echo "Internal certificate copied to example-admin namespace"
|
||||
else
|
||||
echo "Internal wildcard certificate not ready yet. Please manually copy it later with:"
|
||||
echo " copy-secret cert-manager:wildcard-internal-sovereign-cloud-tls example-admin"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "cert-manager setup complete!"
|
||||
echo ""
|
||||
echo "To verify the installation:"
|
||||
echo " kubectl get pods -n cert-manager"
|
||||
echo " kubectl get clusterissuers"
|
||||
echo " kubectl get clusterissuers"
|
||||
|
Reference in New Issue
Block a user