From ec3b2e3286a63f664a3f13ddf834f32d3b35e3e5 Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Sat, 13 May 2023 17:38:19 +0200 Subject: [PATCH] Fix variable name --- charts/json-server/Chart.yaml | 15 +++------------ charts/json-server/templates/configmap.yaml | 4 ++-- charts/json-server/values.yaml | 2 +- 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/charts/json-server/Chart.yaml b/charts/json-server/Chart.yaml index 42eb0a3..871a992 100644 --- a/charts/json-server/Chart.yaml +++ b/charts/json-server/Chart.yaml @@ -1,24 +1,15 @@ apiVersion: v2 name: json-server -description: A Helm chart for Kubernetes - -# 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. +description: Serve data from json-source as REST API 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: v0.3.0 +version: v0.3.1 # 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 # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "v0.3.0" +appVersion: "v0.3.1" diff --git a/charts/json-server/templates/configmap.yaml b/charts/json-server/templates/configmap.yaml index 8635b38..ea3a9bd 100644 --- a/charts/json-server/templates/configmap.yaml +++ b/charts/json-server/templates/configmap.yaml @@ -1,9 +1,9 @@ -{{- if not .Values.json-server.data.existingConfigMap }} +{{- if not .Values.jsonserver.data.existingConfigMap }} apiVersion: v1 kind: ConfigMap metadata: name: {{ .Release.Name }}-configmap data: db.json: | -{{ include "common.tplvalues.render" ( dict "value" .Values.json-server.data.configInline "context" $) | indent 4 }} +{{ include "common.tplvalues.render" ( dict "value" .Values.jsonserver.data.configInline "context" $) | indent 4 }} {{- end -}} diff --git a/charts/json-server/values.yaml b/charts/json-server/values.yaml index 5de3e1f..e20ccd2 100644 --- a/charts/json-server/values.yaml +++ b/charts/json-server/values.yaml @@ -1,6 +1,6 @@ # Default values for json-server. -json-server: +jsonserver: data: # Not implemented yet # existingConfigMap: ""