You've already forked athens-proxy-charts
fix: supprt automatically roll deployments
This commit is contained in:
@@ -4,6 +4,18 @@
|
|||||||
|
|
||||||
{{- define "athens-proxy.pod.annotations" -}}
|
{{- define "athens-proxy.pod.annotations" -}}
|
||||||
{{ include "athens-proxy.annotations" . }}
|
{{ include "athens-proxy.annotations" . }}
|
||||||
|
{{- if and .Values.config.downloadMode.enabled (not .Values.config.downloadMode.existingConfigMap.enabled) -}}
|
||||||
|
{{- printf "checksum/config-map-%s: %s" (include "athens-proxy.configMap.downloadMode.name" $) (include (print $.Template.BasePath "/configMapDownloadMode.yaml") . | sha256sum) }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- if and .Values.config.gitConfig.enabled (not .Values.config.gitConfig.existingConfigMap.enabled) -}}
|
||||||
|
{{- printf "checksum/config-map-%s: %s" (include "athens-proxy.configMap.gitConfig.name" $) (include (print $.Template.BasePath "/configMapGitConfig.yaml") . | sha256sum) }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- if and .Values.config.netrc.enabled (not .Values.config.netrc.existingSecret.enabled) -}}
|
||||||
|
{{- printf "checksum/secret-%s: %s" (include "athens-proxy.secrets.netrc.name" $) (include (print $.Template.BasePath "/secretNetRC.yaml") . | sha256sum) }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- if and .Values.config.ssh.enabled (not .Values.config.ssh.existingSecret.enabled) -}}
|
||||||
|
{{- printf "checksum/secret-%s: %s" (include "athens-proxy.secrets.ssh.name" $) (include (print $.Template.BasePath "/secretSSH.yaml") . | sha256sum) }}
|
||||||
|
{{- end -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{/* labels */}}
|
{{/* labels */}}
|
||||||
|
@@ -6,42 +6,57 @@ release:
|
|||||||
name: athens-proxy-unittest
|
name: athens-proxy-unittest
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
|
- templates/configMapDownloadMode.yaml
|
||||||
|
- templates/configMapGitConfig.yaml
|
||||||
- templates/deployment.yaml
|
- templates/deployment.yaml
|
||||||
|
- templates/secretNetRC.yaml
|
||||||
|
- templates/secretSSH.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Rendering default without mounted download mode config map
|
- it: Rendering default without mounted download mode config map
|
||||||
asserts:
|
asserts:
|
||||||
|
- notExists:
|
||||||
|
path: spec.template.metadata.annotations.checksum/config-map-athens-proxy-unittest-download-mode-file
|
||||||
|
template: templates/deployment.yaml
|
||||||
- notContains:
|
- notContains:
|
||||||
path: spec.template.spec.containers[0].env
|
path: spec.template.spec.containers[0].env
|
||||||
content:
|
content:
|
||||||
name: ATHENS_DOWNLOAD_MODE
|
name: ATHENS_DOWNLOAD_MODE
|
||||||
value: file:/etc/athens/config/download-mode.d/download-mode
|
value: file:/etc/athens/config/download-mode.d/download-mode
|
||||||
|
template: templates/deployment.yaml
|
||||||
- notContains:
|
- notContains:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
content:
|
content:
|
||||||
name: download-mode
|
name: download-mode
|
||||||
mountPath: /etc/athens/config/download-mode.d
|
mountPath: /etc/athens/config/download-mode.d
|
||||||
|
template: templates/deployment.yaml
|
||||||
- notContains:
|
- notContains:
|
||||||
path: spec.template.spec.volumes
|
path: spec.template.spec.volumes
|
||||||
content:
|
content:
|
||||||
name: download-mode
|
name: download-mode
|
||||||
configMap:
|
configMap:
|
||||||
name: athens-proxy-unittest-download-mode-file
|
name: athens-proxy-unittest-download-mode-file
|
||||||
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Rendering default with mounted gitconfig configMap
|
- it: Rendering default with mounted gitconfig configMap
|
||||||
set:
|
set:
|
||||||
config.downloadMode.enabled: true
|
config.downloadMode.enabled: true
|
||||||
persistence.enabled: true
|
persistence.enabled: true
|
||||||
asserts:
|
asserts:
|
||||||
|
- exists:
|
||||||
|
path: spec.template.metadata.annotations.checksum/config-map-athens-proxy-unittest-download-mode-file
|
||||||
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.containers[0].env
|
path: spec.template.spec.containers[0].env
|
||||||
content:
|
content:
|
||||||
name: ATHENS_DOWNLOAD_MODE
|
name: ATHENS_DOWNLOAD_MODE
|
||||||
value: file:/etc/athens/config/download-mode.d/download-mode
|
value: file:/etc/athens/config/download-mode.d/download-mode
|
||||||
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
content:
|
content:
|
||||||
name: download-mode
|
name: download-mode
|
||||||
mountPath: /etc/athens/config/download-mode.d
|
mountPath: /etc/athens/config/download-mode.d
|
||||||
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.volumes
|
path: spec.template.spec.volumes
|
||||||
content:
|
content:
|
||||||
@@ -52,6 +67,7 @@ tests:
|
|||||||
mode: 0644
|
mode: 0644
|
||||||
path: download-mode
|
path: download-mode
|
||||||
name: athens-proxy-unittest-download-mode-file
|
name: athens-proxy-unittest-download-mode-file
|
||||||
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Rendering with custom download mode configMap
|
- it: Rendering with custom download mode configMap
|
||||||
set:
|
set:
|
||||||
@@ -61,16 +77,21 @@ tests:
|
|||||||
config.downloadMode.existingConfigMap.downloadModeKey: "my-custom-download-mode-filename-key"
|
config.downloadMode.existingConfigMap.downloadModeKey: "my-custom-download-mode-filename-key"
|
||||||
persistence.enabled: true
|
persistence.enabled: true
|
||||||
asserts:
|
asserts:
|
||||||
|
- notExists:
|
||||||
|
path: spec.template.metadata.annotations.checksum/config-map-athens-proxy-unittest-download-mode-file
|
||||||
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.containers[0].env
|
path: spec.template.spec.containers[0].env
|
||||||
content:
|
content:
|
||||||
name: ATHENS_DOWNLOAD_MODE
|
name: ATHENS_DOWNLOAD_MODE
|
||||||
value: file:/etc/athens/config/download-mode.d/download-mode
|
value: file:/etc/athens/config/download-mode.d/download-mode
|
||||||
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
content:
|
content:
|
||||||
name: download-mode
|
name: download-mode
|
||||||
mountPath: /etc/athens/config/download-mode.d
|
mountPath: /etc/athens/config/download-mode.d
|
||||||
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.volumes
|
path: spec.template.spec.volumes
|
||||||
content:
|
content:
|
||||||
@@ -81,3 +102,4 @@ tests:
|
|||||||
path: "download-mode"
|
path: "download-mode"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
name: my-custom-configmap
|
name: my-custom-configmap
|
||||||
|
template: templates/deployment.yaml
|
@@ -6,16 +6,24 @@ release:
|
|||||||
name: athens-proxy-unittest
|
name: athens-proxy-unittest
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
|
- templates/configMapDownloadMode.yaml
|
||||||
|
- templates/configMapGitConfig.yaml
|
||||||
- templates/deployment.yaml
|
- templates/deployment.yaml
|
||||||
|
- templates/secretNetRC.yaml
|
||||||
|
- templates/secretSSH.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Rendering default without mounted git config map
|
- it: Rendering default without mounted git config map
|
||||||
asserts:
|
asserts:
|
||||||
|
- notExists:
|
||||||
|
path: spec.template.metadata.annotations.checksum/config-map-athens-proxy-unittest-gitconfig
|
||||||
|
template: templates/deployment.yaml
|
||||||
- notContains:
|
- notContains:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
content:
|
content:
|
||||||
name: secrets
|
name: secrets
|
||||||
mountPath: /root/.gitconfig
|
mountPath: /root/.gitconfig
|
||||||
subPath: .gitconfig
|
subPath: .gitconfig
|
||||||
|
template: templates/deployment.yaml
|
||||||
- notContains:
|
- notContains:
|
||||||
path: spec.template.spec.volumes
|
path: spec.template.spec.volumes
|
||||||
content:
|
content:
|
||||||
@@ -28,18 +36,23 @@ tests:
|
|||||||
path: .gitconfig
|
path: .gitconfig
|
||||||
mode: 0600
|
mode: 0600
|
||||||
name: athens-proxy-unittest-gitconfig
|
name: athens-proxy-unittest-gitconfig
|
||||||
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Rendering default with mounted gitconfig configMap
|
- it: Rendering default with mounted gitconfig configMap
|
||||||
set:
|
set:
|
||||||
config.gitConfig.enabled: true
|
config.gitConfig.enabled: true
|
||||||
persistence.enabled: true
|
persistence.enabled: true
|
||||||
asserts:
|
asserts:
|
||||||
|
- exists:
|
||||||
|
path: spec.template.metadata.annotations.checksum/config-map-athens-proxy-unittest-gitconfig
|
||||||
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
content:
|
content:
|
||||||
name: secrets
|
name: secrets
|
||||||
mountPath: /root/.gitconfig
|
mountPath: /root/.gitconfig
|
||||||
subPath: .gitconfig
|
subPath: .gitconfig
|
||||||
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.volumes
|
path: spec.template.spec.volumes
|
||||||
content:
|
content:
|
||||||
@@ -52,6 +65,7 @@ tests:
|
|||||||
path: .gitconfig
|
path: .gitconfig
|
||||||
mode: 0644
|
mode: 0644
|
||||||
name: athens-proxy-unittest-gitconfig
|
name: athens-proxy-unittest-gitconfig
|
||||||
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Rendering with custom gitconfig configMap
|
- it: Rendering with custom gitconfig configMap
|
||||||
set:
|
set:
|
||||||
@@ -61,12 +75,16 @@ tests:
|
|||||||
config.gitConfig.existingConfigMap.gitConfigKey: "my-gitconfig-key"
|
config.gitConfig.existingConfigMap.gitConfigKey: "my-gitconfig-key"
|
||||||
persistence.enabled: true
|
persistence.enabled: true
|
||||||
asserts:
|
asserts:
|
||||||
|
- notExists:
|
||||||
|
path: spec.template.metadata.annotations.checksum/config-map-athens-proxy-unittest-gitconfig
|
||||||
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
content:
|
content:
|
||||||
name: secrets
|
name: secrets
|
||||||
mountPath: /root/.gitconfig
|
mountPath: /root/.gitconfig
|
||||||
subPath: .gitconfig
|
subPath: .gitconfig
|
||||||
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.volumes
|
path: spec.template.spec.volumes
|
||||||
content:
|
content:
|
||||||
@@ -79,3 +97,4 @@ tests:
|
|||||||
path: .gitconfig
|
path: .gitconfig
|
||||||
mode: 0644
|
mode: 0644
|
||||||
name: my-custom-configmap
|
name: my-custom-configmap
|
||||||
|
template: templates/deployment.yaml
|
@@ -6,15 +6,23 @@ release:
|
|||||||
name: athens-proxy-unittest
|
name: athens-proxy-unittest
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
|
- templates/configMapDownloadMode.yaml
|
||||||
|
- templates/configMapGitConfig.yaml
|
||||||
- templates/deployment.yaml
|
- templates/deployment.yaml
|
||||||
|
- templates/secretNetRC.yaml
|
||||||
|
- templates/secretSSH.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Rendering default without mounted netrc secret
|
- it: Rendering default without mounted netrc secret
|
||||||
asserts:
|
asserts:
|
||||||
|
- notExists:
|
||||||
|
path: spec.template.metadata.annotations.checksum/secret-athens-proxy-unittest-netrc
|
||||||
|
template: templates/deployment.yaml
|
||||||
- notContains:
|
- notContains:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
content:
|
content:
|
||||||
name: netrc
|
name: netrc
|
||||||
mountPath: /root
|
mountPath: /root
|
||||||
|
template: templates/deployment.yaml
|
||||||
- notContains:
|
- notContains:
|
||||||
path: spec.template.spec.volumes
|
path: spec.template.spec.volumes
|
||||||
content:
|
content:
|
||||||
@@ -27,18 +35,23 @@ tests:
|
|||||||
path: .netrc
|
path: .netrc
|
||||||
mode: 0600
|
mode: 0600
|
||||||
name: athens-proxy-unittest-netrc
|
name: athens-proxy-unittest-netrc
|
||||||
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Rendering default with mounted netrc secret
|
- it: Rendering default with mounted netrc secret
|
||||||
set:
|
set:
|
||||||
config.netrc.enabled: true
|
config.netrc.enabled: true
|
||||||
persistence.enabled: true
|
persistence.enabled: true
|
||||||
asserts:
|
asserts:
|
||||||
|
- exists:
|
||||||
|
path: spec.template.metadata.annotations.checksum/secret-athens-proxy-unittest-netrc
|
||||||
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
content:
|
content:
|
||||||
name: secrets
|
name: secrets
|
||||||
mountPath: /root/.netrc
|
mountPath: /root/.netrc
|
||||||
subPath: .netrc
|
subPath: .netrc
|
||||||
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.volumes
|
path: spec.template.spec.volumes
|
||||||
content:
|
content:
|
||||||
@@ -51,6 +64,7 @@ tests:
|
|||||||
path: .netrc
|
path: .netrc
|
||||||
mode: 0600
|
mode: 0600
|
||||||
name: athens-proxy-unittest-netrc
|
name: athens-proxy-unittest-netrc
|
||||||
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Rendering with custom netrc secret
|
- it: Rendering with custom netrc secret
|
||||||
set:
|
set:
|
||||||
@@ -60,12 +74,16 @@ tests:
|
|||||||
config.netrc.existingSecret.netrcKey: "my-netrc-key"
|
config.netrc.existingSecret.netrcKey: "my-netrc-key"
|
||||||
persistence.enabled: true
|
persistence.enabled: true
|
||||||
asserts:
|
asserts:
|
||||||
|
- notExists:
|
||||||
|
path: spec.template.metadata.annotations.checksum/secret-athens-proxy-unittest-netc
|
||||||
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
content:
|
content:
|
||||||
name: secrets
|
name: secrets
|
||||||
mountPath: /root/.netrc
|
mountPath: /root/.netrc
|
||||||
subPath: .netrc
|
subPath: .netrc
|
||||||
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.volumes
|
path: spec.template.spec.volumes
|
||||||
content:
|
content:
|
||||||
@@ -78,3 +96,4 @@ tests:
|
|||||||
path: .netrc
|
path: .netrc
|
||||||
mode: 0600
|
mode: 0600
|
||||||
name: my-custom-secret
|
name: my-custom-secret
|
||||||
|
template: templates/deployment.yaml
|
@@ -6,7 +6,11 @@ release:
|
|||||||
name: athens-proxy-unittest
|
name: athens-proxy-unittest
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
|
- templates/configMapDownloadMode.yaml
|
||||||
|
- templates/configMapGitConfig.yaml
|
||||||
- templates/deployment.yaml
|
- templates/deployment.yaml
|
||||||
|
- templates/secretNetRC.yaml
|
||||||
|
- templates/secretSSH.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Test persistent volume claim
|
- it: Test persistent volume claim
|
||||||
set:
|
set:
|
||||||
|
@@ -6,40 +6,52 @@ release:
|
|||||||
name: athens-proxy-unittest
|
name: athens-proxy-unittest
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
|
- templates/configMapDownloadMode.yaml
|
||||||
|
- templates/configMapGitConfig.yaml
|
||||||
- templates/deployment.yaml
|
- templates/deployment.yaml
|
||||||
|
- templates/secretNetRC.yaml
|
||||||
|
- templates/secretSSH.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Rendering default without mounted ssh secret
|
- it: Rendering default without mounted ssh secret
|
||||||
asserts:
|
asserts:
|
||||||
|
- notExists:
|
||||||
|
path: spec.template.metadata.annotations.checksum/secret-athens-proxy-unittest-ssh
|
||||||
|
template: templates/deployment.yaml
|
||||||
- notContains:
|
- notContains:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
content:
|
content:
|
||||||
name: secrets
|
name: secrets
|
||||||
mountPath: /root/.ssh/config
|
mountPath: /root/.ssh/config
|
||||||
subPath: config
|
subPath: config
|
||||||
|
template: templates/deployment.yaml
|
||||||
- notContains:
|
- notContains:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
content:
|
content:
|
||||||
name: secrets
|
name: secrets
|
||||||
mountPath: /root/.ssh/id_ed25519
|
mountPath: /root/.ssh/id_ed25519
|
||||||
subPath: id_ed25519
|
subPath: id_ed25519
|
||||||
|
template: templates/deployment.yaml
|
||||||
- notContains:
|
- notContains:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
content:
|
content:
|
||||||
name: secrets
|
name: secrets
|
||||||
mountPath: /root/.ssh/id_ed25519.pub
|
mountPath: /root/.ssh/id_ed25519.pub
|
||||||
subPath: id_ed25519.pub
|
subPath: id_ed25519.pub
|
||||||
|
template: templates/deployment.yaml
|
||||||
- notContains:
|
- notContains:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
content:
|
content:
|
||||||
name: secrets
|
name: secrets
|
||||||
mountPath: /root/.ssh/id_rsa
|
mountPath: /root/.ssh/id_rsa
|
||||||
subPath: id_rsa
|
subPath: id_rsa
|
||||||
|
template: templates/deployment.yaml
|
||||||
- notContains:
|
- notContains:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
content:
|
content:
|
||||||
name: secrets
|
name: secrets
|
||||||
mountPath: /root/.ssh/id_rsa.pub
|
mountPath: /root/.ssh/id_rsa.pub
|
||||||
subPath: id_rsa.pub
|
subPath: id_rsa.pub
|
||||||
|
template: templates/deployment.yaml
|
||||||
- notContains:
|
- notContains:
|
||||||
path: spec.template.spec.volumes
|
path: spec.template.spec.volumes
|
||||||
content:
|
content:
|
||||||
@@ -64,6 +76,7 @@ tests:
|
|||||||
path: id_rsa.pub
|
path: id_rsa.pub
|
||||||
mode: 0644
|
mode: 0644
|
||||||
name: athens-proxy-unittest-ssh
|
name: athens-proxy-unittest-ssh
|
||||||
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Rendering default with mounted ssh config
|
- it: Rendering default with mounted ssh config
|
||||||
set:
|
set:
|
||||||
@@ -76,6 +89,7 @@ tests:
|
|||||||
name: secrets
|
name: secrets
|
||||||
mountPath: /root/.ssh/config
|
mountPath: /root/.ssh/config
|
||||||
subPath: config
|
subPath: config
|
||||||
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.volumes
|
path: spec.template.spec.volumes
|
||||||
content:
|
content:
|
||||||
@@ -88,6 +102,7 @@ tests:
|
|||||||
path: config
|
path: config
|
||||||
mode: 0600
|
mode: 0600
|
||||||
name: athens-proxy-unittest-ssh
|
name: athens-proxy-unittest-ssh
|
||||||
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Rendering default with mounted ssh keys
|
- it: Rendering default with mounted ssh keys
|
||||||
set:
|
set:
|
||||||
@@ -98,36 +113,44 @@ tests:
|
|||||||
config.ssh.secret.id_rsa_pub: bar
|
config.ssh.secret.id_rsa_pub: bar
|
||||||
persistence.enabled: true
|
persistence.enabled: true
|
||||||
asserts:
|
asserts:
|
||||||
|
- exists:
|
||||||
|
path: spec.template.metadata.annotations.checksum/secret-athens-proxy-unittest-ssh
|
||||||
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
content:
|
content:
|
||||||
name: secrets
|
name: secrets
|
||||||
mountPath: /root/.ssh/config
|
mountPath: /root/.ssh/config
|
||||||
subPath: config
|
subPath: config
|
||||||
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
content:
|
content:
|
||||||
name: secrets
|
name: secrets
|
||||||
mountPath: /root/.ssh/id_ed25519
|
mountPath: /root/.ssh/id_ed25519
|
||||||
subPath: id_ed25519
|
subPath: id_ed25519
|
||||||
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
content:
|
content:
|
||||||
name: secrets
|
name: secrets
|
||||||
mountPath: /root/.ssh/id_ed25519.pub
|
mountPath: /root/.ssh/id_ed25519.pub
|
||||||
subPath: id_ed25519.pub
|
subPath: id_ed25519.pub
|
||||||
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
content:
|
content:
|
||||||
name: secrets
|
name: secrets
|
||||||
mountPath: /root/.ssh/id_rsa
|
mountPath: /root/.ssh/id_rsa
|
||||||
subPath: id_rsa
|
subPath: id_rsa
|
||||||
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
content:
|
content:
|
||||||
name: secrets
|
name: secrets
|
||||||
mountPath: /root/.ssh/id_rsa.pub
|
mountPath: /root/.ssh/id_rsa.pub
|
||||||
subPath: id_rsa.pub
|
subPath: id_rsa.pub
|
||||||
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.volumes
|
path: spec.template.spec.volumes
|
||||||
content:
|
content:
|
||||||
@@ -152,6 +175,7 @@ tests:
|
|||||||
path: id_rsa.pub
|
path: id_rsa.pub
|
||||||
mode: 0644
|
mode: 0644
|
||||||
name: athens-proxy-unittest-ssh
|
name: athens-proxy-unittest-ssh
|
||||||
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Rendering with custom ssh secret
|
- it: Rendering with custom ssh secret
|
||||||
set:
|
set:
|
||||||
@@ -165,36 +189,44 @@ tests:
|
|||||||
config.ssh.existingSecret.id_rsaPubKey : "my-public-rsa-key"
|
config.ssh.existingSecret.id_rsaPubKey : "my-public-rsa-key"
|
||||||
persistence.enabled: true
|
persistence.enabled: true
|
||||||
asserts:
|
asserts:
|
||||||
|
- notExists:
|
||||||
|
path: spec.template.metadata.annotations.checksum/secret-athens-proxy-unittest-ssh
|
||||||
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
content:
|
content:
|
||||||
name: secrets
|
name: secrets
|
||||||
mountPath: /root/.ssh/config
|
mountPath: /root/.ssh/config
|
||||||
subPath: config
|
subPath: config
|
||||||
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
content:
|
content:
|
||||||
name: secrets
|
name: secrets
|
||||||
mountPath: /root/.ssh/id_ed25519
|
mountPath: /root/.ssh/id_ed25519
|
||||||
subPath: id_ed25519
|
subPath: id_ed25519
|
||||||
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
content:
|
content:
|
||||||
name: secrets
|
name: secrets
|
||||||
mountPath: /root/.ssh/id_ed25519.pub
|
mountPath: /root/.ssh/id_ed25519.pub
|
||||||
subPath: id_ed25519.pub
|
subPath: id_ed25519.pub
|
||||||
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
content:
|
content:
|
||||||
name: secrets
|
name: secrets
|
||||||
mountPath: /root/.ssh/id_rsa
|
mountPath: /root/.ssh/id_rsa
|
||||||
subPath: id_rsa
|
subPath: id_rsa
|
||||||
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
content:
|
content:
|
||||||
name: secrets
|
name: secrets
|
||||||
mountPath: /root/.ssh/id_rsa.pub
|
mountPath: /root/.ssh/id_rsa.pub
|
||||||
subPath: id_rsa.pub
|
subPath: id_rsa.pub
|
||||||
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.volumes
|
path: spec.template.spec.volumes
|
||||||
content:
|
content:
|
||||||
@@ -219,3 +251,4 @@ tests:
|
|||||||
path: id_rsa.pub
|
path: id_rsa.pub
|
||||||
mode: 0644
|
mode: 0644
|
||||||
name: my-custom-secret
|
name: my-custom-secret
|
||||||
|
template: templates/deployment.yaml
|
Reference in New Issue
Block a user