Skip to content

Commit

Permalink
chore: exclude argocd-server rbac for core-install (argoproj#8234)
Browse files Browse the repository at this point in the history
Signed-off-by: Chetan Banavikalmutt <chetanrns1997@gmail.com>
  • Loading branch information
chetan-rns committed Jan 21, 2022
1 parent ef8ae57 commit ae71475
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 53 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- argocd-application-controller-clusterrole.yaml
- argocd-application-controller-clusterrolebinding.yaml
6 changes: 2 additions & 4 deletions manifests/cluster-rbac/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- argocd-application-controller-clusterrole.yaml
- argocd-application-controller-clusterrolebinding.yaml
- argocd-server-clusterrole.yaml
- argocd-server-clusterrolebinding.yaml
- ./application-controller
- ./server
6 changes: 6 additions & 0 deletions manifests/cluster-rbac/server/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- argocd-server-clusterrole.yaml
- argocd-server-clusterrolebinding.yaml
48 changes: 0 additions & 48 deletions manifests/core-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2696,37 +2696,6 @@ rules:
- '*'
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
app.kubernetes.io/component: server
app.kubernetes.io/name: argocd-server
app.kubernetes.io/part-of: argocd
name: argocd-server
rules:
- apiGroups:
- '*'
resources:
- '*'
verbs:
- delete
- get
- patch
- apiGroups:
- ""
resources:
- events
verbs:
- list
- apiGroups:
- ""
resources:
- pods
- pods/log
verbs:
- get
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
labels:
Expand Down Expand Up @@ -2775,23 +2744,6 @@ subjects:
name: argocd-application-controller
namespace: argocd
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
app.kubernetes.io/component: server
app.kubernetes.io/name: argocd-server
app.kubernetes.io/part-of: argocd
name: argocd-server
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: argocd-server
subjects:
- kind: ServiceAccount
name: argocd-server
namespace: argocd
---
apiVersion: v1
kind: ConfigMap
metadata:
Expand Down
2 changes: 1 addition & 1 deletion manifests/core-install/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Kustomization

resources:
- ../crds
- ../cluster-rbac
- ../cluster-rbac/application-controller
- ../base/config
- ../base/application-controller
- ../base/repo-server
Expand Down

0 comments on commit ae71475

Please sign in to comment.