You've already forked reposilite-charts
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
26d6d51418
|
|||
045b67cbc2
|
|||
5dbd2902e8
|
@ -1,6 +1,6 @@
|
|||||||
# Reposilite
|
# Reposilite
|
||||||
|
|
||||||
[](https://artifacthub.io/packages/search?repo=reposilite)
|
[](https://artifacthub.io/packages/search?repo=volker-raschek)
|
||||||
|
|
||||||
This helm chart enables the deployment of [Reposilite](https://github.com/dzikoysk/reposilite), a lightweight and
|
This helm chart enables the deployment of [Reposilite](https://github.com/dzikoysk/reposilite), a lightweight and
|
||||||
easy-to-use repository management software dedicated for the Maven-based artifacts in the JVM ecosystem.
|
easy-to-use repository management software dedicated for the Maven-based artifacts in the JVM ecosystem.
|
||||||
|
@ -20,8 +20,6 @@
|
|||||||
{{ toYaml (dict "env" $env) }}
|
{{ toYaml (dict "env" $env) }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
REPOSILITE_DATA
|
|
||||||
|
|
||||||
{{/* image */}}
|
{{/* image */}}
|
||||||
|
|
||||||
{{- define "reposilite.deployment.images.reposilite.fqin" -}}
|
{{- define "reposilite.deployment.images.reposilite.fqin" -}}
|
||||||
@ -68,6 +66,9 @@ REPOSILITE_DATA
|
|||||||
{{- if and .Values.persistentVolumeClaim.enabled (not .Values.persistentVolumeClaim.existing.enabled) }}
|
{{- if and .Values.persistentVolumeClaim.enabled (not .Values.persistentVolumeClaim.existing.enabled) }}
|
||||||
{{- $persistentVolumeClaimName := include "reposilite.persistentVolumeClaim.name" $ -}}
|
{{- $persistentVolumeClaimName := include "reposilite.persistentVolumeClaim.name" $ -}}
|
||||||
{{- $volumes = concat $volumes (list (dict "name" "data" "persistentVolumeClaim" (dict "claimName" $persistentVolumeClaimName))) }}
|
{{- $volumes = concat $volumes (list (dict "name" "data" "persistentVolumeClaim" (dict "claimName" $persistentVolumeClaimName))) }}
|
||||||
|
{{- else if and .Values.persistentVolumeClaim.enabled .Values.persistentVolumeClaim.existing.enabled .Values.persistentVolumeClaim.existing.persistentVolumeClaimName -}}
|
||||||
|
{{- $persistentVolumeClaimName := .Values.persistentVolumeClaim.existing.persistentVolumeClaimName -}}
|
||||||
|
{{- $volumes = concat $volumes (list (dict "name" "data" "persistentVolumeClaim" (dict "claimName" $persistentVolumeClaimName))) }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{ toYaml (dict "volumes" $volumes) }}
|
{{ toYaml (dict "volumes" $volumes) }}
|
||||||
|
@ -50,3 +50,26 @@ tests:
|
|||||||
name: data
|
name: data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: reposilite-unittest
|
claimName: reposilite-unittest
|
||||||
|
|
||||||
|
- it: Rendering custom volumes and volumeMounts with persistent volume claim
|
||||||
|
set:
|
||||||
|
persistentVolumeClaim.enabled: true
|
||||||
|
persistentVolumeClaim.existing.enabled: true
|
||||||
|
persistentVolumeClaim.existing.persistentVolumeClaimName: my-custom-pvc
|
||||||
|
asserts:
|
||||||
|
- contains:
|
||||||
|
path: spec.template.spec.containers[0].env
|
||||||
|
content:
|
||||||
|
name: REPOSILITE_DATA
|
||||||
|
value: /app/data
|
||||||
|
- contains:
|
||||||
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
|
content:
|
||||||
|
name: data
|
||||||
|
mountPath: /app/data
|
||||||
|
- contains:
|
||||||
|
path: spec.template.spec.volumes
|
||||||
|
content:
|
||||||
|
name: data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: my-custom-pvc
|
Reference in New Issue
Block a user