mirror of
https://github.com/truenas/charts.git
synced 2026-06-17 07:27:44 +08:00
add some more tests
This commit is contained in:
57
library/common-test/ci/configmap-values.yaml
Normal file
57
library/common-test/ci/configmap-values.yaml
Normal file
@@ -0,0 +1,57 @@
|
||||
|
||||
|
||||
image:
|
||||
repository: traefik/whoami
|
||||
pullPolicy: IfNotPresent
|
||||
tag: latest
|
||||
|
||||
service:
|
||||
main:
|
||||
ports:
|
||||
main:
|
||||
protocol: HTTP
|
||||
port: 8080
|
||||
|
||||
args:
|
||||
- --port
|
||||
- "8080"
|
||||
|
||||
probes:
|
||||
liveness:
|
||||
enabled: true
|
||||
readiness:
|
||||
enabled: true
|
||||
startup:
|
||||
enabled: true
|
||||
|
||||
k1: value1
|
||||
k2: 80
|
||||
k3: pair
|
||||
k4: value2
|
||||
k5: 81
|
||||
k6: false
|
||||
configmap:
|
||||
envparsetest:
|
||||
enabled: true
|
||||
parseAsEnv: true
|
||||
content:
|
||||
key1: 123
|
||||
key2: value2
|
||||
kvtest:
|
||||
enabled: true
|
||||
content:
|
||||
key: "{{ .Values.k6 }}"
|
||||
|
||||
filetest:
|
||||
enabled: true
|
||||
content:
|
||||
nginx.conf2: |
|
||||
alias {{ .Values.k4 }}
|
||||
listen {{ .Values.k5 }}
|
||||
function {
|
||||
# some json
|
||||
"key": {
|
||||
"key2": "value",
|
||||
"key3": "value2"
|
||||
}
|
||||
}
|
||||
40
library/common-test/ci/jobs-cron-values.yaml
Normal file
40
library/common-test/ci/jobs-cron-values.yaml
Normal file
@@ -0,0 +1,40 @@
|
||||
image:
|
||||
repository: traefik/whoami
|
||||
pullPolicy: IfNotPresent
|
||||
tag: latest
|
||||
|
||||
service:
|
||||
main:
|
||||
ports:
|
||||
main:
|
||||
protocol: HTTP
|
||||
port: 8080
|
||||
|
||||
args:
|
||||
- --port
|
||||
- "8080"
|
||||
|
||||
probes:
|
||||
liveness:
|
||||
enabled: true
|
||||
readiness:
|
||||
enabled: true
|
||||
startup:
|
||||
enabled: true
|
||||
|
||||
jobs:
|
||||
testjob:
|
||||
enabled: true
|
||||
podSpec:
|
||||
containers:
|
||||
main:
|
||||
imageSelector: image
|
||||
testchronjob:
|
||||
enabled: true
|
||||
cron:
|
||||
enabled: true
|
||||
schedule: "* * * * *"
|
||||
podSpec:
|
||||
containers:
|
||||
main:
|
||||
imageSelector: image
|
||||
57
library/common-test/ci/secrets-values.yaml
Normal file
57
library/common-test/ci/secrets-values.yaml
Normal file
@@ -0,0 +1,57 @@
|
||||
|
||||
|
||||
image:
|
||||
repository: traefik/whoami
|
||||
pullPolicy: IfNotPresent
|
||||
tag: latest
|
||||
|
||||
service:
|
||||
main:
|
||||
ports:
|
||||
main:
|
||||
protocol: HTTP
|
||||
port: 8080
|
||||
|
||||
args:
|
||||
- --port
|
||||
- "8080"
|
||||
|
||||
probes:
|
||||
liveness:
|
||||
enabled: true
|
||||
readiness:
|
||||
enabled: true
|
||||
startup:
|
||||
enabled: true
|
||||
|
||||
k1: value1
|
||||
k2: 80
|
||||
k3: pair
|
||||
k4: value2
|
||||
k5: 81
|
||||
k6: false
|
||||
secret:
|
||||
envparsetest:
|
||||
enabled: true
|
||||
parseAsEnv: true
|
||||
content:
|
||||
key1: 123
|
||||
key2: value2
|
||||
kvtest:
|
||||
enabled: true
|
||||
content:
|
||||
key: "{{ .Values.k6 }}"
|
||||
|
||||
filetest:
|
||||
enabled: true
|
||||
content:
|
||||
nginx.conf2: |
|
||||
alias {{ .Values.k4 }}
|
||||
listen {{ .Values.k5 }}
|
||||
function {
|
||||
# some json
|
||||
"key": {
|
||||
"key2": "value",
|
||||
"key3": "value2"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user