-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
nealyip
committed
Aug 9, 2024
1 parent
1c9c17f
commit 7d829d6
Showing
8 changed files
with
124 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
apiVersion: v1 | ||
description: Helm chart with simple deployment/service template | ||
name: simple | ||
version: 0.20.1 | ||
version: 0.21.0 | ||
appVersion: 0.0.1 | ||
tillerVersion: ">=2.14.3" |
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
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,47 @@ | ||
suite: Ingress Test | ||
templates: | ||
- ingress.yaml | ||
tests: | ||
- it: should render alb with a cost tag annotation | ||
values: | ||
- ./values/simple/ingress_alb.yaml | ||
asserts: | ||
- isSubset: | ||
path: metadata.annotations | ||
content: | ||
kubernetes.io/ingress.class: alb | ||
alb.ingress.kubernetes.io/tags: businessid=00123 | ||
|
||
- it: should render alb multiple ingress with a cost tag annotation with | ||
values: | ||
- ./values/simple/ingress_alb_multiple.yaml | ||
asserts: | ||
- isSubset: | ||
path: metadata.annotations | ||
content: | ||
kubernetes.io/ingress.class: alb | ||
alb.ingress.kubernetes.io/tags: businessid=00123 | ||
|
||
- it: should keep original alb.ingress.kubernetes.io/tags from values | ||
values: | ||
- ./values/simple/ingress_alb.yaml | ||
set: | ||
ingress: | ||
annotations: | ||
alb.ingress.kubernetes.io/tags: businessid=00456 | ||
asserts: | ||
- isSubset: | ||
path: metadata.annotations | ||
content: | ||
kubernetes.io/ingress.class: alb | ||
alb.ingress.kubernetes.io/tags: businessid=00456 | ||
|
||
- it: should not render alb with a cost tag annotation | ||
values: | ||
- ./values/simple/ingress_nginx.yaml | ||
asserts: | ||
- isNotSubset: | ||
path: metadata.annotations | ||
content: | ||
kubernetes.io/ingress.class: alb | ||
alb.ingress.kubernetes.io/tags: businessid=00123 |
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,20 @@ | ||
businessid: "00123" | ||
deployment: | ||
containers: | ||
app: | ||
image: | ||
repository: nginx | ||
tag: latest | ||
ingress: | ||
annotations: | ||
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}]' | ||
alb.ingress.kubernetes.io/scheme: internet-facing | ||
kubernetes.io/ingress.class: alb | ||
rules: | ||
- http: | ||
paths: | ||
- backend: | ||
serviceName: app | ||
servicePort: use-annotation | ||
path: /* | ||
name: app |
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,22 @@ | ||
businessid: "00123" | ||
deployment: | ||
containers: | ||
app: | ||
image: | ||
repository: nginx | ||
tag: latest | ||
EnableMutilpleIngress: true | ||
ingress: | ||
nginx: | ||
annotations: | ||
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}]' | ||
alb.ingress.kubernetes.io/scheme: internet-facing | ||
kubernetes.io/ingress.class: alb | ||
rules: | ||
- http: | ||
paths: | ||
- backend: | ||
serviceName: app | ||
servicePort: use-annotation | ||
path: /* | ||
name: app |
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,18 @@ | ||
businessid: "00123" | ||
deployment: | ||
containers: | ||
app: | ||
image: | ||
repository: nginx | ||
tag: latest | ||
ingress: | ||
annotations: | ||
nginx.ingress.kubernetes.io/backend-protocol: HTTP | ||
rules: | ||
- http: | ||
paths: | ||
- backend: | ||
serviceName: app | ||
servicePort: use-annotation | ||
path: /* | ||
name: app |