Skip to content

Commit

Permalink
added argo cd project
Browse files Browse the repository at this point in the history
  • Loading branch information
jpaulrajredhat committed Apr 2, 2024
1 parent 1ebf785 commit d6dbe83
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gitops/argo-cd/datamesh-dev/applicaiton-airflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
project: datamesh
source:
repoURL: https://github.com/opendatahub-io-contrib/datamesh-platform.git
path: development/airflow/kustomize/overlays/development
path: deployment/airflow/kustomize/overlays/development
targetRevision: main
# plugin:
# name: argocd-vault-plugin-kustomize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
project: datamesh
source:
repoURL: https://github.com/opendatahub-io-contrib/datamesh-platform.git
path: development/common/kustomize/overlays/development
path: deployment/common/kustomize/overlays/development
targetRevision: main
# plugin:
# name: argocd-vault-plugin-kustomize
Expand Down
66 changes: 66 additions & 0 deletions gitops/argo-role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: argocd-application-controller-clusterrole
rules:
- apiGroups: [""]
resources: ["namespaces"]
verbs: ["get", "list"]

---
# For a ClusterRoleBinding (cluster-wide)
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: argocd-application-controller-clusterrolebinding
subjects:
- kind: ServiceAccount
name: datamesh-ci-cd-argocd-application-controller
namespace: datamesh-ci-cd
roleRef:
kind: ClusterRole
name: argocd-application-controller-clusterrole
apiGroup: rbac.authorization.k8s.io
# ---
# # For a RoleBinding (namespace-scoped)
# apiVersion: rbac.authorization.k8s.io/v1
# kind: RoleBinding
# metadata:
# name: argocd-application-controller-rolebinding
# namespace: your-argo-cd-namespace
# subjects:
# - kind: ServiceAccount
# name: argocd-application-controller
# namespace: your-argo-cd-namespace
# roleRef:
# kind: Role
# name: argocd-application-controller-role
# apiGroup: rbac.authorization.k8s.io
# ---
# ---
# apiVersion: rbac.authorization.k8s.io/v1
# kind: Role
# metadata:
# namespace: your-argo-cd-namespace
# name: argocd-application-controller-role
# rules:
# - apiGroups: [""]
# resources: ["namespaces"]
# verbs: ["get", "list"]
# ---
# kind: Role
# apiVersion: rbac.authorization.k8s.io/v1
# metadata:
# name: argocd-application-controller
# namespace: datamesh-ci-cd
# labels:
# app.kubernetes.io/component: application-controller
# app.kubernetes.io/name: argocd-application-controller
# rules:
# - apiGroups:
# - '*'
# resources:
# - '*'
# verbs:
# - '*'

0 comments on commit d6dbe83

Please sign in to comment.