refactor(helm): improve chart consistency (#1401)
This commit is contained in:
@@ -1,24 +1,12 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: grimmory
|
name: grimmory
|
||||||
description: A Helm chart for [Grimmory](https://github.com/grimmory-tools/grimmory)
|
description: A Helm chart for [Grimmory](https://github.com/grimmory-tools/grimmory)
|
||||||
# A chart can be either an 'application' or a 'library' chart.
|
|
||||||
#
|
|
||||||
# Application charts are a collection of templates that can be packaged into versioned archives
|
|
||||||
# to be deployed.
|
|
||||||
#
|
|
||||||
# Library charts provide useful utilities or functions for the chart developer. They're included as
|
|
||||||
# a dependency of application charts to inject those utilities and functions into the rendering
|
|
||||||
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
|
|
||||||
type: application
|
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.1.0
|
version: 0.1.0
|
||||||
# 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
|
# The app version is set to v0.0.0 in the Github repository and is bumped
|
||||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
# dynamically by the CI on release
|
||||||
# It is recommended to use it with quotes.
|
appVersion: "v0.0.0"
|
||||||
appVersion: "v0.38.2"
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: mariadb
|
- name: mariadb
|
||||||
version: 0.16.0
|
version: 0.16.0
|
||||||
|
|||||||
@@ -79,7 +79,6 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: {{ .Values.service.port }}
|
containerPort: {{ .Values.service.port }}
|
||||||
#protocol: TCP
|
|
||||||
env:
|
env:
|
||||||
- name: DATABASE_HOST
|
- name: DATABASE_HOST
|
||||||
{{- if and .Values.externalDatabase.enabled .Values.externalDatabase.existingSecret.enabled .Values.externalDatabase.existingSecret.hostnameKey }}
|
{{- if and .Values.externalDatabase.enabled .Values.externalDatabase.existingSecret.enabled .Values.externalDatabase.existingSecret.hostnameKey }}
|
||||||
@@ -165,20 +164,12 @@ spec:
|
|||||||
{{- if .Values.persistence.dataVolume.enabled }}
|
{{- if .Values.persistence.dataVolume.enabled }}
|
||||||
- name: data
|
- name: data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ if .Values.persistence.dataVolume.existingClaim }}
|
claimName: {{ .Values.persistence.dataVolume.existingClaim | default (printf "%s-data" (include "grimmory.fullname" .)) }}
|
||||||
{{- .Values.persistence.dataVolume.existingClaim }}
|
|
||||||
{{ else }}
|
|
||||||
{{- include "grimmory.fullname" . }}-data
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.persistence.booksVolume.enabled }}
|
{{- if .Values.persistence.booksVolume.enabled }}
|
||||||
- name: books
|
- name: books
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ if .Values.persistence.booksVolume.existingClaim }}
|
claimName: {{ .Values.persistence.booksVolume.existingClaim | default (printf "%s-books" (include "grimmory.fullname" .)) }}
|
||||||
{{- .Values.persistence.booksVolume.existingClaim }}
|
|
||||||
{{ else }}
|
|
||||||
{{- include "grimmory.fullname" . }}-books
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.extraVolumes }}
|
{{- with .Values.extraVolumes }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
{{- if (and .Values.persistence.dataVolume.enabled (not .Values.persistence.dataVolume.existingClaim)) }}
|
{{- if (and .Values.persistence.dataVolume.enabled (not .Values.persistence.dataVolume.existingClaim)) }}
|
||||||
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
helm.sh/resource-policy: keep
|
helm.sh/resource-policy: keep
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ include "grimmory.fullname" . }}
|
{{- include "grimmory.labels" . | nindent 4 }}
|
||||||
name: {{ include "grimmory.fullname" . }}-data
|
name: {{ include "grimmory.fullname" . }}-data
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
@@ -14,15 +15,15 @@ spec:
|
|||||||
requests:
|
requests:
|
||||||
storage: {{ .Values.persistence.dataVolume.size }}
|
storage: {{ .Values.persistence.dataVolume.size }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
---
|
|
||||||
{{- if (and .Values.persistence.booksVolume.enabled (not .Values.persistence.booksVolume.existingClaim)) }}
|
{{- if (and .Values.persistence.booksVolume.enabled (not .Values.persistence.booksVolume.existingClaim)) }}
|
||||||
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
helm.sh/resource-policy: keep
|
helm.sh/resource-policy: keep
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ include "grimmory.fullname" . }}
|
{{- include "grimmory.labels" . | nindent 4 }}
|
||||||
name: {{ include "grimmory.fullname" . }}-books
|
name: {{ include "grimmory.fullname" . }}-books
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
|
|||||||
Reference in New Issue
Block a user