Fix field validation error

The metacontroller chart currently has the field
terminationGracePeriodSeconds in an invalid spot in the template
which causes a chart building error when using helm v3. This
change moves the field to the correct position in the template.

Change-Id: Ief454115f67af35f8dfb570d8315de82d97b536d
This commit is contained in:
Gage Hugo 2022-02-21 09:58:14 -06:00
parent 728c340dc0
commit f01f35a524
3 changed files with 3 additions and 2 deletions

View File

@ -15,7 +15,7 @@ apiVersion: v1
appVersion: v0.4.2 appVersion: v0.4.2
description: A Helm chart for Metacontroller description: A Helm chart for Metacontroller
name: metacontroller name: metacontroller
version: 0.1.4 version: 0.1.5
home: https://metacontroller.app/ home: https://metacontroller.app/
keywords: keywords:
- CRDs - CRDs

View File

@ -65,7 +65,6 @@ spec:
serviceName: {{ tuple "metacontroller" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} serviceName: {{ tuple "metacontroller" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
podManagementPolicy: "Parallel" podManagementPolicy: "Parallel"
replicas: {{ .Values.pod.replicas.metacontroller }} replicas: {{ .Values.pod.replicas.metacontroller }}
terminationGracePeriodSeconds: {{ .Values.pod.lifecycle.termination_grace_period.server.timeout | default "30" }}
template: template:
metadata: metadata:
labels: labels:
@ -75,6 +74,7 @@ spec:
spec: spec:
{{ dict "envAll" . "application" "metacontroller" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }} {{ dict "envAll" . "application" "metacontroller" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
serviceAccountName: {{ $serviceAccountName }} serviceAccountName: {{ $serviceAccountName }}
terminationGracePeriodSeconds: {{ .Values.pod.lifecycle.termination_grace_period.server.timeout | default "30" }}
nodeSelector: nodeSelector:
{{ .Values.labels.server.node_selector_key }}: {{ .Values.labels.server.node_selector_value | quote }} {{ .Values.labels.server.node_selector_key }}: {{ .Values.labels.server.node_selector_value | quote }}
containers: containers:

View File

@ -5,4 +5,5 @@ metacontroller:
- 0.1.2 Fix disappearing metacontroller CRDs on upgrade - 0.1.2 Fix disappearing metacontroller CRDs on upgrade
- 0.1.3 Use full image ref for docker official images - 0.1.3 Use full image ref for docker official images
- 0.1.4 Update htk requirements - 0.1.4 Update htk requirements
- 0.1.5 Fix field validation error
... ...