mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 08:57:04 +02:00
feat(app-template): Set default nameOverride (#20)
This commit is contained in:
parent
2cf1c54473
commit
7de4ddfe94
21 changed files with 109 additions and 71 deletions
25
charts/other/app-template/tests/misc/nameoverride_test.yaml
Normal file
25
charts/other/app-template/tests/misc/nameoverride_test.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
suite: nameOverride tests
|
||||
templates:
|
||||
- common.yaml
|
||||
tests:
|
||||
- it: default name is set to release name
|
||||
asserts:
|
||||
- documentIndex: &ControllerDoc 0
|
||||
isKind:
|
||||
of: Deployment
|
||||
- documentIndex: *ControllerDoc
|
||||
equal:
|
||||
path: metadata.name
|
||||
value: RELEASE-NAME
|
||||
|
||||
- it: global.nameOverride can be set
|
||||
set:
|
||||
global.nameOverride: custom-name
|
||||
asserts:
|
||||
- documentIndex: &ControllerDoc 0
|
||||
isKind:
|
||||
of: Deployment
|
||||
- documentIndex: *ControllerDoc
|
||||
equal:
|
||||
path: metadata.name
|
||||
value: RELEASE-NAME-custom-name
|
Loading…
Add table
Add a link
Reference in a new issue