Skip to content

Commit

Permalink
Merge pull request #190 from wireapp/master
Browse files Browse the repository at this point in the history
Add support for HostAliases
  • Loading branch information
hslatman authored Sep 11, 2024
2 parents 8293457 + 7f44758 commit a259a2e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions step-certificates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ chart and their default values.
| `existingSecrets.configAsSecret` | When `true`use existing secret for configuration instead of ConfigMap. | `false` |
| `podSecurityContext` | Set SecurityContext on POD level for STEP CA and STEP CA bootstrap job. | See [values.yaml](./values.yaml) |
| `shareProcessNamespace` | Share a single process namespace between all of the containers in a pod. | `false` |
| `hostAliases` | Additional entries for `/etc/hosts`. | [] |

Specify each parameter using the `--set key=value[,key=value]` argument to `helm
install`. For example,
Expand Down
4 changes: 4 additions & 0 deletions step-certificates/templates/ca.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ spec:
{{- with .Values.extraContainers }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.hostAliases }}
hostAliases:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.image.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.image.imagePullSecrets }}
Expand Down
13 changes: 10 additions & 3 deletions step-certificates/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ workingDir: "/home/step"

# Use existing secrets instead of 'bootstrap' init-container or 'inject'-element from helm chart
# Note, the MutatingWebhookConfiguration created by autocert is not patched with CA bundle as the bootstrap init-container is not run
existingSecrets:
existingSecrets:
enabled: false
ca: false
issuer: false
Expand Down Expand Up @@ -175,7 +175,7 @@ inject:
# This value must be base64 encoded.
ca_password: ""
provisioner_password: ""

certificate_issuer:
# enabled enables injection of certificate issuer certificates and keys when set to true.
enabled: false
Expand Down Expand Up @@ -292,7 +292,7 @@ ca:
# Whether to enable ssh support for step-ca
ssh:
enabled: false
# kms type to utilize
# kms type to utilize
kms:
type: ""
# additional environment variables to set in the step-certificates container
Expand Down Expand Up @@ -378,6 +378,13 @@ extraInitContainers: []
##
extraContainers: []

## Configure additional entries for /etc/hosts.
## hostAliases:
## - ip: 10.0.0.1
## hostnames:
## - host.domain.com
hostAliases: []

# shareProcessNamespace share a single process namespace between all of the
# containers in a pod.
shareProcessNamespace: false
Expand Down

0 comments on commit a259a2e

Please sign in to comment.