Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for custom envFrom #673

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
16 changes: 14 additions & 2 deletions charts/pega/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -573,9 +573,9 @@ The `deploymentStrategy` can be used to optionally configure the [strategy](http

### Environment variables

Pega supports a variety of configuration options for cluster-wide and application settings. In cases when you want to pass a specific environment variable into your deployment on a tier-by-tier basis, you specify a custom `env` block for your tier as shown in the example below.
Pega supports a variety of configuration options for cluster-wide and application settings. In cases when you want to pass a specific environment variable into your deployment on a tier-by-tier basis, you specify a custom `env` or 'envFrom' block for your tier as shown in the example below.

Example:
Example 'env' block:

```yaml
tier:
Expand All @@ -586,6 +586,18 @@ tier:
value: MY_ENV_VALUE
```

Example 'envFrom' block:

```yaml
tier:
- name: my-tier
custom:
envFrom:
- secretRef:
name: MY_SECRET_REF
```


### Service Account

If the pod needs to be run with a specific [service account](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/), you can specify a custom `serviceAccountName` for your deployment tier.
Expand Down
6 changes: 6 additions & 0 deletions charts/pega/templates/_pega-deployment.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,12 @@ spec:
envFrom:
- configMapRef:
name: {{ template "pegaEnvironmentConfig" .root }}
{{- if .custom }}
{{- if .custom.envFrom }}
# Additional custom envFrom vars
{{ toYaml .custom.envFrom | indent 8 }}
{{- end }}
{{- end }}
resources:
# Maximum CPU and Memory that the containers for {{ .name }} can use
limits:
Expand Down
Loading