Skip to content

Commit f3562f6

Browse files
committed
Remove steps to print access URLs and credentials for ArgoCD, Prometheus, and Grafana from Terraform workflow
1 parent aaa51c2 commit f3562f6

File tree

1 file changed

+1
-52
lines changed

1 file changed

+1
-52
lines changed

.github/workflows/terraform.yml

Lines changed: 1 addition & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -84,55 +84,4 @@ jobs:
8484
- name: Deploy Monitoring
8585
if: ${{ inputs.terraform-action == 'apply' || inputs.terraform-action == '' }}
8686
run: |
87-
kubectl apply -f ./argocd/monitoring.yml
88-
89-
# ---------------------------
90-
# Print Access URLs & Credentials
91-
# ---------------------------
92-
- name: Get ArgoCD URL
93-
if: ${{ inputs.terraform-action == 'apply' || inputs.terraform-action == '' }}
94-
run: |
95-
echo "Waiting for ArgoCD LoadBalancer..."
96-
kubectl wait --namespace argocd \
97-
--for=condition=available svc/argocd-server \
98-
--timeout=300s
99-
100-
ARGOCD_URL=$(kubectl get svc argocd-server -n argocd \
101-
-o jsonpath='{.status.loadBalancer.ingress[0].hostname}')
102-
103-
echo "ArgoCD URL: $ARGOCD_URL"
104-
echo "ArgoCD Username: admin"
105-
echo "ArgoCD Password:"
106-
kubectl -n argocd get secret argocd-initial-admin-secret \
107-
-o jsonpath="{.data.password}" | base64 --decode
108-
echo ""
109-
110-
- name: Get Prometheus URL
111-
if: ${{ inputs.terraform-action == 'apply' || inputs.terraform-action == '' }}
112-
run: |
113-
echo "Waiting for Prometheus LoadBalancer..."
114-
kubectl wait --namespace monitoring \
115-
--for=condition=available svc/kube-prometheus-stack-prometheus \
116-
--timeout=300s
117-
118-
PROM_URL=$(kubectl get svc kube-prometheus-stack-prometheus -n monitoring \
119-
-o jsonpath='{.status.loadBalancer.ingress[0].hostname}')
120-
121-
echo "Prometheus URL: $PROM_URL"
122-
echo ""
123-
124-
- name: Get Grafana URL
125-
if: ${{ inputs.terraform-action == 'apply' || inputs.terraform-action == '' }}
126-
run: |
127-
echo "Waiting for Grafana LoadBalancer..."
128-
kubectl wait --namespace monitoring \
129-
--for=condition=available svc/kube-prometheus-stack-grafana \
130-
--timeout=300s
131-
132-
GRAFANA_URL=$(kubectl get svc kube-prometheus-stack-grafana -n monitoring \
133-
-o jsonpath='{.status.loadBalancer.ingress[0].hostname}')
134-
135-
echo "Grafana URL: $GRAFANA_URL"
136-
echo "Grafana Username: admin"
137-
echo "Grafana Password: ${{ secrets.GRAFANA_ADMIN_PASSWORD }}"
138-
echo ""
87+
kubectl apply -f ./argocd/monitoring.yml

0 commit comments

Comments
 (0)