diff --git a/charts/remark42/Chart.yaml b/charts/remark42/Chart.yaml index 1dca2e1b454a9689f6e414ce0757d09de56ed855..2e0d90640a19558e3a8914b6270421f68fa96803 100644 --- a/charts/remark42/Chart.yaml +++ b/charts/remark42/Chart.yaml @@ -7,7 +7,7 @@ type: application maintainers: - name: groundhog2k -version: "0.5.9" +version: "0.5.10" appVersion: "v1.11.3" diff --git a/charts/remark42/README.md b/charts/remark42/README.md index bbafc75c3bec83b5e4600fd78b0876439d50eb36..7365cca31c36bec1744ef733a375c9536ff4b316 100644 --- a/charts/remark42/README.md +++ b/charts/remark42/README.md @@ -1,6 +1,6 @@ # Remark42 -   +   A Helm chart for Remark42 on Kubernetes @@ -245,3 +245,9 @@ helm uninstall my-release | storage.requestedSize | string | `nil` | Size for new PVC, when no existing PVC is used | | storage.className | string | `nil` | Storage class name | | storage.keepPvc | bool | `false` | Keep a created Persistent volume claim when uninstalling the helm chart | + +## Extra resources + +| Key | Type | Default | Description | +|-----|------|---------|-------------| +| extraResources | list | `nil` | List of extra resource deployments | diff --git a/charts/remark42/RELEASENOTES.md b/charts/remark42/RELEASENOTES.md index 7a41dfd4f40724d2a11a78bf11cbe37266dc5f91..6165ce976bbcb25a9ffdac6a29de2ea1601227d3 100644 --- a/charts/remark42/RELEASENOTES.md +++ b/charts/remark42/RELEASENOTES.md @@ -24,4 +24,5 @@ | 0.5.7 | v1.11.3 | Updated chart dependencies (redis 0.6.10) | | 0.5.8 | v1.11.3 | Updated chart dependencies (redis 0.6.11) | | 0.5.9 | v1.11.3 | Added support for init container command and arguments (thx @IxDay) | +| 0.5.10 | v1.11.3 | Added support for extraResources (thx @IxDay) | | | | | diff --git a/charts/remark42/templates/_helpers.tpl b/charts/remark42/templates/_helpers.tpl index 14dd6ef51bf36376b45940f762ed9bc15d9f4fa0..3f16ca7a5f9041b03bc8eda4f36bce2a580f4845 100644 --- a/charts/remark42/templates/_helpers.tpl +++ b/charts/remark42/templates/_helpers.tpl @@ -260,4 +260,17 @@ Commento settings via environment variables value: "{{ .Values.externalCache.host }}:{{ .Values.externalCache.port }}" {{- end }} {{- end }} -{{- end }} \ No newline at end of file +{{- end }} + +{{/* +Renders a value that contains template. +Usage: +{{ include "remark42.render" ( dict "value" .Values.path.to.the.Value "context" $) }} +*/}} +{{- define "remark42.render" -}} + {{- if typeIs "string" .value }} + {{- tpl .value .context }} + {{- else }} + {{- tpl (.value | toYaml) .context }} + {{- end }} +{{- end -}} diff --git a/charts/remark42/templates/extraressources.yaml b/charts/remark42/templates/extraressources.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4bd6f75a1fe5d45ee244dba38cbe7d3e6bf98db5 --- /dev/null +++ b/charts/remark42/templates/extraressources.yaml @@ -0,0 +1,4 @@ +{{- range .Values.extraResources }} +--- +{{- include "remark42.render" (dict "value" . "context" $) }} +{{- end }} diff --git a/charts/remark42/values.yaml b/charts/remark42/values.yaml index b1ab58dee648ba3703bfe834274870bced522654..1f6f753b09c677dba9585e934b774969d4114350 100644 --- a/charts/remark42/values.yaml +++ b/charts/remark42/values.yaml @@ -406,3 +406,21 @@ redis: ## the storage class name className: + +extraResources: [] + # - | + # apiVersion: projectcontour.io/v1 + # kind: HTTPProxy + # metadata: + # name: {{ include "remark42.fullname" . }} + # namespace: {{ .Values.namespace | default .Release.Namespace }} + # labels: + # {{- include "remark42.labels" . | nindent 4 }} + # spec: + # ingressClassName: contour + # virtualhost: + # fqdn: {{.Values.settings.url | trimPrefix "http://"}} + # routes: + # - services: + # - name: {{ include "remark42.fullname" . }} + # port: {{ .Values.service.port }}