Skip to content

Commit

Permalink
create backstage secret in install Script and Set env
Browse files Browse the repository at this point in the history
  • Loading branch information
jkleinlercher authored May 5, 2024
1 parent e9566cf commit 68a3d5b
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/cluster-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,17 @@ jobs:
env:
INSTALL_K3D_CLUSTER: "false"
INSTALL_MKCERTS: "false"
GITHUB_CLIENTSECRET: "dummy"
GITHUB_CLIENTID: "dummy"
GITHUB_TOKEN: "dummy"
shell: bash
run: |
kubectl create ns backstage
kubectl create secret generic -n backstage manual-secret --from-literal=GITHUB_CLIENTSECRET=dummy --from-literal=GITHUB_CLIENTID=dummy --from-literal=GITHUB_TOKEN=dummy --from-literal=K8S_SA_TOKEN=dummy --from-literal=ARGOCD_AUTH_TOKEN=dummy --from-literal=GRAFANA_TOKEN=dummy
curl -L https://raw.githubusercontent.com/suxess-it/sx-cnp-oss/main/install-k3d-cluster.sh | bash
- name: argocd show diff
if: ${{ failure() }}
if: always()
env:
APPS: "argocd sx-loki sx-kubecost sx-keycloak sx-promtail sx-tempo sx-crossplane sx-bootstrap-app sx-kargo approved-application-team-app sx-cert-manager sx-argo-rollouts sx-external-secrets sx-kyverno sx-kube-prometheus-stack"
APPS: "argocd sx-backstage sx-loki sx-kubecost sx-keycloak sx-promtail sx-tempo sx-crossplane sx-bootstrap-app sx-kargo approved-application-team-app sx-cert-manager sx-argo-rollouts sx-external-secrets sx-kyverno sx-kube-prometheus-stack"
shell: bash
run: |
pwd
Expand All @@ -69,6 +70,12 @@ jobs:
ls -l
./argocd login argocd-127-0-0-1.nip.io --grpc-web --insecure --username admin --password admin
for app in ${APPS} ; do echo "$app diff" ; ./argocd app diff $app --grpc-web ; done
- name: analyze with k8sgpt
if: always()
shell: bash
run: |
k8sgpt analyze
- name: mustgather data for troubleshooting
if: ${{ failure() }}
Expand All @@ -83,12 +90,6 @@ jobs:
echo "===== yaml output of all applications ======"
kubectl get application -n argocd -o yaml
- name: analyze with k8sgpt
if: ${{ failure() }}
shell: bash
run: |
k8sgpt analyze
- name: mustgather logs for troubleshooting
if: ${{ failure() }}
shell: bash
Expand Down

0 comments on commit 68a3d5b

Please sign in to comment.