Skip to content

Commit

Permalink
Fixing manager.env schema and added manager.envFrom
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-perge committed Oct 7, 2024
1 parent 3e11f60 commit 7203bd9
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 8 deletions.
8 changes: 7 additions & 1 deletion charts/k6-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ spec:
{{- if .Values.manager.env }}
env:
{{- with .Values.manager.env }}
{{- toYaml . | nindent 10 }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}
{{- if .Values.manager.envFrom }}
envFrom:
{{- with .Values.manager.envFrom }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}
{{- if .Values.manager.containerSecurityContext }}
Expand Down
14 changes: 10 additions & 4 deletions charts/k6-operator/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,16 @@
"type": "object"
},
"env": {
"additionalProperties": false,
"description": "manager.env -- Environment variables to be applied on the controller",
"items": {},
"description": "manager.env -- List of environment variables to set in the controller",
"title": "env",
"type": "object"
"type": "array"
},
"envFrom": {
"items": {},
"description": "manager.envFrom -- List of sources to populate environment variables in the controller",
"title": "envFrom",
"type": "array"
},
"image": {
"additionalProperties": false,
Expand All @@ -169,7 +175,7 @@
"type": "string"
},
"tag": {
"default": "controller-v0.0.15",
"default": "controller-v0.0.17",
"description": "manager.image.tag -- controller-manager image tag",
"title": "tag",
"type": "string"
Expand Down
14 changes: 11 additions & 3 deletions charts/k6-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,18 @@ manager:

# @schema
# required: false
# type: object
# type: array
# @schema
# manager.env -- List of environment variables to set in the controller
env: []

# @schema
# manager.env -- Environment variables to be applied on the controller
env: {}
# required: false
# type: array
# @schema
# manager.envFrom -- List of sources to populate environment variables in the controller
envFrom: []

# manager.resources -- controller-manager Resources definition
resources:
limits:
Expand Down

0 comments on commit 7203bd9

Please sign in to comment.