Skip to content

Commit

Permalink
feat(common): add templating for hostaliases (#66)
Browse files Browse the repository at this point in the history
Add templating for hostAliases to match downstream charts
  • Loading branch information
scjohns authored Jul 15, 2024
1 parent 1dc868b commit efc773c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion charts/platform/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# platform

![Version: 0.4.1](https://img.shields.io/badge/Version-0.4.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: nightly](https://img.shields.io/badge/AppVersion-nightly-informational?style=flat-square)
![Version: 0.5.0](https://img.shields.io/badge/Version-0.5.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: nightly](https://img.shields.io/badge/AppVersion-nightly-informational?style=flat-square)

A Helm Chart for OpenTDF Platform

Expand Down Expand Up @@ -252,6 +252,7 @@ realms:
| envFrom | list | `[]` | Environment variables from a configmap or secret |
| extraEnv | list | `[]` | Extra environment variables to add to the container |
| fullnameOverride | string | `""` | Overrides the generated fullname |
| hostAliases | list | `[]` | Host Alias entries to add to pods |
| image.pullPolicy | string | `"IfNotPresent"` | The image tag to pull policy |
| image.repository | string | `"registry.opentdf.io/platform"` | The image repository to pull from |
| image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion. |
Expand Down
4 changes: 4 additions & 0 deletions charts/platform/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ spec:
serviceAccountName: {{ include "chart.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- if .Values.hostAliases }}
hostAliases:
{{- toYaml .Values.hostAliases | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
args:
Expand Down
9 changes: 9 additions & 0 deletions charts/platform/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ podAnnotations: {}
# -- Extra labels to add to the pod
podLabels: {}

# -- Host Alias entries to add to pods
hostAliases: []
# - ip: 10.0.0.1
# hostnames:
# - sharepoint.foo.lab
# - ip: 127.0.0.1
# hostnames:
# - service.local.lab

# -- The pod security context
podSecurityContext:
{}
Expand Down

0 comments on commit efc773c

Please sign in to comment.