refac: remove obsolete directory athens-proxy
This commit is contained in:
41 files changed
+75
-83
No files matched your search
Vendored
-8
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"yaml.schemas": {
|
|
||||||
"https://raw.githubusercontent.com/helm-unittest/helm-unittest/v0.5.2/schema/helm-testsuite.json": [
|
|
||||||
"/unittests/**/*.yaml"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"yaml.schemaStore.enable": true
|
|
||||||
}
|
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -6,7 +6,7 @@ release:
|
|||||||
name: athens-proxy-unittest
|
name: athens-proxy-unittest
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/athens-proxy/configMapDownloadMode.yaml
|
- templates/configMapDownloadMode.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Skip rending by using existing config map.
|
- it: Skip rending by using existing config map.
|
||||||
set:
|
set:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ release:
|
|||||||
name: athens-proxy-unittest
|
name: athens-proxy-unittest
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/athens-proxy/configMapGitConfig.yaml
|
- templates/configMapGitConfig.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Skip rending by using existing config map.
|
- it: Skip rending by using existing config map.
|
||||||
set:
|
set:
|
||||||
|
|||||||
@@ -6,22 +6,22 @@ release:
|
|||||||
name: athens-proxy-unittest
|
name: athens-proxy-unittest
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/athens-proxy/deployment.yaml
|
- templates/deployment.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Rendering default
|
- it: Rendering default
|
||||||
asserts:
|
asserts:
|
||||||
- hasDocuments:
|
- hasDocuments:
|
||||||
count: 1
|
count: 1
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- containsDocument:
|
- containsDocument:
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
name: athens-proxy-unittest
|
name: athens-proxy-unittest
|
||||||
namespace: testing
|
namespace: testing
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- notExists:
|
- notExists:
|
||||||
path: metadata.annotations
|
path: metadata.annotations
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- equal:
|
- equal:
|
||||||
path: metadata.labels
|
path: metadata.labels
|
||||||
value:
|
value:
|
||||||
@@ -30,11 +30,11 @@ tests:
|
|||||||
app.kubernetes.io/name: athens-proxy
|
app.kubernetes.io/name: athens-proxy
|
||||||
app.kubernetes.io/version: 0.1.0
|
app.kubernetes.io/version: 0.1.0
|
||||||
helm.sh/chart: athens-proxy-0.1.0
|
helm.sh/chart: athens-proxy-0.1.0
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.replicas
|
path: spec.replicas
|
||||||
value: 1
|
value: 1
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.metadata.labels
|
path: spec.template.metadata.labels
|
||||||
value:
|
value:
|
||||||
@@ -43,74 +43,74 @@ tests:
|
|||||||
app.kubernetes.io/name: athens-proxy
|
app.kubernetes.io/name: athens-proxy
|
||||||
app.kubernetes.io/version: 0.1.0
|
app.kubernetes.io/version: 0.1.0
|
||||||
helm.sh/chart: athens-proxy-0.1.0
|
helm.sh/chart: athens-proxy-0.1.0
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- notExists:
|
- notExists:
|
||||||
path: spec.template.spec.affinity
|
path: spec.template.spec.affinity
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- notExists:
|
- notExists:
|
||||||
path: spec.template.spec.containers[0].args
|
path: spec.template.spec.containers[0].args
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- notExists:
|
- notExists:
|
||||||
path: spec.template.spec.containers[0].command
|
path: spec.template.spec.containers[0].command
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- notExists:
|
- notExists:
|
||||||
path: spec.template.spec.containers[0].envFrom
|
path: spec.template.spec.containers[0].envFrom
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- notExists:
|
- notExists:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.containers[0].image
|
path: spec.template.spec.containers[0].image
|
||||||
value: docker.io/gomods/athens:0.1.0
|
value: docker.io/gomods/athens:0.1.0
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.containers[0].imagePullPolicy
|
path: spec.template.spec.containers[0].imagePullPolicy
|
||||||
value: IfNotPresent
|
value: IfNotPresent
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- notExists:
|
- notExists:
|
||||||
path: spec.template.spec.containers[0].resources
|
path: spec.template.spec.containers[0].resources
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- notExists:
|
- notExists:
|
||||||
path: spec.template.spec.containers[0].securityContext
|
path: spec.template.spec.containers[0].securityContext
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- notExists:
|
- notExists:
|
||||||
path: spec.template.spec.dnsConfig
|
path: spec.template.spec.dnsConfig
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- notExists:
|
- notExists:
|
||||||
path: spec.template.spec.dnsPolicy
|
path: spec.template.spec.dnsPolicy
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- notExists:
|
- notExists:
|
||||||
path: spec.template.spec.hostname
|
path: spec.template.spec.hostname
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.hostNetwork
|
path: spec.template.spec.hostNetwork
|
||||||
value: false
|
value: false
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- notExists:
|
- notExists:
|
||||||
path: spec.template.spec.imagePullSecrets
|
path: spec.template.spec.imagePullSecrets
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- notExists:
|
- notExists:
|
||||||
path: spec.template.spec.nodeSelector
|
path: spec.template.spec.nodeSelector
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- notExists:
|
- notExists:
|
||||||
path: spec.template.spec.priorityClassName
|
path: spec.template.spec.priorityClassName
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- notExists:
|
- notExists:
|
||||||
path: spec.template.spec.restartPolicy
|
path: spec.template.spec.restartPolicy
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- notExists:
|
- notExists:
|
||||||
path: spec.template.spec.subdomain
|
path: spec.template.spec.subdomain
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.terminationGracePeriodSeconds
|
path: spec.template.spec.terminationGracePeriodSeconds
|
||||||
value: 60
|
value: 60
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- notExists:
|
- notExists:
|
||||||
path: spec.template.spec.tolerations
|
path: spec.template.spec.tolerations
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- notExists:
|
- notExists:
|
||||||
path: spec.template.spec.topologySpreadConstraints
|
path: spec.template.spec.topologySpreadConstraints
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.strategy
|
path: spec.strategy
|
||||||
value:
|
value:
|
||||||
@@ -118,7 +118,7 @@ tests:
|
|||||||
rollingUpdate:
|
rollingUpdate:
|
||||||
maxSurge: 1
|
maxSurge: 1
|
||||||
maxUnavailable: 1
|
maxUnavailable: 1
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Test custom replicas
|
- it: Test custom replicas
|
||||||
set:
|
set:
|
||||||
@@ -130,7 +130,7 @@ tests:
|
|||||||
- equal:
|
- equal:
|
||||||
path: spec.replicas
|
path: spec.replicas
|
||||||
value: 3
|
value: 3
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Test custom affinity
|
- it: Test custom affinity
|
||||||
set:
|
set:
|
||||||
@@ -160,7 +160,7 @@ tests:
|
|||||||
values:
|
values:
|
||||||
- antarctica-east1
|
- antarctica-east1
|
||||||
- antarctica-west1
|
- antarctica-west1
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Test additional arguments
|
- it: Test additional arguments
|
||||||
set:
|
set:
|
||||||
@@ -176,7 +176,7 @@ tests:
|
|||||||
value:
|
value:
|
||||||
- --foo=bar
|
- --foo=bar
|
||||||
- --bar=foo
|
- --bar=foo
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Test additional command
|
- it: Test additional command
|
||||||
set:
|
set:
|
||||||
@@ -194,7 +194,7 @@ tests:
|
|||||||
- "/bin/sh"
|
- "/bin/sh"
|
||||||
- "-c"
|
- "-c"
|
||||||
- "echo hello"
|
- "echo hello"
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Test custom imageRegistry and imageRepository
|
- it: Test custom imageRegistry and imageRepository
|
||||||
set:
|
set:
|
||||||
@@ -207,7 +207,7 @@ tests:
|
|||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.containers[0].image
|
path: spec.template.spec.containers[0].image
|
||||||
value: registry.example.local/path/special/athens-proxy:0.1.0
|
value: registry.example.local/path/special/athens-proxy:0.1.0
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Test custom imagePullPolicy
|
- it: Test custom imagePullPolicy
|
||||||
set:
|
set:
|
||||||
@@ -219,7 +219,7 @@ tests:
|
|||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.containers[0].imagePullPolicy
|
path: spec.template.spec.containers[0].imagePullPolicy
|
||||||
value: Always
|
value: Always
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Test custom resource limits and requests
|
- it: Test custom resource limits and requests
|
||||||
set:
|
set:
|
||||||
@@ -242,7 +242,7 @@ tests:
|
|||||||
resourceFieldRef:
|
resourceFieldRef:
|
||||||
divisor: "1"
|
divisor: "1"
|
||||||
resource: limits.cpu
|
resource: limits.cpu
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.containers[0].resources
|
path: spec.template.spec.containers[0].resources
|
||||||
value:
|
value:
|
||||||
@@ -252,7 +252,7 @@ tests:
|
|||||||
requests:
|
requests:
|
||||||
cpu: 25m
|
cpu: 25m
|
||||||
memory: 100MB
|
memory: 100MB
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Test custom securityContext
|
- it: Test custom securityContext
|
||||||
set:
|
set:
|
||||||
@@ -282,7 +282,7 @@ tests:
|
|||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Test dnsConfig
|
- it: Test dnsConfig
|
||||||
set:
|
set:
|
||||||
@@ -300,7 +300,7 @@ tests:
|
|||||||
nameservers:
|
nameservers:
|
||||||
- "8.8.8.8"
|
- "8.8.8.8"
|
||||||
- "8.8.4.4"
|
- "8.8.4.4"
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Test dnsPolicy
|
- it: Test dnsPolicy
|
||||||
set:
|
set:
|
||||||
@@ -312,7 +312,7 @@ tests:
|
|||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.dnsPolicy
|
path: spec.template.spec.dnsPolicy
|
||||||
value: ClusterFirst
|
value: ClusterFirst
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Test hostNetwork, hostname, subdomain
|
- it: Test hostNetwork, hostname, subdomain
|
||||||
set:
|
set:
|
||||||
@@ -326,15 +326,15 @@ tests:
|
|||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.hostNetwork
|
path: spec.template.spec.hostNetwork
|
||||||
value: true
|
value: true
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.hostname
|
path: spec.template.spec.hostname
|
||||||
value: pg-exporter
|
value: pg-exporter
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.subdomain
|
path: spec.template.spec.subdomain
|
||||||
value: exporters.internal
|
value: exporters.internal
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Test imagePullSecrets
|
- it: Test imagePullSecrets
|
||||||
set:
|
set:
|
||||||
@@ -350,7 +350,7 @@ tests:
|
|||||||
value:
|
value:
|
||||||
- name: my-pull-secret
|
- name: my-pull-secret
|
||||||
- name: my-special-secret
|
- name: my-special-secret
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Test nodeSelector
|
- it: Test nodeSelector
|
||||||
set:
|
set:
|
||||||
@@ -364,7 +364,7 @@ tests:
|
|||||||
path: spec.template.spec.nodeSelector
|
path: spec.template.spec.nodeSelector
|
||||||
value:
|
value:
|
||||||
foo: bar
|
foo: bar
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Test priorityClassName
|
- it: Test priorityClassName
|
||||||
set:
|
set:
|
||||||
@@ -376,7 +376,7 @@ tests:
|
|||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.priorityClassName
|
path: spec.template.spec.priorityClassName
|
||||||
value: my-priority
|
value: my-priority
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Test restartPolicy
|
- it: Test restartPolicy
|
||||||
set:
|
set:
|
||||||
@@ -388,7 +388,7 @@ tests:
|
|||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.restartPolicy
|
path: spec.template.spec.restartPolicy
|
||||||
value: Always
|
value: Always
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Test terminationGracePeriodSeconds
|
- it: Test terminationGracePeriodSeconds
|
||||||
set:
|
set:
|
||||||
@@ -400,7 +400,7 @@ tests:
|
|||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.terminationGracePeriodSeconds
|
path: spec.template.spec.terminationGracePeriodSeconds
|
||||||
value: 120
|
value: 120
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Test tolerations
|
- it: Test tolerations
|
||||||
set:
|
set:
|
||||||
@@ -420,7 +420,7 @@ tests:
|
|||||||
operator: Equal
|
operator: Equal
|
||||||
value: postgres
|
value: postgres
|
||||||
effect: NoSchedule
|
effect: NoSchedule
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Test topologySpreadConstraints
|
- it: Test topologySpreadConstraints
|
||||||
set:
|
set:
|
||||||
@@ -442,7 +442,7 @@ tests:
|
|||||||
labelSelector:
|
labelSelector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/instance: athens-proxy
|
app.kubernetes.io/instance: athens-proxy
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Test additional volumeMounts and volumes
|
- it: Test additional volumeMounts and volumes
|
||||||
set:
|
set:
|
||||||
@@ -462,4 +462,4 @@ tests:
|
|||||||
value:
|
value:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /usr/lib/athens-proxy/data
|
mountPath: /usr/lib/athens-proxy/data
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
@@ -6,7 +6,7 @@ release:
|
|||||||
name: athens-proxy-unittest
|
name: athens-proxy-unittest
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/athens-proxy/deployment.yaml
|
- templates/deployment.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Rendering default without mounted download mode config map
|
- it: Rendering default without mounted download mode config map
|
||||||
asserts:
|
asserts:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ release:
|
|||||||
name: athens-proxy-unittest
|
name: athens-proxy-unittest
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/athens-proxy/deployment.yaml
|
- templates/deployment.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Rendering default without mounted git config map
|
- it: Rendering default without mounted git config map
|
||||||
asserts:
|
asserts:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ release:
|
|||||||
name: athens-proxy-unittest
|
name: athens-proxy-unittest
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/athens-proxy/deployment.yaml
|
- templates/deployment.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Rendering default without mounted netrc secret
|
- it: Rendering default without mounted netrc secret
|
||||||
asserts:
|
asserts:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ release:
|
|||||||
name: athens-proxy-unittest
|
name: athens-proxy-unittest
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/athens-proxy/deployment.yaml
|
- templates/deployment.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Test persistent volume claim
|
- it: Test persistent volume claim
|
||||||
set:
|
set:
|
||||||
@@ -17,26 +17,26 @@ tests:
|
|||||||
content:
|
content:
|
||||||
name: ATHENS_STORAGE_TYPE
|
name: ATHENS_STORAGE_TYPE
|
||||||
value: disk
|
value: disk
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.containers[0].env
|
path: spec.template.spec.containers[0].env
|
||||||
content:
|
content:
|
||||||
name: ATHENS_DISK_STORAGE_ROOT
|
name: ATHENS_DISK_STORAGE_ROOT
|
||||||
value: /var/www/athens-proxy/data
|
value: /var/www/athens-proxy/data
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
content:
|
content:
|
||||||
name: data
|
name: data
|
||||||
mountPath: /var/www/athens-proxy/data
|
mountPath: /var/www/athens-proxy/data
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.volumes
|
path: spec.template.spec.volumes
|
||||||
content:
|
content:
|
||||||
name: data
|
name: data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: athens-proxy-unittest-data
|
claimName: athens-proxy-unittest-data
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Test existing persistent volume claim
|
- it: Test existing persistent volume claim
|
||||||
set:
|
set:
|
||||||
@@ -51,23 +51,23 @@ tests:
|
|||||||
content:
|
content:
|
||||||
name: ATHENS_STORAGE_TYPE
|
name: ATHENS_STORAGE_TYPE
|
||||||
value: disk
|
value: disk
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.containers[0].env
|
path: spec.template.spec.containers[0].env
|
||||||
content:
|
content:
|
||||||
name: ATHENS_DISK_STORAGE_ROOT
|
name: ATHENS_DISK_STORAGE_ROOT
|
||||||
value: /mnt/go-proxy/data
|
value: /mnt/go-proxy/data
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.containers[0].volumeMounts
|
path: spec.template.spec.containers[0].volumeMounts
|
||||||
content:
|
content:
|
||||||
name: data
|
name: data
|
||||||
mountPath: /mnt/go-proxy/data
|
mountPath: /mnt/go-proxy/data
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.volumes
|
path: spec.template.spec.volumes
|
||||||
content:
|
content:
|
||||||
name: data
|
name: data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: my-special-pvc
|
claimName: my-special-pvc
|
||||||
template: templates/athens-proxy/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
@@ -6,7 +6,7 @@ release:
|
|||||||
name: athens-proxy-unittest
|
name: athens-proxy-unittest
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/athens-proxy/deployment.yaml
|
- templates/deployment.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Rendering default without mounted ssh secret
|
- it: Rendering default without mounted ssh secret
|
||||||
asserts:
|
asserts:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ release:
|
|||||||
name: athens-proxy-unittest
|
name: athens-proxy-unittest
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/athens-proxy/hpa.yaml
|
- templates/hpa.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Skip rendering by default.
|
- it: Skip rendering by default.
|
||||||
asserts:
|
asserts:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ release:
|
|||||||
name: athens-proxy-unittest
|
name: athens-proxy-unittest
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/athens-proxy/ingress.yaml
|
- templates/ingress.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Skip ingress by default.
|
- it: Skip ingress by default.
|
||||||
asserts:
|
asserts:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ release:
|
|||||||
name: athens-proxy-unittest
|
name: athens-proxy-unittest
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/athens-proxy/networkPolicies.yaml
|
- templates/networkPolicies.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Skip networkPolicies in general disabled.
|
- it: Skip networkPolicies in general disabled.
|
||||||
set:
|
set:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ release:
|
|||||||
name: athens-proxy-unittest
|
name: athens-proxy-unittest
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/athens-proxy/persistentVolumeClaim.yaml
|
- templates/persistentVolumeClaim.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Rendering default
|
- it: Rendering default
|
||||||
asserts:
|
asserts:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ release:
|
|||||||
name: athens-proxy-unittest
|
name: athens-proxy-unittest
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/athens-proxy/secretEnv.yaml
|
- templates/secretEnv.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Skip rendering by using existing secret.
|
- it: Skip rendering by using existing secret.
|
||||||
set:
|
set:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ release:
|
|||||||
name: athens-proxy-unittest
|
name: athens-proxy-unittest
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/athens-proxy/secretNetRC.yaml
|
- templates/secretNetRC.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Skip rendering by default
|
- it: Skip rendering by default
|
||||||
asserts:
|
asserts:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ release:
|
|||||||
name: athens-proxy-unittest
|
name: athens-proxy-unittest
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/athens-proxy/secretSSH.yaml
|
- templates/secretSSH.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Skip rendering by using existing secret.
|
- it: Skip rendering by using existing secret.
|
||||||
set:
|
set:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ release:
|
|||||||
name: athens-proxy-unittest
|
name: athens-proxy-unittest
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/athens-proxy/serviceAccount.yaml
|
- templates/serviceAccount.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Skip rendering.
|
- it: Skip rendering.
|
||||||
set:
|
set:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ release:
|
|||||||
name: athens-proxy-unittest
|
name: athens-proxy-unittest
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/athens-proxy/serviceHTTP.yaml
|
- templates/serviceHTTP.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Skip service when disabled.
|
- it: Skip service when disabled.
|
||||||
set:
|
set:
|
||||||
|
|||||||
Reference in new issue
Block a user