mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 17:07:04 +02:00
* fix(common): Increase CronJob pod annotations indent from 10 to 12 (#118) * feat(common): Add tests for CronJob jobTemplate metadata * feat(common): Update netshoot image * feat(common): Update code-server image * feat(ci): add workflow to create oci artifact (#38) * ci: Update release workflows --------- Signed-off-by: Tyler Witlin <tyler@codezero.io> Co-authored-by: Gabe Cook <gabe565@gmail.com> Co-authored-by: Tyler Witlin <45468117+coolguy1771@users.noreply.github.com>
93 lines
2.5 KiB
YAML
93 lines
2.5 KiB
YAML
suite: configmap metadata
|
|
templates:
|
|
- common.yaml
|
|
tests:
|
|
- it: default metadata should pass
|
|
set:
|
|
configMaps:
|
|
config:
|
|
enabled: true
|
|
asserts:
|
|
- hasDocuments:
|
|
count: 3
|
|
- documentIndex: &ConfigmapDocument 2
|
|
isKind:
|
|
of: ConfigMap
|
|
- documentIndex: *ConfigmapDocument
|
|
isNull:
|
|
path: metadata.annotations
|
|
- documentIndex: *ConfigmapDocument
|
|
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.3.2
|
|
|
|
- it: custom metadata should pass
|
|
set:
|
|
configMaps:
|
|
config:
|
|
enabled: true
|
|
annotations:
|
|
test_annotation: test
|
|
labels:
|
|
test_label: test
|
|
asserts:
|
|
- hasDocuments:
|
|
count: 3
|
|
- documentIndex: &ConfigmapDocument 2
|
|
isKind:
|
|
of: ConfigMap
|
|
- documentIndex: *ConfigmapDocument
|
|
equal:
|
|
path: metadata.annotations
|
|
value:
|
|
test_annotation: test
|
|
- documentIndex: *ConfigmapDocument
|
|
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.3.2
|
|
test_label: test
|
|
|
|
- it: custom metadata with global metadata should pass
|
|
set:
|
|
global:
|
|
labels:
|
|
global_label: test
|
|
annotations:
|
|
global_annotation: test
|
|
configMaps:
|
|
config:
|
|
enabled: true
|
|
annotations:
|
|
test_annotation: test
|
|
labels:
|
|
test_label: test
|
|
asserts:
|
|
- hasDocuments:
|
|
count: 3
|
|
- documentIndex: &ConfigmapDocument 2
|
|
isKind:
|
|
of: ConfigMap
|
|
- documentIndex: *ConfigmapDocument
|
|
equal:
|
|
path: metadata.annotations
|
|
value:
|
|
global_annotation: test
|
|
test_annotation: test
|
|
- documentIndex: *ConfigmapDocument
|
|
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.3.2
|
|
test_label: test
|