Browse Source

Add run As user in ix chart

M. Rehan 3 years ago
parent
commit
f8a249c2d4
36 changed files with 52 additions and 2 deletions
  1. 0 0
      charts/ix-chart/2208.0.0/.helmignore
  2. 0 0
      charts/ix-chart/2208.0.0/Chart.lock
  3. 1 1
      charts/ix-chart/2208.0.0/Chart.yaml
  4. 0 0
      charts/ix-chart/2208.0.0/README.md
  5. 0 0
      charts/ix-chart/2208.0.0/app-readme.md
  6. 0 0
      charts/ix-chart/2208.0.0/charts/common-2207.0.0.tgz
  7. 21 0
      charts/ix-chart/2208.0.0/questions.yaml
  8. 0 0
      charts/ix-chart/2208.0.0/templates/NOTES.txt
  9. 0 0
      charts/ix-chart/2208.0.0/templates/_containers.tpl
  10. 0 0
      charts/ix-chart/2208.0.0/templates/_helpers.tpl
  11. 0 0
      charts/ix-chart/2208.0.0/templates/_networking.tpl
  12. 0 0
      charts/ix-chart/2208.0.0/templates/_volumes.tpl
  13. 4 0
      charts/ix-chart/2208.0.0/templates/_workload.tpl
  14. 0 0
      charts/ix-chart/2208.0.0/templates/external-interfaces.yaml
  15. 0 0
      charts/ix-chart/2208.0.0/templates/service.yaml
  16. 0 0
      charts/ix-chart/2208.0.0/templates/tests/deployment-check.yaml
  17. 0 0
      charts/ix-chart/2208.0.0/templates/workload.yaml
  18. 0 0
      charts/ix-chart/2208.0.0/test_values.yaml
  19. 0 0
      test/ix-chart/2208.0.0/.helmignore
  20. 0 0
      test/ix-chart/2208.0.0/Chart.lock
  21. 1 1
      test/ix-chart/2208.0.0/Chart.yaml
  22. 0 0
      test/ix-chart/2208.0.0/README.md
  23. 0 0
      test/ix-chart/2208.0.0/app-readme.md
  24. 0 0
      test/ix-chart/2208.0.0/charts/common-2207.0.0.tgz
  25. 21 0
      test/ix-chart/2208.0.0/questions.yaml
  26. 0 0
      test/ix-chart/2208.0.0/templates/NOTES.txt
  27. 0 0
      test/ix-chart/2208.0.0/templates/_containers.tpl
  28. 0 0
      test/ix-chart/2208.0.0/templates/_helpers.tpl
  29. 0 0
      test/ix-chart/2208.0.0/templates/_networking.tpl
  30. 0 0
      test/ix-chart/2208.0.0/templates/_volumes.tpl
  31. 4 0
      test/ix-chart/2208.0.0/templates/_workload.tpl
  32. 0 0
      test/ix-chart/2208.0.0/templates/external-interfaces.yaml
  33. 0 0
      test/ix-chart/2208.0.0/templates/service.yaml
  34. 0 0
      test/ix-chart/2208.0.0/templates/tests/deployment-check.yaml
  35. 0 0
      test/ix-chart/2208.0.0/templates/workload.yaml
  36. 0 0
      test/ix-chart/2208.0.0/test_values.yaml

+ 0 - 0
charts/ix-chart/2207.2.0/.helmignore → charts/ix-chart/2208.0.0/.helmignore


+ 0 - 0
charts/ix-chart/2207.2.0/Chart.lock → charts/ix-chart/2208.0.0/Chart.lock


+ 1 - 1
charts/ix-chart/2207.2.0/Chart.yaml → charts/ix-chart/2208.0.0/Chart.yaml

@@ -15,7 +15,7 @@ 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: 2207.2.0
+version: 2208.0.0
 
 # 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

+ 0 - 0
charts/ix-chart/2207.2.0/README.md → charts/ix-chart/2208.0.0/README.md


+ 0 - 0
charts/ix-chart/2207.2.0/app-readme.md → charts/ix-chart/2208.0.0/app-readme.md


+ 0 - 0
charts/ix-chart/2207.2.0/charts/common-2207.0.0.tgz → charts/ix-chart/2208.0.0/charts/common-2207.0.0.tgz


+ 21 - 0
test/ix-chart/2207.2.0/questions.yaml → charts/ix-chart/2208.0.0/questions.yaml

@@ -600,6 +600,27 @@ questions:
                 label: "Add Capability"
                 schema:
                   type: string
+        - variable: enableRunAsUser
+          label: "Configure Container User and Group ID"
+          description: "Configure security context runAsUser and runAsGroup variables"
+          schema:
+            type: boolean
+            default: false
+            show_subquestions_if: true
+            subquestions:
+              - variable: runAsUser
+                label: "Run Container As User"
+                description: "Configure user id for container."
+                schema:
+                  type: int
+                  default: 568
+              - variable: runAsGroup
+                label: "Run Container As Group"
+                description: "Configure group id for container."
+                schema:
+                  type: int
+                  default: 568
+
 
   - variable: enableResourceLimits
     label: "Enable Pod resource limits"

+ 0 - 0
charts/ix-chart/2207.2.0/templates/NOTES.txt → charts/ix-chart/2208.0.0/templates/NOTES.txt


+ 0 - 0
charts/ix-chart/2207.2.0/templates/_containers.tpl → charts/ix-chart/2208.0.0/templates/_containers.tpl


+ 0 - 0
charts/ix-chart/2207.2.0/templates/_helpers.tpl → charts/ix-chart/2208.0.0/templates/_helpers.tpl


+ 0 - 0
charts/ix-chart/2207.2.0/templates/_networking.tpl → charts/ix-chart/2208.0.0/templates/_networking.tpl


