9 Commits

Author SHA1 Message Date
Jonas Forsberg
0d9a47f208 added helm back 2024-11-11 11:01:57 +01:00
e211d43dc7 Merge pull request 'fix_stateful' (#8) from fix_stateful into main
All checks were successful
Lint and Test Charts / lint-test (push) Successful in 10s
Reviewed-on: #8
fixes #7
2024-11-11 09:55:52 +00:00
Jonas Forsberg
224c1ccd2f changed to gitea helm repo
Some checks failed
Package and publish helm chart / package-helm (push) Failing after 11s
2024-11-11 10:55:03 +01:00
Jonas Forsberg
f924f986a9 fixed volumeMounts for statefulset 2024-11-11 09:38:40 +01:00
2ae5f80aa4 Merge pull request 'fixed verion tag' (#6) from version_fix into main
All checks were successful
Lint and Test Charts / lint-test (push) Successful in 7s
Package and publish helm chart / package-helm (push) Successful in 15s
Reviewed-on: #6
2024-10-22 14:15:06 +00:00
Jonas Forsberg
db1b814416 fixed verion tag 2024-10-22 16:14:33 +02:00
8753852318 Merge pull request 'fixed namespace' (#5) from deployment-ns into main
All checks were successful
Lint and Test Charts / lint-test (push) Successful in 8s
Package and publish helm chart / package-helm (push) Successful in 14s
Reviewed-on: #5
2024-10-22 14:08:47 +00:00
Jonas Forsberg
fef72ffc1a fixed namespace 2024-10-22 16:08:06 +02:00
35fbb3534e Merge pull request 'deployment' (#3) from deployment into main
All checks were successful
Lint and Test Charts / lint-test (push) Successful in 9s
Reviewed-on: #3
2024-10-22 12:30:56 +00:00
5 changed files with 12 additions and 7 deletions

View File

@@ -32,9 +32,7 @@ jobs:
- name: build helm package
shell: bash
env:
REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }}
REPO_USERNAME: ${{ secrets.REPO_USERNAME }}
REPO_HOST: ${{ secrets.REPO_HOST }}
PACKAGE_TOKEN: ${{ secrets.REPO_HOST }}
CHART_NAME: ${{ steps.chart_name.outputs.result }}
CHART_VERSION: ${{ steps.chart_version.outputs.result }}
run: |
@@ -42,5 +40,4 @@ jobs:
mkdir /tmp/build
cd /tmp/build
helm package $REPO_PATH
helm registry login --username $REPO_USERNAME --password $REPO_PASSWORD $REPO_HOST
helm push ${CHART_NAME}-${CHART_VERSION}.tgz oci://$REPO_HOST/helm
curl -H "Authorization: token $PACKAGE_TOKEN" -X POST --upload-file $CHART_NAME-$CHART_VERSION.tgz https://git.rre.nu/api/packages/jonas/helm/api/charts

1
.gitignore vendored
View File

@@ -5,6 +5,7 @@ bin/*
.project
/.bin
/_test/secrets/*.json
*.tgz
# OSX leaves these everywhere on SMB shares
._*

View File

@@ -3,7 +3,7 @@ apiVersion: v2
name: lib
description: Common functions for my helm charts at home
type: library
version: 1.0.0
version: 1.0.3
kubeVersion: ">=1.27.0"
home: git.rre.nu
sources:

View File

@@ -4,6 +4,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "lib.fullname" . }}
namespace: {{ .Values.namespace }}
labels:
{{- include "lib.labels" . | nindent 4 }}
spec:

View File

@@ -40,8 +40,14 @@ create the environment varable list
resources:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.volumeMounts }}
{{- if or .Values.volumeMounts .Values.volumeClaimTemplates }}
volumeMounts:
{{- end }}
{{- with .Values.volumeMounts }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- range $v := .Values.volumeClaimTemplates }}
- name: {{ $v.name }}
mountPath: {{ $v.mountPath }}
{{- end }}
{{- end }}