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

Signed-off-by: ishitasequeira <[email protected]>
  • Loading branch information
ishitasequeira committed Jan 16, 2024
1 parent 7ec9999 commit 3dda287
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 15 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
10 changes: 1 addition & 9 deletions manifests/ha/base/controller-deployment/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization


patches:
- 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-roles
- ../../../base/application-controller-deployment
- ../../../base/applicationset-controller
- ../../../base/dex
Expand Down
2 changes: 1 addition & 1 deletion manifests/ha/base/redis-ha/chart/upstream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1389,4 +1389,4 @@ spec:
defaultMode: 0755
- name: data
emptyDir:
{}
{}

0 comments on commit 3dda287

Please sign in to comment.