Skip to content

Commit 63246a4

Browse files
authored
Deploy ArgoCD Repo Secrets app to internal staging (redhat-appstudio#364)
This adds an ApplicationSet to deploy ArgoCD GitHub repository secrets to allow ArgoCD instances in any common Konflux cluster to deploy resources from any private repository in the redhat-appstudio GitHub organization. Also add the argocd-local namespace to the ClusterSecretStore condition list to allow the app to access Vault. KFLUXINFRA-3596
1 parent 4606d4f commit 63246a4

14 files changed

Lines changed: 128 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
apiVersion: argoproj.io/v1alpha1
3+
kind: ApplicationSet
4+
metadata:
5+
name: argocd-repo-secrets
6+
spec:
7+
generators:
8+
- clusters:
9+
values:
10+
sourceRoot: components/argocd-repo-secrets
11+
environment: ""
12+
template:
13+
metadata:
14+
name: argocd-repo-secrets-{{nameNormalized}}
15+
spec:
16+
project: default
17+
source:
18+
path: '{{values.sourceRoot}}/{{values.environment}}'
19+
repoURL: https://github.com/redhat-appstudio/infra-common-deployments.git
20+
targetRevision: main
21+
destination:
22+
namespace: argocd-local # Must be the same namespace as the ArgoCD instance
23+
name: in-cluster
24+
syncPolicy:
25+
automated:
26+
prune: true
27+
selfHeal: true
28+
syncOptions:
29+
- CreateNamespace=true
30+
retry:
31+
limit: 50
32+
backoff:
33+
duration: 15s
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
apiVersion: kustomize.config.k8s.io/v1beta1
3+
kind: Kustomization
4+
resources:
5+
- appset.yaml

argo-cd-apps/base/all-clusters/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
apiVersion: kustomize.config.k8s.io/v1beta1
33
kind: Kustomization
44
resources:
5+
- argocd-repo-secrets
56
- cluster-secret-store
67
- external-secrets-operator
78
- iam
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# argocd-repo-secrets is currently only being tested in internal-staging
2+
$patch: delete
3+
apiVersion: argoproj.io/v1alpha1
4+
kind: ApplicationSet
5+
metadata:
6+
name: argocd-repo-secrets

argo-cd-apps/overlays/external-production/kustomization.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,9 @@ patches:
1111
group: argoproj.io
1212
version: v1alpha1
1313
kind: ApplicationSet
14+
- path: delete-argocd-repo-secrets-appset.yaml
15+
target:
16+
group: argoproj.io
17+
version: v1alpha1
18+
kind: ApplicationSet
19+
name: argocd-repo-secrets
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# argocd-repo-secrets is currently only being tested in internal-staging
2+
$patch: delete
3+
apiVersion: argoproj.io/v1alpha1
4+
kind: ApplicationSet
5+
metadata:
6+
name: argocd-repo-secrets

argo-cd-apps/overlays/external-staging/kustomization.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,9 @@ patches:
1111
group: argoproj.io
1212
version: v1alpha1
1313
kind: ApplicationSet
14+
- path: delete-argocd-repo-secrets-appset.yaml
15+
target:
16+
group: argoproj.io
17+
version: v1alpha1
18+
kind: ApplicationSet
19+
name: argocd-repo-secrets
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# argocd-repo-secrets is currently only being tested in internal-staging
2+
$patch: delete
3+
apiVersion: argoproj.io/v1alpha1
4+
kind: ApplicationSet
5+
metadata:
6+
name: argocd-repo-secrets

argo-cd-apps/overlays/internal-production/kustomization.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,9 @@ patches:
1111
group: argoproj.io
1212
version: v1alpha1
1313
kind: ApplicationSet
14+
- path: delete-argocd-repo-secrets-appset.yaml
15+
target:
16+
group: argoproj.io
17+
version: v1alpha1
18+
kind: ApplicationSet
19+
name: argocd-repo-secrets
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# See the OWNERS docs: https://go.k8s.io/owners
2+
3+
approvers:
4+
- hugares
5+
- enkeefe00
6+
- sadlerap
7+
- filariow
8+
- mshaposhnik
9+
- manish-jangra
10+
11+
reviewers:
12+
- hugares
13+
- enkeefe00
14+
- sadlerap
15+
- filariow
16+
- mshaposhnik
17+
- manish-jangra

0 commit comments

Comments
 (0)