Skip to content

Commit

Permalink
Label Applications with kargo project
Browse files Browse the repository at this point in the history
Makes it easier to find the promoter application resources in the ArgoCD
web ui and apply the promotion configuration for each add-on.
  • Loading branch information
jeffmccune committed Jan 2, 2025
1 parent 5ff7309 commit e2ea483
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion deploy/gitops/external-secrets-promoter.application.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ kind: Application
metadata:
annotations:
link.argocd.argoproj.io/external-link: https://kargo.holos.localhost/project/external-secrets
labels: {}
labels:
kargo.project: external-secrets
name: security-external-secrets-promoter
namespace: argocd
spec:
Expand Down
3 changes: 2 additions & 1 deletion deploy/gitops/istio-promoter.application.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ kind: Application
metadata:
annotations:
link.argocd.argoproj.io/external-link: https://kargo.holos.localhost/project/istio
labels: {}
labels:
kargo.project: istio
name: network-istio-promoter
namespace: argocd
spec:
Expand Down
3 changes: 2 additions & 1 deletion deploy/gitops/kargo-promoter.application.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ kind: Application
metadata:
annotations:
link.argocd.argoproj.io/external-link: https://kargo.holos.localhost/project/kargo
labels: {}
labels:
kargo.project: kargo
name: argocd-kargo-promoter
namespace: argocd
spec:
Expand Down
1 change: 1 addition & 0 deletions stacks/shared/components/addon-promoter/addon-promoter.cue
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ Component: #Kubernetes & {

_ArgoApplication: {
metadata: annotations: "link.argocd.argoproj.io/external-link": "https://kargo.holos.localhost/project/\(PROJECT)"
metadata: labels: "kargo.project": PROJECT
spec: info: [{
name: "Kargo Project"
value: "https://kargo.holos.localhost/project/\(PROJECT)"
Expand Down

0 comments on commit e2ea483

Please sign in to comment.