Parcourir la source

Merge pull request #6614 from Rory-Z/chore/fix-spelling-errors

chore(helm): fix spell errors
Rory Z il y a 4 ans
Parent
commit
ba7b93083e
2 fichiers modifiés avec 15 ajouts et 4 suppressions
  1. 13 2
      deploy/charts/emqx/templates/StatefulSet.yaml
  2. 2 2
      deploy/charts/emqx/values.yaml

+ 13 - 2
deploy/charts/emqx/templates/StatefulSet.yaml

@@ -82,7 +82,12 @@ spec:
           claimName: {{ tpl . $ }}
         {{- end }}
       {{- end }}
-      {{- if .Values.emqxLicneseSecretName  }}
+      {{- if .Values.emqxLicenseSecretName  }}
+      - name: emqx-license
+        secret:
+          secretName: {{ .Values.emqxLicenseSecretName }}
+      ## Compatible with previous misspellings
+      {{- else if .Values.emqxLicneseSecretName }}
       - name: emqx-license
         secret:
           secretName: {{ .Values.emqxLicneseSecretName }}
@@ -159,7 +164,13 @@ spec:
           - name: emqx-loaded-modules
             mountPath: "/opt/emqx/data/loaded_modules"
             subPath: "loaded_modules"
-          {{ if .Values.emqxLicneseSecretName  }}
+          {{ if .Values.emqxLicenseSecretName  }}
+          - name: emqx-license
+            mountPath: "/opt/emqx/etc/emqx.lic"
+            subPath: "emqx.lic"
+            readOnly: true
+          ## Compatible with previous misspellings
+          {{ else if .Values.emqxLicneseSecretName  }}
           - name: emqx-license
             mountPath: "/opt/emqx/etc/emqx.lic"
             subPath: "emqx.lic"

+ 2 - 2
deploy/charts/emqx/values.yaml

@@ -99,10 +99,10 @@ emqxLoadedModules: >
   {emqx_mod_subscription, false}.
   {emqx_mod_topic_metrics, false}.
 
-## EMQX Enterprise Edition requires manual creation of a Secret containing the licensed content. Write the name of Secret to the value of "emqxLicneseSecretName"
+## EMQX Enterprise Edition requires manual creation of a Secret containing the licensed content. Write the name of Secret to the value of "emqxLicenseSecretName"
 ## Example:
 ##   kubectl create secret generic emqx-license-secret-name --from-file=/path/to/emqx.lic
-emqxLicneseSecretName:
+emqxLicenseSecretName:
 
 service:
   ## Service type