Skip to content

Commit

Permalink
fix: tests failing for class name
Browse files Browse the repository at this point in the history
  • Loading branch information
henrywhitaker3 committed Apr 9, 2024
1 parent 4dc3516 commit d2e63a5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.3.7
version: 1.3.8
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
24 changes: 13 additions & 11 deletions chart/tests/ingress_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,17 @@ tests:
- isSubset:
path: .metadata.annotations
content:
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"

- it: adds default ingress class when not set
set:
ingress:
enabled: true
asserts:
- equal:
path: .spec.ingressClassName
value: nginx

- it: adds annotations when set
set:
ingress.enabled: true
Expand All @@ -45,20 +53,14 @@ tests:
content:
bongo: bingo

- it: doesn't add ingressClassName by defaut
set:
ingress.enabled: true
asserts:
- notExists:
path: .spec.ingressClassName

- it: adds ingressClassName when set
set:
ingress.enabled: true
ingress.className: nginx
ingress:
enabled: true
className: bongo
asserts:
- exists:
path: .spec.ingressClassName
- equal:
path: .spec.ingressClassName
value: nginx
value: bongo

0 comments on commit d2e63a5

Please sign in to comment.