Christian Nuss
03/28/2022, 5:37 PMZanie
Christian Nuss
03/28/2022, 5:51 PMnamePrefix
nameSuffix
too...
in my top-level chart, should i set nameOverride
or namePrefix
or nameSuffix
for each component?Zanie
{{- $name := print (.namePrefix | default "") ( .component ) (.nameSuffix | default "") -}}
{{ printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
A Release is an instance of a chart running in a Kubernetes cluster. One chart can often be installed many times into the same cluster. And each time it is installed, a new release is created. Consider a MySQL chart. If you want two databases running in your cluster, you can install that chart twice. Each one will have its own release, which will in turn have its own release name.
Christian Nuss
03/28/2022, 6:02 PMapiVersion: v2
name: my-app
type: application
version: 0.0.0
appVersion: "1.16.0"
...
dependencies:
- name: postgresql
version: "~9.3.2"
repository: <https://charts.bitnami.com/bitnami>
condition: postgresql.useSubChart
- name: prefect-server
version: "2022.01.25"
repository: <https://prefecthq.github.io/server/>
so currently its colliding on the service account name and postgres (and we already have a component called ui as well)
i think prefect's helm is trying to make my-app-postgresql
which is already taken by my-app
Zanie
Christian Nuss
03/28/2022, 6:28 PM.Chart.Name
or which is in this case, my-app
, and only allowing .Values.nameOverride
as an alternative?Zanie
Christian Nuss
03/28/2022, 6:31 PMprefect-server:
nameOverride: prefect-server
useSubChart: false
postgresql:
nameOverride: prefect-server-postgresql
serviceAccount:
name: prefect-server
but that nested nameOverride seems to have no effect?
(PSA I'm new to the way values.yaml are munged for subcharts)Zanie
Christian Nuss
03/28/2022, 7:00 PMZanie
Christian Nuss
03/28/2022, 7:06 PMZanie
Christian Nuss
03/28/2022, 7:10 PMnameField
as well, so in theory the generated DNS name would likely change, that might break anyone that's hardcoded the DNS name of apollo, for example.namePrefix
or .nameSuffix
to be provided in values would do the trick?Zanie
nameField
Christian Nuss
03/28/2022, 7:15 PMZanie
Christian Nuss
03/29/2022, 3:41 PMZanie
Christian Nuss
03/29/2022, 3:50 PM