4 Commits

Author SHA1 Message Date
4d6bd42402 Merge pull request 'added volumes to statefulset' (#11) from volumes_statefulset into main
All checks were successful
Lint and Test Charts / lint-test (push) Successful in 9s
Reviewed-on: #11
2024-11-12 09:20:52 +00:00
770ad32c08 added volumes to statefulset 2024-11-12 10:20:21 +01:00
b74e67f3ca Merge pull request 'changed token variable' (#10) from fix_pipeline into main
All checks were successful
Lint and Test Charts / lint-test (push) Successful in 7s
Reviewed-on: #10
2024-11-11 14:52:15 +00:00
Jonas Forsberg
9bd4849df7 changed token variable 2024-11-11 15:51:48 +01:00
3 changed files with 7 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ jobs:
- name: build helm package
shell: bash
env:
PACKAGE_TOKEN: ${{ secrets.REPO_HOST }}
PACKAGE_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
CHART_NAME: ${{ steps.chart_name.outputs.result }}
CHART_VERSION: ${{ steps.chart_version.outputs.result }}
run: |
@@ -40,4 +40,4 @@ jobs:
mkdir /tmp/build
cd /tmp/build
helm package $REPO_PATH
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
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

View File

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

View File

@@ -36,6 +36,10 @@ spec:
{{- toYaml .Values.controller.podSecurityContext | nindent 8 }}
containers:
{{- include "lib.parts.container" . | nindent 8 -}}
{{- with .Values.volumes }}
volumes:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}