You've already forked athens-proxy-charts
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
eadbcf243b
|
|||
0caa188bb1
|
@@ -80,6 +80,7 @@
|
|||||||
|
|
||||||
{{- define "athens-proxy.deployment.volumeMounts" -}}
|
{{- define "athens-proxy.deployment.volumeMounts" -}}
|
||||||
{{- $volumeMounts := .Values.deployment.athensProxy.volumeMounts | default (list) }}
|
{{- $volumeMounts := .Values.deployment.athensProxy.volumeMounts | default (list) }}
|
||||||
|
|
||||||
{{- if .Values.persistence.enabled }}
|
{{- if .Values.persistence.enabled }}
|
||||||
{{- $volumeMounts = concat $volumeMounts (list (dict "name" "data" "mountPath" .Values.persistence.data.mountPath)) }}
|
{{- $volumeMounts = concat $volumeMounts (list (dict "name" "data" "mountPath" .Values.persistence.data.mountPath)) }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -129,7 +130,7 @@
|
|||||||
{{/* volumes */}}
|
{{/* volumes */}}
|
||||||
|
|
||||||
{{- define "athens-proxy.deployment.volumes" -}}
|
{{- define "athens-proxy.deployment.volumes" -}}
|
||||||
{{- $volumes := .Values.deployment.athensProxy.volumes | default (list) }}
|
{{- $volumes := .Values.deployment.volumes | default (list) }}
|
||||||
|
|
||||||
|
|
||||||
{{/* volumes (data) */}}
|
{{/* volumes (data) */}}
|
||||||
|
@@ -11,7 +11,7 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
name: {{ include "athens-proxy.fullname" . }}-git-config
|
name: {{ include "athens-proxy.configMap.gitConfig.name" . }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
data:
|
data:
|
||||||
.gitconfig: |
|
.gitconfig: |
|
||||||
|
@@ -30,7 +30,7 @@ tests:
|
|||||||
- containsDocument:
|
- containsDocument:
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
name: athens-proxy-unittest-git-config
|
name: athens-proxy-unittest-gitconfig
|
||||||
namespace: testing
|
namespace: testing
|
||||||
- notExists:
|
- notExists:
|
||||||
path: metadata.annotations
|
path: metadata.annotations
|
||||||
|
@@ -463,3 +463,10 @@ tests:
|
|||||||
- name: data
|
- name: data
|
||||||
mountPath: /usr/lib/athens-proxy/data
|
mountPath: /usr/lib/athens-proxy/data
|
||||||
template: templates/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
|
- equal:
|
||||||
|
path: spec.template.spec.volumes
|
||||||
|
value:
|
||||||
|
- name: data
|
||||||
|
hostPath:
|
||||||
|
path: /usr/lib/athens-proxy/data
|
||||||
|
template: templates/deployment.yaml
|
||||||
|
Reference in New Issue
Block a user