pipeline #4
This commit is contained in:
parent
2bd71ebbd3
commit
47dc33c749
|
|
@ -154,11 +154,20 @@ jobs:
|
|||
exit 1
|
||||
fi
|
||||
|
||||
echo "✅ kubeconfig validation passed"
|
||||
# Add insecure-skip-tls-verify to handle self-signed certificates
|
||||
echo "🔧 Configuring TLS settings for self-signed certificates..."
|
||||
CURRENT_CONTEXT=$(kubectl config current-context)
|
||||
CLUSTER_NAME=$(kubectl config view -o jsonpath="{.contexts[?(@.name=='$CURRENT_CONTEXT')].context.cluster}")
|
||||
kubectl config set-cluster "$CLUSTER_NAME" --insecure-skip-tls-verify=true
|
||||
|
||||
echo "✅ kubeconfig validation and TLS configuration completed"
|
||||
|
||||
- name: Test kubectl connection
|
||||
run: |
|
||||
kubectl version --client
|
||||
echo "Testing cluster connection..."
|
||||
kubectl cluster-info
|
||||
echo "Testing node access..."
|
||||
kubectl get nodes
|
||||
|
||||
- name: Deploy Feature Branch
|
||||
|
|
@ -383,11 +392,20 @@ jobs:
|
|||
exit 1
|
||||
fi
|
||||
|
||||
echo "✅ kubeconfig validation passed"
|
||||
# Add insecure-skip-tls-verify to handle self-signed certificates
|
||||
echo "🔧 Configuring TLS settings for self-signed certificates..."
|
||||
CURRENT_CONTEXT=$(kubectl config current-context)
|
||||
CLUSTER_NAME=$(kubectl config view -o jsonpath="{.contexts[?(@.name=='$CURRENT_CONTEXT')].context.cluster}")
|
||||
kubectl config set-cluster "$CLUSTER_NAME" --insecure-skip-tls-verify=true
|
||||
|
||||
echo "✅ kubeconfig validation and TLS configuration completed"
|
||||
|
||||
- name: Test kubectl connection
|
||||
run: |
|
||||
kubectl version --client
|
||||
echo "Testing cluster connection..."
|
||||
kubectl cluster-info
|
||||
echo "Testing node access..."
|
||||
kubectl get nodes
|
||||
|
||||
- name: Deploy to Production
|
||||
|
|
|
|||
Loading…
Reference in New Issue