Skip to content

Commit

Permalink
feat: argo-cd v2.7.11
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Suen <[email protected]>
  • Loading branch information
jessesuen committed Aug 9, 2023
1 parent 1c4c4bf commit fad8042
Show file tree
Hide file tree
Showing 53 changed files with 1,430 additions and 297 deletions.
4 changes: 2 additions & 2 deletions charts/argo-cd/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
version: v2.7.11-ak.0.0
appVersion: v2.7.11
version: 2.7.11-ak.0.0
appVersion: 2.7.11
description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes.
name: argo-cd
home: https://charts.akuity.io
Expand Down
333 changes: 333 additions & 0 deletions charts/argo-cd/crds/crd-application.yaml

Large diffs are not rendered by default.

811 changes: 811 additions & 0 deletions charts/argo-cd/crds/crd-applicationset.yaml

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion charts/argo-cd/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Returns the supplied image tag if defined, then the global tag, then the chart v
{{- if .image.tag -}}
{{- $repository }}:{{- .image.tag -}}
{{- else -}}
{{- $repository }}:{{- default .root.Chart.Version .root.Values.global.image.tag -}}
{{- $imageFromChartVersion := print "v" (regexReplaceAllLiteral "\\.[0-9]+$" .root.Chart.Version "") }}
{{- $repository }}:{{- default $imageFromChartVersion .root.Values.global.image.tag -}}
{{- end -}}
{{- end -}}
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ metadata:
app.kubernetes.io/name: argocd-metrics
app.kubernetes.io/part-of: argocd
name: argocd-metrics
namespace: {{ .Release.Namespace }}
spec:
ports:
- name: metrics
port: 8082
protocol: TCP
targetPort: 8082
selector:
app.kubernetes.io/name: argocd-application-controller
app.kubernetes.io/name: argocd-application-controller
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: argocd-application-controller-network-policy
namespace: {{ .Release.Namespace }}
spec:
ingress:
- from:
Expand All @@ -12,4 +13,4 @@ spec:
matchLabels:
app.kubernetes.io/name: argocd-application-controller
policyTypes:
- Ingress
- Ingress
3 changes: 3 additions & 0 deletions charts/argo-cd/templates/application-controller/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
app.kubernetes.io/name: argocd-application-controller
app.kubernetes.io/part-of: argocd
name: argocd-application-controller
namespace: {{ .Release.Namespace }}

