Przeglądaj źródła

Merge pull request #14784 from shamser/issue25656

HPCC-25656 Add data label to storage planes that have no labels

Reviewed-By: Jake Smith <jake.smith@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 4 lat temu
rodzic
commit
4fe2bf8646
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      helm/hpcc/templates/_helpers.tpl

+ 6 - 0
helm/hpcc/templates/_helpers.tpl

@@ -81,12 +81,18 @@ storage:
 {{- range $plane := $planes -}}
  {{- if or (not $plane.labels) (or (has "data" $plane.labels) (has "lz" $plane.labels)) }}
   - name: {{ $plane.name | quote }}
+  {{- if not $plane.labels }}
+    labels:
+    - data
+  {{- end }}
 {{ toYaml (unset (unset (deepCopy $plane) "name") "pvc")| indent 4 }}
  {{- end }}
 {{- end }}
 {{- /* Add implicit planes if data or spill storage plane not specified*/ -}}
 {{- if not $dataStorage.plane }}
   - name: hpcc-data-plane
+    labels:
+    - data
     prefix: {{ .Values.global.defaultDataPath | default "/var/lib/HPCCSystems/hpcc-data" | quote }}
 {{- end }}
 {{- if not $spillStorage.plane }}