Skip to content

Commit

Permalink
policy: add a decapod app for policies
Browse files Browse the repository at this point in the history
  • Loading branch information
sungil committed Oct 4, 2023
1 parent 58bd018 commit 3a1b505
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 531 deletions.
38 changes: 7 additions & 31 deletions deploy_apps/tks-lma-federation-wftpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,17 @@ spec:
- name: base_repo_branch
value: "{{ workflow.parameters.base_repo_branch }}"

- - name: argocd-sync-wait
template: argocd-sync-wait

- - name: garafana-sync-wait
templateRef:
name: create-application
template: argocd-sync-wait
arguments:
parameters:
- name: cluster_id
value: '{{workflow.parameters.cluster_id}}'
- name: appname
value: 'grafana'

- - name: grafana-restart
template: grafana-restart
Expand Down Expand Up @@ -474,35 +479,6 @@ spec:
- secretRef:
name: "tks-api-secret"

- name: argocd-sync-wait
inputs:
parameters:
- name: cluster_id
container:
name: argocd-sync-wait
image: harbor.taco-cat.xyz/tks/argocd-cli:v2.2.5
command:
- /bin/bash
- '-c'
- |
# log into Argo CD server
./argocd login $ARGO_SERVER --plaintext --insecure --username $ARGO_USERNAME \
--password $ARGO_PASSWORD
app_name={{inputs.parameters.cluster_id}}-grafana
# sync app
echo "sync app $app_name"
./argocd app sync $app_name
# wait for sync
./argocd app wait $app_name --sync
envFrom:
- secretRef:
name: "decapod-argocd-config"
activeDeadlineSeconds: 900

- name: grafana-restart
inputs:
parameters:
Expand Down
Loading

0 comments on commit 3a1b505

Please sign in to comment.