---
apiVersion: rbac.authorization.k8s.io/v1
Expand All @@ -16,6 +17,7 @@ metadata:
app.kubernetes.io/name: argocd-application-controller
app.kubernetes.io/part-of: argocd
name: argocd-application-controller
namespace: {{ .Release.Namespace }}
rules:
- apiGroups:
- ""
Expand Down Expand Up @@ -56,6 +58,7 @@ metadata:
app.kubernetes.io/name: argocd-application-controller
app.kubernetes.io/part-of: argocd
name: argocd-application-controller
namespace: {{ .Release.Namespace }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
Expand Down
18 changes: 14 additions & 4 deletions charts/argo-cd/templates/application-controller/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
app.kubernetes.io/name: argocd-application-controller
app.kubernetes.io/part-of: argocd
name: argocd-application-controller
namespace: {{ .Release.Namespace }}
spec:
replicas: {{ .Values.controller.replicas }}
selector:
Expand Down Expand Up @@ -33,10 +34,8 @@ spec:
topologyKey: kubernetes.io/hostname
weight: 5
containers:
- command:
- argocd-application-controller
- --redis
- argocd-redis-ha-haproxy:6379
- args:
- /usr/local/bin/argocd-application-controller
{{- with .Values.controller.extraArgs }}
{{- . | toYaml | nindent 8 }}
{{- end }}
Expand All @@ -48,6 +47,11 @@ spec:
{{- with .Values.controller.env }}
{{- toYaml . | nindent 10 }}
{{- end }}
- name: ARGOCD_REDIS
valueFrom:
configMapKeyRef:
key: redis.server
name: argocd-cmd-params-cm
- name: ARGOCD_CONTROLLER_REPLICAS
value: {{ .Values.controller.replicas | quote }}
- name: ARGOCD_RECONCILIATION_TIMEOUT
Expand Down Expand Up @@ -170,6 +174,12 @@ spec:
key: application.namespaces
name: argocd-cmd-params-cm
optional: true
- name: ARGOCD_APPLICATION_CONTROLLER_KUBECTL_PARALLELISM_LIMIT
valueFrom:
configMapKeyRef:
key: controller.kubectl.parallelism.limit
name: argocd-cmd-params-cm
optional: true
image: {{ include "argo-cd.image" (dict "root" . "image" .Values.controller.image ) }}
imagePullPolicy: {{ default .Values.global.image.pullPolicy .Values.controller.image.pullPolicy }}
name: argocd-application-controller
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/component: controller
app.kubernetes.io/component: applicationset-controller
app.kubernetes.io/name: argocd-applicationset-controller
app.kubernetes.io/part-of: argocd-applicationset
app.kubernetes.io/part-of: argocd
name: argocd-applicationset-controller
namespace: {{ .Release.Namespace }}
spec:
Expand All @@ -18,9 +18,8 @@ spec:
app.kubernetes.io/name: argocd-applicationset-controller
spec:
containers:
- command:
- entrypoint.sh
- argocd-applicationset-controller
- args:
- /usr/local/bin/argocd-applicationset-controller
env:
- name: NAMESPACE
valueFrom:
Expand Down Expand Up @@ -86,7 +85,7 @@ spec:
key: applicationsetcontroller.enable.progressive.syncs
name: argocd-cmd-params-cm
optional: true
image: {{ default .Values.global.image.repository .Values.applicationsetController.image.repository }}:{{ default .Values.global.image.tag .Values.applicationsetController.image.tag }}
image: {{ include "argo-cd.image" (dict "root" . "image" .Values.applicationsetController.image ) }}
imagePullPolicy: {{ default .Values.global.image.pullPolicy .Values.applicationsetController.image.pullPolicy }}
name: argocd-applicationset-controller
ports:
Expand All @@ -98,7 +97,7 @@ spec:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{- if .Values.applicationsetController.enabled }}
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: argocd-applicationset-controller-network-policy
namespace: {{ .Release.Namespace }}
spec:
ingress:
- from:
- namespaceSelector: {}
ports:
- port: 7000
protocol: TCP
- port: 8080
protocol: TCP
podSelector:
matchLabels:
app.kubernetes.io/name: argocd-applicationset-controller
policyTypes:
- Ingress
{{- end }}
13 changes: 7 additions & 6 deletions charts/argo-cd/templates/applicationset-controller/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
labels:
app.kubernetes.io/component: controller
app.kubernetes.io/component: applicationset-controller
app.kubernetes.io/name: argocd-applicationset-controller
app.kubernetes.io/part-of: argocd-applicationset
app.kubernetes.io/part-of: argocd
name: argocd-applicationset-controller
namespace: {{ .Release.Namespace }}
rules:
Expand Down Expand Up @@ -65,14 +65,15 @@ rules:
- get
- list
- watch

