diff --git a/charts/jellyfin/templates/NOTES.txt b/charts/jellyfin/templates/NOTES.txt new file mode 100644 index 0000000..83dd7c5 --- /dev/null +++ b/charts/jellyfin/templates/NOTES.txt @@ -0,0 +1,35 @@ +Thank you for installing {{ .Chart.Name }}. + +Your release is named {{ .Release.Name }}. + +To learn more about the release, try: + + $ helm status {{ .Release.Name }} + $ helm get all {{ .Release.Name }} + +{{- if .Values.ingress.enabled }} + +Jellyfin is available via Ingress at: +{{- range .Values.ingress.hosts }} + http{{ if $.Values.ingress.tls }}s{{ end }}://{{ .host }}{{ (index .paths 0).path }} +{{- end }} +{{- else }} + +To access Jellyfin, you can use port-forwarding: + + $ kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ include "jellyfin.fullname" . }} {{ .Values.service.port }}:{{ .Values.service.port }} + +Then visit http://localhost:{{ .Values.service.port }} in your browser. +{{- end }} + +Deployment Configuration: + Revision History Limit: {{ .Values.revisionHistoryLimit }} + {{- $limit := int .Values.revisionHistoryLimit }} + {{- if eq $limit 0 }} + ⚠ WARNING: Revision history is disabled - rollback will not be possible! + {{- else if eq $limit 1 }} + ⚠ NOTE: Only 1 revision kept - limited rollback capability + {{- else }} + You can rollback to any of the last {{ .Values.revisionHistoryLimit }} revisions using: + kubectl rollout undo deployment/{{ include "jellyfin.fullname" . }} --namespace {{ .Release.Namespace }} + {{- end }} diff --git a/charts/jellyfin/tests/revision_history_test.yaml b/charts/jellyfin/tests/revision_history_test.yaml new file mode 100644 index 0000000..0a2b903 --- /dev/null +++ b/charts/jellyfin/tests/revision_history_test.yaml @@ -0,0 +1,41 @@ +suite: test revision history limit +templates: + - deployment.yaml +tests: + - it: should set revisionHistoryLimit to 3 by default + asserts: + - equal: + path: spec.revisionHistoryLimit + value: 3 + + - it: should allow custom revisionHistoryLimit + set: + revisionHistoryLimit: 5 + asserts: + - equal: + path: spec.revisionHistoryLimit + value: 5 + + - it: should allow revisionHistoryLimit of 0 + set: + revisionHistoryLimit: 0 + asserts: + - equal: + path: spec.revisionHistoryLimit + value: 0 + + - it: should allow revisionHistoryLimit of 1 + set: + revisionHistoryLimit: 1 + asserts: + - equal: + path: spec.revisionHistoryLimit + value: 1 + + - it: should allow large revisionHistoryLimit + set: + revisionHistoryLimit: 100 + asserts: + - equal: + path: spec.revisionHistoryLimit + value: 100