rewrite helm chart to be one for argoCD

This commit is contained in:
2026-11-10 09:45:26 +01:00
parent e3d1dba24a
commit 0bcdd7bbd5
30 changed files with 58 additions and 34 deletions
+1
View File
@@ -0,0 +1 @@
argocd-application.yaml
+9
View File
@@ -0,0 +1,9 @@
dependencies:
- name: frontend
repository: ""
version: 0.1.0
- name: backend
repository: ""
version: 0.1.0
digest: sha256:1140d4999433b0aeea61b30ba78833a3ac5d3844c7b80b9650490a74382e7a6b
generated: "2026-11-10T09:44:26.024447+01:00"
+11
View File
@@ -0,0 +1,11 @@
apiVersion: v2
name: collabry
description: Collabry (frontend + backend) as a single chart for Argo CD
type: application
version: 0.1.0
# Subcharts are vendored in charts/ (no repository), so no dependency download is needed.
dependencies:
- name: frontend
version: 0.1.0
- name: backend
version: 0.1.0
+17
View File
@@ -0,0 +1,17 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: collabry
namespace: argocd
spec:
project: default
source:
repoURL: https://git.nhaiden.io/niklas/collabry-helm-chart.git
targetRevision: HEAD
path: .
destination:
server: https://kubernetes.default.svc
namespace: collabry
syncPolicy:
syncOptions:
- CreateNamespace=true
@@ -1,15 +0,0 @@
apiVersion: v1
kind: Pod
metadata:
name: "{{ include "backend.fullname" . }}-test-connection"
labels:
{{- include "backend.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": test
spec:
containers:
- name: wget
image: busybox
command: ['wget']
args: ['{{ include "backend.fullname" . }}:{{ .Values.service.port }}']
restartPolicy: Never
@@ -11,7 +11,7 @@ image:
# This sets the pull policy for images. # This sets the pull policy for images.
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion. # Overrides the image tag whose default is the chart appVersion.
tag: "2209c3fb" tag: "11729b15"
# This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ # This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
imagePullSecrets: [] imagePullSecrets: []
@@ -60,6 +60,10 @@ spec:
volumeMounts: volumeMounts:
{{- toYaml . | nindent 12 }} {{- toYaml . | nindent 12 }}
{{- end }} {{- end }}
{{- with .Values.appConfig }}
env:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.volumes }} {{- with .Values.volumes }}
volumes: volumes:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
@@ -11,7 +11,7 @@ image:
# This sets the pull policy for images. # This sets the pull policy for images.
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion. # Overrides the image tag whose default is the chart appVersion.
tag: "89fa5c9a" tag: "11729b15"
# This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ # This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
imagePullSecrets: [] imagePullSecrets: []
@@ -159,3 +159,7 @@ nodeSelector: {}
tolerations: [] tolerations: []
affinity: {} affinity: {}
appConfig:
- name: API_SERVER
value: http://backend:8080
@@ -1,15 +0,0 @@
apiVersion: v1
kind: Pod
metadata:
name: "{{ include "frontend.fullname" . }}-test-connection"
labels:
{{- include "frontend.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": test
spec:
containers:
- name: wget
image: busybox
command: ['wget']
args: ['{{ include "frontend.fullname" . }}:{{ .Values.service.port }}']
restartPolicy: Never
@@ -2,7 +2,6 @@ apiVersion: external-secrets.io/v1
kind: ExternalSecret kind: ExternalSecret
metadata: metadata:
name: collabry name: collabry
namespace: collabry
spec: spec:
refreshInterval: 1h refreshInterval: 1h
secretStoreRef: secretStoreRef:
@@ -10,4 +9,4 @@ spec:
kind: ClusterSecretStore kind: ClusterSecretStore
dataFrom: dataFrom:
- extract: - extract:
key: k8s/collabry key: k8s/collabry
+9
View File
@@ -0,0 +1,9 @@
# Per-app settings live in charts/<app>/values.yaml; anything here overrides them.
# Fixed names so resources stay "frontend"/"backend" regardless of the Argo CD app/release name
# (frontend reaches the API at http://backend:8080).
frontend:
fullnameOverride: frontend
backend:
fullnameOverride: backend