Skip to content

Commit

Permalink
Feat/pvc (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
mishraomp authored Oct 15, 2023
1 parent 4f3f3b3 commit 7789812
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 4 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/chart-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion charts/component/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions charts/component/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
20 changes: 20 additions & 0 deletions charts/component/templates/pvc.yaml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 7789812

Please sign in to comment.