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

Add support for HostAliases #190

Merged
merged 1 commit into from
Sep 11, 2024
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
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