mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 17:07:04 +02:00
* feat(common): omit replicas field in Deployment if null is given (#134) * feat(common): Add cron job backoff limit (#137) * feat(common): add hostPID and hostIPC (#140) Signed-off-by: Maurits <75321636+maurits-funda@users.noreply.github.com> Signed-off-by: Gabe Cook <gabe565@gmail.com> Signed-off-by: Angel Nunez Mencias <git@angelnu.com> Co-authored-by: Maurits <75321636+maurits-funda@users.noreply.github.com> Co-authored-by: Gabe Cook <gabe565@gmail.com> Co-authored-by: Angel Nunez Mencias <git@angelnu.com>
83 lines
2.3 KiB
YAML
83 lines
2.3 KiB
YAML
suite: ingress metadata
|
|
templates:
|
|
- common.yaml
|
|
tests:
|
|
- it: default metadata should pass
|
|
set:
|
|
ingress.main.enabled: true
|
|
asserts:
|
|
- documentIndex: &IngressDocument 2
|
|
isKind:
|
|
of: Ingress
|
|
- documentIndex: *IngressDocument
|
|
isNull:
|
|
path: metadata.annotations
|
|
- documentIndex: *IngressDocument
|
|
equal:
|
|
path: metadata.labels
|
|
value:
|
|
app.kubernetes.io/instance: RELEASE-NAME
|
|
app.kubernetes.io/managed-by: Helm
|
|
app.kubernetes.io/name: RELEASE-NAME
|
|
helm.sh/chart: app-template-1.5.0
|
|
|
|
- it: custom metadata should pass
|
|
set:
|
|
ingress.main:
|
|
enabled: true
|
|
annotations:
|
|
test_annotation: test
|
|
labels:
|
|
test_label: test
|
|
asserts:
|
|
- documentIndex: &IngressDocument 2
|
|
isKind:
|
|
of: Ingress
|
|
- documentIndex: *IngressDocument
|
|
equal:
|
|
path: metadata.annotations
|
|
value:
|
|
test_annotation: test
|
|
- documentIndex: *IngressDocument
|
|
equal:
|
|
path: metadata.labels
|
|
value:
|
|
app.kubernetes.io/instance: RELEASE-NAME
|
|
app.kubernetes.io/managed-by: Helm
|
|
app.kubernetes.io/name: RELEASE-NAME
|
|
helm.sh/chart: app-template-1.5.0
|
|
test_label: test
|
|
|
|
- it: custom metadata with global metadata should pass
|
|
set:
|
|
global:
|
|
labels:
|
|
global_label: test
|
|
annotations:
|
|
global_annotation: test
|
|
ingress.main:
|
|
enabled: true
|
|
annotations:
|
|
test_annotation: test
|
|
labels:
|
|
test_label: test
|
|
asserts:
|
|
- documentIndex: &IngressDocument 2
|
|
isKind:
|
|
of: Ingress
|
|
- documentIndex: *IngressDocument
|
|
equal:
|
|
path: metadata.annotations
|
|
value:
|
|
global_annotation: test
|
|
test_annotation: test
|
|
- documentIndex: *IngressDocument
|
|
equal:
|
|
path: metadata.labels
|
|
value:
|
|
app.kubernetes.io/instance: RELEASE-NAME
|
|
app.kubernetes.io/managed-by: Helm
|
|
app.kubernetes.io/name: RELEASE-NAME
|
|
global_label: test
|
|
helm.sh/chart: app-template-1.5.0
|
|
test_label: test
|