-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add(helm): use commonLabels in chart (#34)
* add(helm): use commonLabels in chart * Add new test file and fix `_helpers.tpl` * Bump minor number Co-authored-by: Heitor Ricardino Barros <heitorrbarros@gmail.com> * Add comment in commonLabels on values * Describe commonLabels Co-authored-by: Heitor Ricardino Barros <heitorrbarros@gmail.com> --------- Co-authored-by: Heitor Ricardino Barros <heitorrbarros@gmail.com>
- Loading branch information
1 parent
e23eef5
commit 8774ff6
Showing
4 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
deploy/helm/charts/loki-rule-operator/tests/global_test.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
suite: Resources contains commonLabels | ||
templates: | ||
- deployment.yaml | ||
- serviceaccount.yaml | ||
- crd/quero.com_lokirules.yaml | ||
- rbac/cluster_role.yaml | ||
- rbac/leader_election_role.yaml | ||
- rbac/role_bindings.yaml | ||
- rbac/lokirule_viewer_role.yaml | ||
- rbac/lokirule_editor_role.yaml | ||
tests: | ||
- it: should set commonLabels in all resources | ||
values: | ||
- ./minimal_values.yaml | ||
set: | ||
release: | ||
name: my-release | ||
commonLabels: | ||
global.label/name: my-global-label | ||
asserts: | ||
- equal: | ||
path: metadata.labels["global.label/name"] | ||
value: "my-global-label" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters