Skip to content

Commit b8a6b8b

Browse files
authored
Change variable to plural "macros" to match plugin name
1 parent b36ea86 commit b8a6b8b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

charts/mkdocs-material/templates/_helpers.tpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,16 +128,16 @@ Subpath prefix value to use for pvc mount points
128128
{{- end }}
129129
env:
130130
- name: MKDOCS_ADD_MACROS
131-
value: {{ default "false" .Values.macroPlugin.enabled | toString | quote }}
131+
value: {{ default "false" .Values.macrosPlugin.enabled | toString | quote }}
132132
- name: MKDOCS_MACROS_VERSION
133-
value: {{ default "1.3.9" .Values.macroPlugin.version | toString | quote }}
133+
value: {{ default "1.3.9" .Values.macrosPlugin.version | toString | quote }}
134134
{{- if .Values.gitPath }}
135135
- name: DOCS_GIT_PATH
136136
value: {{ .Values.gitPath | trimPrefix "/" }}
137137
{{- end }}
138138
volumeMounts:
139-
{{- if and .Values.macroPlugin.enabled .Values.macroPlugin.extraYamlConfig }}
140-
- mountPath: {{ default "/mkdocs-vars" .Values.macroPlugin.extraYamlConfigMount }}
139+
{{- if and .Values.macrosPlugin.enabled .Values.macrosPlugin.extraYamlConfig }}
140+
- mountPath: {{ default "/mkdocs-vars" .Values.macrosPlugin.extraYamlConfigMount }}
141141
name: {{ include "mkdocs-material.fullname" . }}-macro-vars
142142
{{- end }}
143143
{{- if .Values.giturl }}
@@ -208,7 +208,7 @@ Subpath prefix value to use for pvc mount points
208208
configMap:
209209
name: {{ include "mkdocs-material.fullname" . }}-cacerts
210210
{{- end }}
211-
{{- if and .Values.macroPlugin.enabled .Values.macroPlugin.extraYamlConfig }}
211+
{{- if and .Values.macrosPlugin.enabled .Values.macrosPlugin.extraYamlConfig }}
212212
- name: {{ include "mkdocs-material.fullname" . }}-macro-vars
213213
configMap:
214214
name: {{ include "mkdocs-material.fullname" . }}-macro-vars

charts/mkdocs-material/templates/configmap-macro-vars.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if and .Values.macroPlugin.enabled .Values.macroPlugin.extraYamlConfig }}
1+
{{- if and .Values.macrosPlugin.enabled .Values.macrosPlugin.extraYamlConfig }}
22
apiVersion: v1
33
kind: ConfigMap
44
metadata:
@@ -7,7 +7,7 @@ metadata:
77
{{- include "mkdocs-material.labels" . | nindent 4 }}
88

99
data:
10-
{{- range .Values.macroPlugin.extraYamlConfig }}
10+
{{- range .Values.macrosPlugin.extraYamlConfig }}
1111
{{- $configContent := toYaml .values }}
1212
{{ .path }}: |-
1313
{{- (tpl $configContent $) | nindent 4}}

charts/mkdocs-material/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ affinity: {}
9494
# Option to add the mkdocs-macros-plugin #
9595
# See https://mkdocs-macros-plugin.readthedocs.io/en/latest/ #
9696
##############################################################
97-
macroPlugin:
97+
macrosPlugin:
9898
enabled: false
9999
version: 1.3.9 # pip version of mkdocs-macros-plugin
100100
extraYamlConfigMount: /mkdocs-vars # The name of the volume mount path for extra yaml config files

0 commit comments

Comments
 (0)