---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
labels:
app.kubernetes.io/component: controller
app.kubernetes.io/component: applicationset-controller
app.kubernetes.io/name: argocd-applicationset-controller
app.kubernetes.io/part-of: argocd-applicationset
app.kubernetes.io/part-of: argocd
name: argocd-applicationset-controller
namespace: {{ .Release.Namespace }}
roleRef:
Expand All @@ -88,9 +89,9 @@ apiVersion: v1
kind: ServiceAccount
metadata:
labels:
app.kubernetes.io/component: controller
app.kubernetes.io/component: applicationset-controller
app.kubernetes.io/name: argocd-applicationset-controller
app.kubernetes.io/part-of: argocd-applicationset
app.kubernetes.io/part-of: argocd
name: argocd-applicationset-controller
namespace: {{ .Release.Namespace }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ apiVersion: v1
kind: Service
metadata:
labels:
app.kubernetes.io/component: controller
app.kubernetes.io/component: applicationset-controller
app.kubernetes.io/name: argocd-applicationset-controller
app.kubernetes.io/part-of: argocd-applicationset
app.kubernetes.io/part-of: argocd
name: argocd-applicationset-controller
namespace: {{ .Release.Namespace }}
spec:
Expand Down
14 changes: 9 additions & 5 deletions charts/argo-cd/templates/argocd-server/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
app.kubernetes.io/name: argocd-server
app.kubernetes.io/part-of: argocd
name: argocd-server
namespace: {{ .Release.Namespace }}
spec:
replicas: {{ .Values.server.replicas }}
selector:
Expand All @@ -24,18 +25,16 @@ spec:
labelSelector:
matchLabels:
app.kubernetes.io/name: argocd-server
topologyKey: failure-domain.beta.kubernetes.io/zone
topologyKey: topology.kubernetes.io/zone
weight: 100
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app.kubernetes.io/name: argocd-server
topologyKey: kubernetes.io/hostname
containers:
- command:
- argocd-server
- --redis
- argocd-redis-ha-haproxy:6379
- args:
- /usr/local/bin/argocd-server
{{- if .Values.server.insecure}}
- --insecure
{{- end }}
Expand All @@ -52,6 +51,11 @@ spec:
{{- end }}
- name: ARGOCD_API_SERVER_REPLICAS
value: {{ .Values.server.replicas | quote }}
- name: ARGOCD_REDIS
valueFrom:
configMapKeyRef:
key: redis.server
name: argocd-cmd-params-cm
- name: ARGOCD_SERVER_INSECURE
valueFrom:
configMapKeyRef:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
app.kubernetes.io/name: argocd-server-metrics
app.kubernetes.io/part-of: argocd
name: argocd-server-metrics
namespace: {{ .Release.Namespace }}
spec:
ports:
- name: metrics
Expand Down
1 change: 1 addition & 0 deletions charts/argo-cd/templates/argocd-server/networkpolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: argocd-server-network-policy
namespace: {{ .Release.Namespace }}
spec:
ingress:
- {}
Expand Down
13 changes: 3 additions & 10 deletions charts/argo-cd/templates/argocd-server/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,7 @@ metadata:
app.kubernetes.io/name: argocd-server
app.kubernetes.io/part-of: argocd
name: argocd-server

---
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
app.kubernetes.io/component: repo-server
app.kubernetes.io/name: argocd-repo-server
app.kubernetes.io/part-of: argocd
name: argocd-repo-server
namespace: {{ .Release.Namespace }}

---
apiVersion: rbac.authorization.k8s.io/v1
Expand All @@ -27,6 +18,7 @@ metadata:
app.kubernetes.io/name: argocd-server
app.kubernetes.io/part-of: argocd
name: argocd-server
namespace: {{ .Release.Namespace }}
rules:
- apiGroups:
- ""
Expand Down Expand Up @@ -72,6 +64,7 @@ metadata:
app.kubernetes.io/name: argocd-server
app.kubernetes.io/part-of: argocd
name: argocd-server
namespace: {{ .Release.Namespace }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
Expand Down
3 changes: 2 additions & 1 deletion charts/argo-cd/templates/argocd-server/service.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: argocd-server
labels:
app.kubernetes.io/component: server
app.kubernetes.io/name: argocd-server
app.kubernetes.io/part-of: argocd
name: argocd-server
namespace: {{ .Release.Namespace }}
spec:
{{- if .Values.server.service.type }}
type: {{ .Values.server.service.type }}
Expand Down
3 changes: 2 additions & 1 deletion charts/argo-cd/templates/config/argocd-cm-params-cm.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-cmd-params-cm
labels:
app.kubernetes.io/name: argocd-cmd-params-cm
app.kubernetes.io/part-of: argocd
name: argocd-cmd-params-cm
namespace: {{ .Release.Namespace }}
{{- with .Values.config.params }}
data:
{{- toYaml . | nindent 2}}
Expand Down
3 changes: 2 additions & 1 deletion charts/argo-cd/templates/config/argocd-cm.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-cm
labels:
app.kubernetes.io/name: argocd-cm
app.kubernetes.io/part-of: argocd
name: argocd-cm
namespace: {{ .Release.Namespace }}
{{- with .Values.config.argocd }}
data:
{{- toYaml . | nindent 2}}
Expand Down
3 changes: 2 additions & 1 deletion charts/argo-cd/templates/config/argocd-gpg-keys-cm.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-gpg-keys-cm
labels:
app.kubernetes.io/name: argocd-gpg-keys-cm
app.kubernetes.io/part-of: argocd
name: argocd-gpg-keys-cm
namespace: {{ .Release.Namespace }}
{{- with .Values.config.gpgKeys }}
data:
{{- toYaml . | nindent 2}}
Expand Down
3 changes: 2 additions & 1 deletion charts/argo-cd/templates/config/argocd-rbac-cm.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-rbac-cm
labels:
app.kubernetes.io/name: argocd-rbac-cm
app.kubernetes.io/part-of: argocd
name: argocd-rbac-cm
namespace: {{ .Release.Namespace }}
{{- with .Values.config.rbac }}
data:
{{- toYaml . | nindent 2}}
Expand Down
Loading

0 comments on commit fad8042

Please sign in to comment.