chart: render the release namespace on every resource
Set metadata.namespace from .Release.Namespace on the ConfigMap, Service, PVC, Deployment and Ingress. This keeps the chart correct when a consumer does not run Kustomize's namespace transformer, and makes the rendered manifests explicit about where they belong. Bump the chart to 0.1.3.
This commit is contained in:
1 parent
0ac226b011
commit
b86d9feb8b
7 files changed
+9
-4
No files matched your search
@@ -720,7 +720,7 @@ registry remains private.
|
|||||||
|
|
||||||
Versions published by CI:
|
Versions published by CI:
|
||||||
|
|
||||||
- `main`: `<chart version>-sha.<commit>`, for example `0.1.2-sha.<commit>`
|
- `main`: `<chart version>-sha.<commit>`, for example `0.1.3-sha.<commit>`
|
||||||
- `v*` tag: the tag without the leading `v`, for example `v0.2.0` -> `0.2.0`
|
- `v*` tag: the tag without the leading `v`, for example `v0.2.0` -> `0.2.0`
|
||||||
|
|
||||||
Use it with Helm:
|
Use it with Helm:
|
||||||
@@ -735,7 +735,7 @@ helm search repo taptap/audiomanager
|
|||||||
Install a published chart:
|
Install a published chart:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
VERSION="0.1.2-sha.<commit>"
|
VERSION="0.1.3-sha.<commit>"
|
||||||
helm upgrade --install audiomanager taptap/audiomanager \
|
helm upgrade --install audiomanager taptap/audiomanager \
|
||||||
--version "$VERSION" \
|
--version "$VERSION" \
|
||||||
--namespace audiomanager \
|
--namespace audiomanager \
|
||||||
@@ -751,7 +751,7 @@ helmCharts:
|
|||||||
releaseName: audiomanager
|
releaseName: audiomanager
|
||||||
namespace: audiomanager
|
namespace: audiomanager
|
||||||
repo: https://gitea.tap-tap.win/TapTap/Charts/raw/branch/main
|
repo: https://gitea.tap-tap.win/TapTap/Charts/raw/branch/main
|
||||||
version: 0.1.2-sha.<commit>
|
version: 0.1.3-sha.<commit>
|
||||||
valuesFile: values.yaml
|
valuesFile: values.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -2,5 +2,5 @@ apiVersion: v2
|
|||||||
name: audiomanager
|
name: audiomanager
|
||||||
description: Self-hosted OpenSubsonic music server
|
description: Self-hosted OpenSubsonic music server
|
||||||
type: application
|
type: application
|
||||||
version: 0.1.2
|
version: 0.1.3
|
||||||
appVersion: "0.1.0"
|
appVersion: "0.1.0"
|
||||||
@@ -2,6 +2,7 @@ apiVersion: v1
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "audiomanager.fullname" . }}-library
|
name: {{ include "audiomanager.fullname" . }}-library
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "audiomanager.labels" . | nindent 4 }}
|
{{- include "audiomanager.labels" . | nindent 4 }}
|
||||||
data:
|
data:
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "audiomanager.fullname" . }}
|
name: {{ include "audiomanager.fullname" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "audiomanager.labels" . | nindent 4 }}
|
{{- include "audiomanager.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ apiVersion: networking.k8s.io/v1
|
|||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "audiomanager.fullname" . }}
|
name: {{ include "audiomanager.fullname" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "audiomanager.labels" . | nindent 4 }}
|
{{- include "audiomanager.labels" . | nindent 4 }}
|
||||||
{{- with .Values.ingress.annotations }}
|
{{- with .Values.ingress.annotations }}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ apiVersion: v1
|
|||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "audiomanager.fullname" . }}-data
|
name: {{ include "audiomanager.fullname" . }}-data
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "audiomanager.labels" . | nindent 4 }}
|
{{- include "audiomanager.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ apiVersion: v1
|
|||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "audiomanager.fullname" . }}
|
name: {{ include "audiomanager.fullname" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "audiomanager.labels" . | nindent 4 }}
|
{{- include "audiomanager.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
|
|||||||
Reference in new issue
Block a user