chart: rename the Helm chart to audiomanager
Use the product and image name for the chart, release, namespace, secrets, container and rendered file paths. The application package and local config paths keep their existing names. Bump the chart to 0.1.2 so the new chart name and paths are a distinct release. CI now publishes oci://gitea.tap-tap.win/taptap/charts/audiomanager.
This commit is contained in:
1 parent
76bccaefea
commit
9711aca67a
12 files changed
+64
-64
No files matched your search
@@ -1,6 +1,6 @@
|
||||
apiVersion: v2
|
||||
name: musicmanager
|
||||
name: audiomanager
|
||||
description: Self-hosted OpenSubsonic music server
|
||||
type: application
|
||||
version: 0.1.1
|
||||
version: 0.1.2
|
||||
appVersion: "0.1.0"
|
||||
+7
-7
@@ -1,8 +1,8 @@
|
||||
{{- define "musicmanager.name" -}}
|
||||
{{- define "audiomanager.name" -}}
|
||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "musicmanager.fullname" -}}
|
||||
{{- define "audiomanager.fullname" -}}
|
||||
{{- if .Values.fullnameOverride -}}
|
||||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
|
||||
{{- else -}}
|
||||
@@ -15,19 +15,19 @@
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "musicmanager.labels" -}}
|
||||
{{- define "audiomanager.labels" -}}
|
||||
helm.sh/chart: {{ printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" }}
|
||||
app.kubernetes.io/name: {{ include "musicmanager.name" . }}
|
||||
app.kubernetes.io/name: {{ include "audiomanager.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "musicmanager.selectorLabels" -}}
|
||||
app.kubernetes.io/name: {{ include "musicmanager.name" . }}
|
||||
{{- define "audiomanager.selectorLabels" -}}
|
||||
app.kubernetes.io/name: {{ include "audiomanager.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "musicmanager.image" -}}
|
||||
{{- define "audiomanager.image" -}}
|
||||
{{- printf "%s:%s" .Values.image.repository (default .Chart.AppVersion .Values.image.tag) -}}
|
||||
{{- end -}}
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ include "musicmanager.fullname" . }}-library
|
||||
name: {{ include "audiomanager.fullname" . }}-library
|
||||
labels:
|
||||
{{- include "musicmanager.labels" . | nindent 4 }}
|
||||
{{- include "audiomanager.labels" . | nindent 4 }}
|
||||
data:
|
||||
library.yaml: |
|
||||
library:
|
||||
+12
-12
@@ -1,20 +1,20 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "musicmanager.fullname" . }}
|
||||
name: {{ include "audiomanager.fullname" . }}
|
||||
labels:
|
||||
{{- include "musicmanager.labels" . | nindent 4 }}
|
||||
{{- include "audiomanager.labels" . | nindent 4 }}
|
||||
spec:
|
||||
replicas: {{ .Values.replicaCount }}
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "musicmanager.selectorLabels" . | nindent 6 }}
|
||||
{{- include "audiomanager.selectorLabels" . | nindent 6 }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{- include "musicmanager.selectorLabels" . | nindent 8 }}
|
||||
{{- include "audiomanager.selectorLabels" . | nindent 8 }}
|
||||
annotations:
|
||||
checksum/library: {{ include (print $.Template.BasePath "/configmap-library.yaml") . | sha256sum }}
|
||||
spec:
|
||||
@@ -25,8 +25,8 @@ spec:
|
||||
securityContext:
|
||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||||
containers:
|
||||
- name: musicmanager
|
||||
image: "{{ include "musicmanager.image" . }}"
|
||||
- name: audiomanager
|
||||
image: "{{ include "audiomanager.image" . }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||
@@ -36,9 +36,9 @@ spec:
|
||||
- name: DATA_DIR
|
||||
value: /data
|
||||
- name: LIBRARY_CONFIG
|
||||
value: /etc/musicmanager/library.yaml
|
||||
value: /etc/audiomanager/library.yaml
|
||||
- name: USERS_FILE
|
||||
value: /etc/musicmanager/users.yaml
|
||||
value: /etc/audiomanager/users.yaml
|
||||
- name: FFMPEG_PATH
|
||||
value: ffmpeg
|
||||
{{- with .Values.env }}
|
||||
@@ -63,11 +63,11 @@ spec:
|
||||
{{- toYaml .Values.resources | nindent 12 }}
|
||||
volumeMounts:
|
||||
- name: library
|
||||
mountPath: /etc/musicmanager/library.yaml
|
||||
mountPath: /etc/audiomanager/library.yaml
|
||||
subPath: library.yaml
|
||||
readOnly: true
|
||||
- name: users
|
||||
mountPath: /etc/musicmanager/users.yaml
|
||||
mountPath: /etc/audiomanager/users.yaml
|
||||
subPath: {{ .Values.users.key }}
|
||||
readOnly: true
|
||||
- name: data
|
||||
@@ -83,14 +83,14 @@ spec:
|
||||
volumes:
|
||||
- name: library
|
||||
configMap:
|
||||
name: {{ include "musicmanager.fullname" . }}-library
|
||||
name: {{ include "audiomanager.fullname" . }}-library
|
||||
- name: users
|
||||
secret:
|
||||
secretName: {{ required "users.existingSecret is required" .Values.users.existingSecret }}
|
||||
- name: data
|
||||
{{- if .Values.data.persistence.enabled }}
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ include "musicmanager.fullname" . }}-data
|
||||
claimName: {{ include "audiomanager.fullname" . }}-data
|
||||
{{- else }}
|
||||
emptyDir: {}
|
||||
{{- end }}
|
||||
+3
-3
@@ -2,9 +2,9 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ include "musicmanager.fullname" . }}
|
||||
name: {{ include "audiomanager.fullname" . }}
|
||||
labels:
|
||||
{{- include "musicmanager.labels" . | nindent 4 }}
|
||||
{{- include "audiomanager.labels" . | nindent 4 }}
|
||||
{{- with .Values.ingress.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
@@ -27,7 +27,7 @@ spec:
|
||||
pathType: {{ .Values.ingress.pathType }}
|
||||
backend:
|
||||
service:
|
||||
name: {{ include "musicmanager.fullname" . }}
|
||||
name: {{ include "audiomanager.fullname" . }}
|
||||
port:
|
||||
name: http
|
||||
{{- end }}
|
||||
@@ -2,9 +2,9 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: {{ include "musicmanager.fullname" . }}-data
|
||||
name: {{ include "audiomanager.fullname" . }}-data
|
||||
labels:
|
||||
{{- include "musicmanager.labels" . | nindent 4 }}
|
||||
{{- include "audiomanager.labels" . | nindent 4 }}
|
||||
spec:
|
||||
accessModes:
|
||||
{{- toYaml .Values.data.persistence.accessModes | nindent 4 }}
|
||||
+3
-3
@@ -1,13 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "musicmanager.fullname" . }}
|
||||
name: {{ include "audiomanager.fullname" . }}
|
||||
labels:
|
||||
{{- include "musicmanager.labels" . | nindent 4 }}
|
||||
{{- include "audiomanager.labels" . | nindent 4 }}
|
||||
spec:
|
||||
type: {{ .Values.service.type }}
|
||||
selector:
|
||||
{{- include "musicmanager.selectorLabels" . | nindent 4 }}
|
||||
{{- include "audiomanager.selectorLabels" . | nindent 4 }}
|
||||
ports:
|
||||
- name: http
|
||||
port: {{ .Values.service.port }}
|
||||
@@ -10,7 +10,7 @@ imagePullSecrets: []
|
||||
nameOverride: ""
|
||||
fullnameOverride: ""
|
||||
|
||||
# Rendered into a ConfigMap as /etc/musicmanager/library.yaml.
|
||||
# Rendered into a ConfigMap as /etc/audiomanager/library.yaml.
|
||||
# Keep folder IDs stable: they are part of song IDs.
|
||||
library:
|
||||
folders:
|
||||
@@ -25,7 +25,7 @@ library:
|
||||
|
||||
# Vault-managed users.yaml. The secret must already exist and contain the key below.
|
||||
users:
|
||||
existingSecret: musicmanager-users
|
||||
existingSecret: audiomanager-users
|
||||
key: users.yaml
|
||||
|
||||
data:
|
||||
Reference in new issue
Block a user