Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,22 @@ is false and the operator must use an existing `ServiceAccount`.
This value can be set to `false` when deploying in constrained environments
where the user deploying the operator is not allowed to edit RBAC resources.

## `extraEnv`

| Type | Default |
|------|---------|
| `list` | `[]` |

`extraEnv` contains extra environment to be configured on the pod.

## `extraArgs`

| Type | Default |
|------|---------|
| `list` | `[]` |

`extraArgs` contains extra arguments to pass to the operator

## `imagePullPolicy`

| Type | Default |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
extraArgs:
- "--namespace"
- "teleport"
teleportAddress: "example.teleport.sh:443"
token: "my-operator-bot"
teleportClusterName: "example.teleport.sh"
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
extraEnv:
- name: SOME_ENVIRONMENT_VARIABLE
value: "some-value"
teleportAddress: "example.teleport.sh:443"
token: "my-operator-bot"
teleportClusterName: "example.teleport.sh"
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,14 @@ spec:
- -ca-pin
- '{{ join "," .Values.caPins }}'
{{- end }}
{{- if or (.Values.tls.existingCASecretName) (.Values.teleportClusterName) }}
{{- if .Values.extraArgs }}
{{- toYaml .Values.extraArgs | nindent 12 }}
{{- end }}
{{- if or (.Values.tls.existingCASecretName) (.Values.teleportClusterName) (.Values.extraEnv) }}
env:
{{- if .Values.extraEnv }}
{{- toYaml .Values.extraEnv | nindent 12 }}
{{- end }}
{{- if .Values.tls.existingCASecretName }}
- name: SSL_CERT_FILE
value: /etc/teleport-tls-ca/ca.pem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,3 +216,22 @@ tests:
content:
name: KUBERNETES_TOKEN_PATH
value: /var/run/secrets/teleport/serviceaccount/token

- it: should set environment when extraEnv set in values
values:
- ../.lint/extra-env.yaml
asserts:
- contains:
path: spec.template.spec.containers[0].env
content:
name: SOME_ENVIRONMENT_VARIABLE
value: "some-value"

- it: should set additional arguments when extraArgs set in values
values:
- ../.lint/extra-args.yaml
asserts:
- contains:
path: spec.template.spec.containers[0].command
content: "--namespace"

Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ rbac:
# where the user deploying the operator is not allowed to edit RBAC resources.
create: true

# extraEnv(list) -- contains extra environment to be configured on the pod.
extraEnv: []

# extraArgs(list) -- contains extra arguments to pass to the operator
extraArgs: []

# imagePullPolicy(string) -- sets the pull policy for any pods created by the chart.
# See [the Kubernetes documentation](https://kubernetes.io/docs/concepts/containers/images/#updating-images)
# for more details.
Expand Down
Loading