You've already forked helm-gitea
fix(deployment): avoid duplicated nodeSelector #980
This commit is contained in:
@@ -29,6 +29,24 @@ tests:
|
||||
path: spec.template.metadata.labels
|
||||
content:
|
||||
hello: world
|
||||
- it: nodeSelector is undefined
|
||||
asserts:
|
||||
- notExists:
|
||||
path: spec.template.spec.nodeSelector
|
||||
template: templates/gitea/deployment.yaml
|
||||
- it: nodeSelector is defined
|
||||
set:
|
||||
nodeSelector:
|
||||
foo: bar
|
||||
bar: foo
|
||||
asserts:
|
||||
- isSubset:
|
||||
path: spec.template.spec.nodeSelector
|
||||
content:
|
||||
foo: bar
|
||||
bar: foo
|
||||
template: templates/gitea/deployment.yaml
|
||||
|
||||
- it: "injects TMP_EXISTING_ENVS_FILE as environment variable to 'init-app-ini' init container"
|
||||
template: templates/gitea/deployment.yaml
|
||||
asserts:
|
||||
@@ -92,4 +110,4 @@ tests:
|
||||
value: "/usr/sbinx"
|
||||
- equal:
|
||||
path: spec.template.spec.initContainers[*].volumeMounts[?(@.name=="config")].mountPath
|
||||
value: "/usr/sbinx"
|
||||
value: "/usr/sbinx"
|
||||
Reference in New Issue
Block a user