mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 08:37:03 +02:00
# Removed - Promtail add-on has been removed # Fixed - Fixed httpGet probe whitespace rendering (#76) - Fixed Secret management for ServiceAccounts (fixes #78) - Fixed code-server add-on Service rendering # Added - Added support for Gateway API Routes (#59) # Changed - Services and their ports are now assumed enabled by default - Updated `code-server` image to v4.8.3 - Updated `netshoot` image to v0.8 Signed-off-by: András Maróy <andras@maroy.hu> Signed-off-by: András Maróy <andras@maroy.hu> Co-authored-by: András Maróy <andras@maroy.hu> Co-authored-by: pando85 <pando855@gmail.com>
93 lines
2.5 KiB
YAML
93 lines
2.5 KiB
YAML
suite: route metadata
|
|
templates:
|
|
- common.yaml
|
|
tests:
|
|
- it: default metadata should pass
|
|
set:
|
|
route.main:
|
|
enabled: true
|
|
parentRefs:
|
|
- name: test
|
|
namespace: test
|
|
asserts:
|
|
- documentIndex: &routeDocument 2
|
|
isKind:
|
|
of: HTTPRoute
|
|
- documentIndex: *routeDocument
|
|
isNull:
|
|
path: metadata.annotations
|
|
- documentIndex: *routeDocument
|
|
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.1.0
|
|
|
|
- it: custom metadata should pass
|
|
set:
|
|
route.main:
|
|
enabled: true
|
|
annotations:
|
|
test_annotation: test
|
|
labels:
|
|
test_label: test
|
|
parentRefs:
|
|
- name: test
|
|
namespace: test
|
|
asserts:
|
|
- documentIndex: &routeDocument 2
|
|
isKind:
|
|
of: HTTPRoute
|
|
- documentIndex: *routeDocument
|
|
equal:
|
|
path: metadata.annotations
|
|
value:
|
|
test_annotation: test
|
|
- documentIndex: *routeDocument
|
|
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.1.0
|
|
test_label: test
|
|
|
|
- it: custom metadata with global metadata should pass
|
|
set:
|
|
global:
|
|
labels:
|
|
global_label: test
|
|
annotations:
|
|
global_annotation: test
|
|
route.main:
|
|
enabled: true
|
|
annotations:
|
|
test_annotation: test
|
|
labels:
|
|
test_label: test
|
|
parentRefs:
|
|
- name: test
|
|
namespace: test
|
|
asserts:
|
|
- documentIndex: &routeDocument 2
|
|
isKind:
|
|
of: HTTPRoute
|
|
- documentIndex: *routeDocument
|
|
equal:
|
|
path: metadata.annotations
|
|
value:
|
|
global_annotation: test
|
|
test_annotation: test
|
|
- documentIndex: *routeDocument
|
|
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.1.0
|
|
test_label: test
|