Skip to content

Commit

Permalink
chore: stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsimonemms committed Dec 1, 2024
1 parent c07ecc4 commit 9bd75f3
Showing 1 changed file with 31 additions and 8 deletions.
39 changes: 31 additions & 8 deletions modules/kubernetes/files/argocd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,35 @@ repoServer:
autoscaling:
enabled: true
minReplicas: 2
extraContainers:
- name: kustomized-helm
image: '{{ default .Values.global.image.repository .Values.repoServer.image.repository }}:{{ default (include "argo-cd.defaultTag" .) .Values.repoServer.image.tag }}'
command:
- argocd-cmp-server
securityContext:
runAsNonRoot: true
runAsUser: 999
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
seccompProfile:
type: RuntimeDefault
capabilities:
drop:
- ALL
volumeMounts:
- name: plugins
mountPath: /home/argocd/cmp-server/plugins
- name: cmp-kustomized-helm
mountPath: /home/argocd/cmp-server/config/plugin.yaml
subPath: kustomized-helm.yaml
- mountPath: /tmp
name: cmp-tmp
volumes:
- name: cmp-kustomized-helm
configMap:
name: argocd-cmp-cm
- name: cmp-tmp
emptyDir: {}
server:
autoscaling:
enabled: true
Expand Down Expand Up @@ -36,25 +65,19 @@ configs:
admin.enabled: false
dex.config: |-
${indent(6, yamlencode(dex_config))}
kustomize.buildOptions: --enable-helm
kustomize.buildOptions: --enable-helm --load-restrictor=LoadRestrictionsNone
statusbadge.enabled: true
url: https://${domain}
cmp:
create: true
plugins:
kustomized-helm:
init:
command:
- /bin/sh
- -c
args:
- helm dependency build || true
generate:
command:
- /bin/sh
- -c
args:
- helm template . --name-template $${ARGOCD_APP_NAME} --namespace $${ARGOCD_APP_NAMESPACE} --include-crds > all.yaml && kustomize build
- kustomize build --enable-helm
params:
server.insecure: true
rbac:
Expand Down

0 comments on commit 9bd75f3

Please sign in to comment.