Skip to content

Commit

Permalink
setup argocd instance
Browse files Browse the repository at this point in the history
  • Loading branch information
strangiato committed Oct 24, 2024
1 parent dd2dde1 commit 789ca0a
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tenants/composer-ai/argocd/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: composer-ai-gitops

resources:
- ../../../../components/operators/openshift-gitops/instance/base

components:
- ../../../../components/operators/openshift-gitops/instance/components/annotation-resource-tracking
- ../../../../components/operators/openshift-gitops/instance/components/edge-termination
- ../../../../components/operators/openshift-gitops/instance/components/enable-notifications
- ../../../../components/operators/openshift-gitops/instance/components/health-check-openshift-ai
- ../../../../components/operators/openshift-gitops/instance/components/health-check-openshift-builds
- ../../../../components/operators/openshift-gitops/instance/components/kustomize-build-enable-helm

patches:
- target:
kind: ArgoCD
path: patch-rbac.yaml
- target:
kind: ArgoCD
path: patch-name.yaml
3 changes: 3 additions & 0 deletions tenants/composer-ai/argocd/base/patch-name.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- op: replace
path: /metadata/name
value: argocd
9 changes: 9 additions & 0 deletions tenants/composer-ai/argocd/base/patch-rbac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: argoproj.io/v1beta1
kind: ArgoCD
metadata:
name: argocd
spec:
rbac:
policy: |-
g, system:cluster-admins, role:admin
g, composer-ai-admins, role:admin
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../base
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../base

0 comments on commit 789ca0a

Please sign in to comment.