test in app secret decrypt and import

This commit is contained in:
2024-07-15 10:39:20 +10:00
parent 9788988f0b
commit 293c67efad
3 changed files with 35 additions and 1 deletions

View File

@@ -5,4 +5,8 @@ kubectl apply -k "https://github.com/argoproj/argo-cd/manifests/crds?ref=v2.11.4
kubectl create namespace argocd || echo "Namespace argocd already exists"
helm repo add argo https://argoproj.github.io/argo-helm || echo "Argo repo already exists"
helm repo update || echo "Failed to update helm repos"
helm upgrade --install argocd -n argocd -f argocd-values.yaml argo/argo-cd --version 7.3.6
helm upgrade --install argocd -n argocd -f argocd-values.yaml argo/argo-cd --version 7.3.6
#Check repo server secret accessibility
echo "Checking repo server secret accessibility:"
kubectl auth can-i get secrets --namespace "argocd" --as "system:serviceaccount:argocd:argocd-repo-server"