Skip to content

Commit

Permalink
separate application controller roles into a separate manifests direc…
Browse files Browse the repository at this point in the history
…tory (argoproj#16884)

Signed-off-by: ishitasequeira <[email protected]>
  • Loading branch information
ishitasequeira authored and Hariharasuthan99 committed Jun 16, 2024
1 parent 97d5605 commit 587d418
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
targetPort: 8082
- name: metrics
protocol: TCP
port: 8084
targetPort: 8084
port: 8082
targetPort: 8082
selector:
app.kubernetes.io/name: argocd-application-controller
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: argocd-application-controller
spec:
replicas: 0
template:
spec:
containers:
- name: argocd-application-controller
args:
- /usr/local/bin/argocd-application-controller
env:
- name: ARGOCD_CONTROLLER_REPLICAS
value: "0"
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../application-controller-roles
- argocd-application-controller-service.yaml
- argocd-application-controller-statefulset.yaml
- argocd-application-controller-deployment.yaml

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

resources:
- argocd-application-controller-sa.yaml
- argocd-application-controller-role.yaml
- argocd-application-controller-rolebinding.yaml
4 changes: 1 addition & 3 deletions manifests/base/application-controller/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- argocd-application-controller-sa.yaml
- argocd-application-controller-role.yaml
- argocd-application-controller-rolebinding.yaml
- ../application-controller-roles
- argocd-application-controller-statefulset.yaml
- argocd-metrics.yaml
- argocd-application-controller-network-policy.yaml
5 changes: 1 addition & 4 deletions manifests/ha/base/controller-deployment/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization


patches:
- path: argocd-application-controller-statefulset.yaml
- path: argocd-repo-server-deployment.yaml
- path: argocd-server-deployment.yaml
- path: argocd-application-controller-statefulset.yaml
- path: argocd-cmd-params-cm.yaml


images:
- name: quay.io/argoproj/argocd
newName: quay.io/argoproj/argocd
newTag: latest
resources:
- ../../../base/application-controller
- ../../../base/application-controller-deployment
- ../../../base/applicationset-controller
- ../../../base/dex
Expand Down

0 comments on commit 587d418

Please sign in to comment.