diff --git a/.github/workflows/chart-release.yaml b/.github/workflows/chart-release.yaml index e43a339..ef15a86 100644 --- a/.github/workflows/chart-release.yaml +++ b/.github/workflows/chart-release.yaml @@ -27,3 +27,25 @@ jobs: env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + - name: Conventional Changelog Update + uses: TriPSs/conventional-changelog-action@v3 + id: changelog + continue-on-error: true + with: + github-token: ${{ github.token }} + output-file: 'CHANGELOG.md' + skip-version-file: 'true' + skip-commit: 'true' + skip-on-empty: 'false' + git-push: 'true' + - name: Create Release + uses: softprops/action-gh-release@v1 + if: ${{ needs.semantic-version.outputs.semanticVersion != '' }} + continue-on-error: true + env: + GITHUB_TOKEN: ${{ github.token }} + with: + token: ${{ github.token }} + tag_name: ${{ steps.changelog.outputs.tag }} + name: ${{ steps.changelog.outputs.tag }} + body: ${{ steps.changelog.outputs.clean_changelog }} diff --git a/charts/component/Chart.yaml b/charts/component/Chart.yaml index 6de8476..c77d20a 100644 --- a/charts/component/Chart.yaml +++ b/charts/component/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.0.3 +version: 0.0.4 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/component/templates/deployment.yaml b/charts/component/templates/deployment.yaml index 7b56323..c72cd60 100644 --- a/charts/component/templates/deployment.yaml +++ b/charts/component/templates/deployment.yaml @@ -282,10 +282,8 @@ spec: {{- end }} {{- end }} {{- if .Values.volumes }} - {{- with .Values.volumes }} volumes: - {{- toYaml . | nindent 8 }} - {{- end }} + {{- tpl (toYaml .Values.volumes) . | nindent 8 }} {{- end }} {{- with .Values.nodeSelector }} nodeSelector: diff --git a/charts/component/templates/pvc.yaml b/charts/component/templates/pvc.yaml new file mode 100644 index 0000000..f43c326 --- /dev/null +++ b/charts/component/templates/pvc.yaml @@ -0,0 +1,20 @@ +{{- if and .Values.pvc .Values.pvc.enabled }} +--- +kind: PersistentVolumeClaim +apiVersion: v1 +metadata: + {{- if .Values.pvc.nameOverride }} + name: {{ tpl .Values.pvc.nameOverride $}} + {{- else }} + name: {{ include "component.fullname" . }} + {{- end }} + labels: + {{- include "component.labels" . | nindent 4 }} +spec: + accessModes: + - {{ .Values.pvc.accessModes }} + resources: + requests: + storage: {{ .Values.pvc.size }} + storageClassName: {{ .Values.pvc.storageClassName }} +{{- end }}