+ 0 - 0
charts/ix-chart/2207.2.0/templates/_volumes.tpl → charts/ix-chart/2208.0.0/templates/_volumes.tpl


+ 4 - 0
test/ix-chart/2207.2.0/templates/_workload.tpl → charts/ix-chart/2208.0.0/templates/_workload.tpl

@@ -60,6 +60,10 @@ containers:
   stdin: {{ .Values.stdin }}
   securityContext:
     privileged: {{ .Values.securityContext.privileged }}
+    {{ if .Values.securityContext.enableRunAsUser }}
+    runAsUser: {{ .Values.securityContext.runAsUser }}
+    runAsGroup: {{ .Values.securityContext.runAsGroup }}
+    {{ end }}
     {{ if .Values.securityContext.capabilities }}
     capabilities:
       add: {{ toYaml .Values.securityContext.capabilities | nindent 8 }}

+ 0 - 0
charts/ix-chart/2207.2.0/templates/external-interfaces.yaml → charts/ix-chart/2208.0.0/templates/external-interfaces.yaml


+ 0 - 0
charts/ix-chart/2207.2.0/templates/service.yaml → charts/ix-chart/2208.0.0/templates/service.yaml


+ 0 - 0
charts/ix-chart/2207.2.0/templates/tests/deployment-check.yaml → charts/ix-chart/2208.0.0/templates/tests/deployment-check.yaml


+ 0 - 0
charts/ix-chart/2207.2.0/templates/workload.yaml → charts/ix-chart/2208.0.0/templates/workload.yaml


+ 0 - 0
charts/ix-chart/2207.2.0/test_values.yaml → charts/ix-chart/2208.0.0/test_values.yaml


+ 0 - 0
test/ix-chart/2207.2.0/.helmignore → test/ix-chart/2208.0.0/.helmignore


+ 0 - 0
test/ix-chart/2207.2.0/Chart.lock → test/ix-chart/2208.0.0/Chart.lock


+ 1 - 1
test/ix-chart/2207.2.0/Chart.yaml → test/ix-chart/2208.0.0/Chart.yaml

@@ -15,7 +15,7 @@ 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: 2207.2.0
+version: 2208.0.0
 
 # 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

+ 0 - 0
test/ix-chart/2207.2.0/README.md → test/ix-chart/2208.0.0/README.md


+ 0 - 0
test/ix-chart/2207.2.0/app-readme.md → test/ix-chart/2208.0.0/app-readme.md


+ 0 - 0
test/ix-chart/2207.2.0/charts/common-2207.0.0.tgz → test/ix-chart/2208.0.0/charts/common-2207.0.0.tgz


+ 21 - 0
charts/ix-chart/2207.2.0/questions.yaml → test/ix-chart/2208.0.0/questions.yaml

@@ -600,6 +600,27 @@ questions:
                 label: "Add Capability"
                 schema:
                   type: string
+        - variable: enableRunAsUser
+          label: "Configure Container User and Group ID"
+          description: "Configure security context runAsUser and runAsGroup variables"
+          schema:
+            type: boolean
+            default: false
+            show_subquestions_if: true
+            subquestions:
+              - variable: runAsUser
+                label: "Run Container As User"
+                description: "Configure user id for container."
+                schema:
+                  type: int
+                  default: 568
+              - variable: runAsGroup
+                label: "Run Container As Group"
+                description: "Configure group id for container."
+                schema:
+                  type: int
+                  default: 568
+
 
   - variable: enableResourceLimits
     label: "Enable Pod resource limits"

+ 0 - 0
test/ix-chart/2207.2.0/templates/NOTES.txt → test/ix-chart/2208.0.0/templates/NOTES.txt


+ 0 - 0
test/ix-chart/2207.2.0/templates/_containers.tpl → test/ix-chart/2208.0.0/templates/_containers.tpl


+ 0 - 0
test/ix-chart/2207.2.0/templates/_helpers.tpl → test/ix-chart/2208.0.0/templates/_helpers.tpl


+ 0 - 0
test/ix-chart/2207.2.0/templates/_networking.tpl → test/ix-chart/2208.0.0/templates/_networking.tpl


+ 0 - 0
test/ix-chart/2207.2.0/templates/_volumes.tpl → test/ix-chart/2208.0.0/templates/_volumes.tpl


+ 4 - 0
charts/ix-chart/2207.2.0/templates/_workload.tpl → test/ix-chart/2208.0.0/templates/_workload.tpl

@@ -60,6 +60,10 @@ containers:
   stdin: {{ .Values.stdin }}
   securityContext:
     privileged: {{ .Values.securityContext.privileged }}
+    {{ if .Values.securityContext.enableRunAsUser }}
+    runAsUser: {{ .Values.securityContext.runAsUser }}
+    runAsGroup: {{ .Values.securityContext.runAsGroup }}
+    {{ end }}
     {{ if .Values.securityContext.capabilities }}
     capabilities:
       add: {{ toYaml .Values.securityContext.capabilities | nindent 8 }}

+ 0 - 0
test/ix-chart/2207.2.0/templates/external-interfaces.yaml → test/ix-chart/2208.0.0/templates/external-interfaces.yaml


+ 0 - 0
test/ix-chart/2207.2.0/templates/service.yaml → test/ix-chart/2208.0.0/templates/service.yaml


+ 0 - 0
test/ix-chart/2207.2.0/templates/tests/deployment-check.yaml → test/ix-chart/2208.0.0/templates/tests/deployment-check.yaml


+ 0 - 0
test/ix-chart/2207.2.0/templates/workload.yaml → test/ix-chart/2208.0.0/templates/workload.yaml


+ 0 - 0
test/ix-chart/2207.2.0/test_values.yaml → test/ix-chart/2208.0.0/test_values.yaml