diff --git a/community/kapowarr/1.2.1/metadata.yaml b/community/kapowarr/1.2.1/metadata.yaml deleted file mode 100644 index ff7463f774..0000000000 --- a/community/kapowarr/1.2.1/metadata.yaml +++ /dev/null @@ -1,8 +0,0 @@ -runAsContext: - - userName: kapowarr - groupName: kapowarr - gid: 568 - uid: 568 - description: Kapowarr can run as any non-root user. -capabilities: [] -hostMounts: [] diff --git a/community/kapowarr/1.2.1/templates/_persistence.tpl b/community/kapowarr/1.2.1/templates/_persistence.tpl deleted file mode 100644 index 37ffaa412f..0000000000 --- a/community/kapowarr/1.2.1/templates/_persistence.tpl +++ /dev/null @@ -1,64 +0,0 @@ -{{- define "kapowarr.persistence" -}} -persistence: - config: - enabled: true - {{- include "kapowarr.storage.ci.migration" (dict "storage" .Values.kapowarrStorage.config) }} - {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.kapowarrStorage.config) | nindent 4 }} - targetSelector: - kapowarr: - kapowarr: - mountPath: /app/db - {{- if and (eq .Values.kapowarrStorage.config.type "ixVolume") - (not (.Values.kapowarrStorage.config.ixVolumeConfig | default dict).aclEnable) }} - 01-permissions: - mountPath: /mnt/directories/config - {{- end }} - downloads: - enabled: true - {{- include "kapowarr.storage.ci.migration" (dict "storage" .Values.kapowarrStorage.downloads) }} - {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.kapowarrStorage.downloads) | nindent 4 }} - targetSelector: - kapowarr: - kapowarr: - mountPath: /app/temp_downloads - {{- if and (eq .Values.kapowarrStorage.downloads.type "ixVolume") - (not (.Values.kapowarrStorage.downloads.ixVolumeConfig | default dict).aclEnable) }} - 01-permissions: - mountPath: /mnt/directories/downloads - {{- end }} - content: - enabled: true - {{- include "kapowarr.storage.ci.migration" (dict "storage" .Values.kapowarrStorage.content) }} - {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.kapowarrStorage.content) | nindent 4 }} - targetSelector: - kapowarr: - kapowarr: - mountPath: /content - {{- if and (eq .Values.kapowarrStorage.content.type "ixVolume") - (not (.Values.kapowarrStorage.content.ixVolumeConfig | default dict).aclEnable) }} - 01-permissions: - mountPath: /mnt/directories/content - {{- end }} - {{- range $idx, $storage := .Values.kapowarrStorage.additionalStorages }} - {{ printf "kapowarr-%v:" (int $idx) }} - enabled: true - {{- include "kapowarr.storage.ci.migration" (dict "storage" $storage) }} - {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }} - targetSelector: - kapowarr: - kapowarr: - mountPath: {{ $storage.mountPath }} - 01-permissions: - mountPath: /mnt/directories{{ $storage.mountPath }} - {{- end }} -{{- end -}} - -{{/* TODO: Remove on the next version bump, eg 1.2.0+ */}} -{{- define "kapowarr.storage.ci.migration" -}} - {{- $storage := .storage -}} - - {{- if $storage.hostPath -}} - {{- $_ := set $storage "hostPathConfig" dict -}} - {{- $_ := set $storage.hostPathConfig "hostPath" $storage.hostPath -}} - {{- end -}} -{{- end -}} diff --git a/community/kapowarr/1.2.1/Chart.lock b/community/kapowarr/2.0.0/Chart.lock similarity index 100% rename from community/kapowarr/1.2.1/Chart.lock rename to community/kapowarr/2.0.0/Chart.lock diff --git a/community/kapowarr/1.2.1/Chart.yaml b/community/kapowarr/2.0.0/Chart.yaml similarity index 97% rename from community/kapowarr/1.2.1/Chart.yaml rename to community/kapowarr/2.0.0/Chart.yaml index e60dd4e0e4..c0ec7ad02b 100644 --- a/community/kapowarr/1.2.1/Chart.yaml +++ b/community/kapowarr/2.0.0/Chart.yaml @@ -3,7 +3,7 @@ description: Kapowarr is a software to build and manage a comic book library, fi annotations: title: Kapowarr type: application -version: 1.2.1 +version: 2.0.0 apiVersion: v2 appVersion: 1.0.0 kubeVersion: '>=1.16.0-0' diff --git a/community/kapowarr/1.2.1/README.md b/community/kapowarr/2.0.0/README.md similarity index 100% rename from community/kapowarr/1.2.1/README.md rename to community/kapowarr/2.0.0/README.md diff --git a/community/kapowarr/1.2.1/app-readme.md b/community/kapowarr/2.0.0/app-readme.md similarity index 100% rename from community/kapowarr/1.2.1/app-readme.md rename to community/kapowarr/2.0.0/app-readme.md diff --git a/community/kapowarr/1.2.1/charts/common-1.2.6.tgz b/community/kapowarr/2.0.0/charts/common-1.2.6.tgz similarity index 100% rename from community/kapowarr/1.2.1/charts/common-1.2.6.tgz rename to community/kapowarr/2.0.0/charts/common-1.2.6.tgz diff --git a/community/kapowarr/1.2.1/ci/basic-values.yaml b/community/kapowarr/2.0.0/ci/basic-values.yaml similarity index 100% rename from community/kapowarr/1.2.1/ci/basic-values.yaml rename to community/kapowarr/2.0.0/ci/basic-values.yaml diff --git a/community/kapowarr/1.2.1/ci/extra-values.yaml b/community/kapowarr/2.0.0/ci/extra-values.yaml similarity index 100% rename from community/kapowarr/1.2.1/ci/extra-values.yaml rename to community/kapowarr/2.0.0/ci/extra-values.yaml diff --git a/community/kapowarr/1.2.1/ix_values.yaml b/community/kapowarr/2.0.0/ix_values.yaml similarity index 88% rename from community/kapowarr/1.2.1/ix_values.yaml rename to community/kapowarr/2.0.0/ix_values.yaml index 69df8a84b1..e25d028c46 100644 --- a/community/kapowarr/1.2.1/ix_values.yaml +++ b/community/kapowarr/2.0.0/ix_values.yaml @@ -1,7 +1,7 @@ image: repository: mrcas/kapowarr pullPolicy: IfNotPresent - tag: v1.0.0-beta-3 + tag: v1.0.0-beta-4 resources: limits: @@ -14,10 +14,6 @@ kapowarrConfig: kapowarrNetwork: webPort: 30071 -kapowarrRunAs: - user: 568 - group: 568 - kapowarrStorage: config: type: ixVolume diff --git a/community/kapowarr/2.0.0/metadata.yaml b/community/kapowarr/2.0.0/metadata.yaml new file mode 100644 index 0000000000..572b2e7011 --- /dev/null +++ b/community/kapowarr/2.0.0/metadata.yaml @@ -0,0 +1,8 @@ +runAsContext: + - userName: root + groupName: root + gid: 0 + uid: 0 + description: Kapowarr runs as root user. +capabilities: [] +hostMounts: [] diff --git a/community/kapowarr/1.2.1/migrations/migrate b/community/kapowarr/2.0.0/migrations/migrate similarity index 100% rename from community/kapowarr/1.2.1/migrations/migrate rename to community/kapowarr/2.0.0/migrations/migrate diff --git a/community/kapowarr/1.2.1/questions.yaml b/community/kapowarr/2.0.0/questions.yaml similarity index 97% rename from community/kapowarr/1.2.1/questions.yaml rename to community/kapowarr/2.0.0/questions.yaml index 423fa1cf4d..893abda45d 100644 --- a/community/kapowarr/1.2.1/questions.yaml +++ b/community/kapowarr/2.0.0/questions.yaml @@ -50,29 +50,6 @@ questions: type: string required: true - - variable: kapowarrRunAs - label: "" - group: User and Group Configuration - schema: - type: dict - attrs: - - variable: user - label: User ID - description: The user id that Kapowarr will run as. - schema: - type: int - min: 2 - default: 568 - required: true - - variable: group - label: Group ID - description: The group id that Kapowarr will run as. - schema: - type: int - min: 2 - default: 568 - required: true - - variable: kapowarrNetwork label: "" group: Network Configuration diff --git a/community/kapowarr/1.2.1/templates/NOTES.txt b/community/kapowarr/2.0.0/templates/NOTES.txt similarity index 100% rename from community/kapowarr/1.2.1/templates/NOTES.txt rename to community/kapowarr/2.0.0/templates/NOTES.txt diff --git a/community/kapowarr/1.2.1/templates/_kapowarr.tpl b/community/kapowarr/2.0.0/templates/_kapowarr.tpl similarity index 61% rename from community/kapowarr/1.2.1/templates/_kapowarr.tpl rename to community/kapowarr/2.0.0/templates/_kapowarr.tpl index 731eca6623..0e4abefbe5 100644 --- a/community/kapowarr/1.2.1/templates/_kapowarr.tpl +++ b/community/kapowarr/2.0.0/templates/_kapowarr.tpl @@ -12,8 +12,9 @@ workload: primary: true imageSelector: image securityContext: - runAsUser: {{ .Values.kapowarrRunAs.user }} - runAsGroup: {{ .Values.kapowarrRunAs.group }} + runAsUser: 0 + runAsGroup: 0 + runAsNonRoot: false {{ with .Values.kapowarrConfig.additionalEnvs }} envList: {{ range $env := . }} @@ -37,10 +38,4 @@ workload: type: http port: 5656 path: / - initContainers: - {{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions" - "UID" .Values.kapowarrRunAs.user - "GID" .Values.kapowarrRunAs.group - "mode" "check" - "type" "install") | nindent 8 }} {{- end -}} diff --git a/community/kapowarr/2.0.0/templates/_persistence.tpl b/community/kapowarr/2.0.0/templates/_persistence.tpl new file mode 100644 index 0000000000..2168f03a30 --- /dev/null +++ b/community/kapowarr/2.0.0/templates/_persistence.tpl @@ -0,0 +1,33 @@ +{{- define "kapowarr.persistence" -}} +persistence: + config: + enabled: true + {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.kapowarrStorage.config) | nindent 4 }} + targetSelector: + kapowarr: + kapowarr: + mountPath: /app/db + downloads: + enabled: true + {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.kapowarrStorage.downloads) | nindent 4 }} + targetSelector: + kapowarr: + kapowarr: + mountPath: /app/temp_downloads + content: + enabled: true + {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.kapowarrStorage.content) | nindent 4 }} + targetSelector: + kapowarr: + kapowarr: + mountPath: /content + {{- range $idx, $storage := .Values.kapowarrStorage.additionalStorages }} + {{ printf "kapowarr-%v:" (int $idx) }} + enabled: true + {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }} + targetSelector: + kapowarr: + kapowarr: + mountPath: {{ $storage.mountPath }} + {{- end }} +{{- end -}} diff --git a/community/kapowarr/1.2.1/templates/_portal.tpl b/community/kapowarr/2.0.0/templates/_portal.tpl similarity index 100% rename from community/kapowarr/1.2.1/templates/_portal.tpl rename to community/kapowarr/2.0.0/templates/_portal.tpl diff --git a/community/kapowarr/1.2.1/templates/_service.tpl b/community/kapowarr/2.0.0/templates/_service.tpl similarity index 100% rename from community/kapowarr/1.2.1/templates/_service.tpl rename to community/kapowarr/2.0.0/templates/_service.tpl diff --git a/community/kapowarr/1.2.1/templates/common.yaml b/community/kapowarr/2.0.0/templates/common.yaml similarity index 100% rename from community/kapowarr/1.2.1/templates/common.yaml rename to community/kapowarr/2.0.0/templates/common.yaml