-
Notifications
You must be signed in to change notification settings - Fork 764
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(certificateResolvers)!: 💥 🐛 use same syntax in Chart and in Traefik
- Loading branch information
1 parent
ac83953
commit 016822d
Showing
9 changed files
with
100 additions
and
36 deletions.
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
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
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 |
---|---|---|
|
@@ -330,15 +330,16 @@ tests: | |
content: "--experimental.kubernetesgateway" | ||
- it: should have the certificate resolver options applied | ||
set: | ||
certResolvers: | ||
certificatesResolvers: | ||
myAcmeResolver: | ||
email: [email protected] | ||
dnsChallenge: | ||
provider: myProvider | ||
resolvers: | ||
- 1.1.1.1 | ||
- 8.8.8.8 | ||
tlsChallenge: true | ||
acme: | ||
email: [email protected] | ||
dnsChallenge: | ||
provider: myProvider | ||
resolvers: | ||
- 1.1.1.1 | ||
- 8.8.8.8 | ||
tlsChallenge: true | ||
asserts: | ||
- contains: | ||
path: spec.template.spec.containers[0].args | ||
|
@@ -352,6 +353,38 @@ tests: | |
- contains: | ||
path: spec.template.spec.containers[0].args | ||
content: "--certificatesresolvers.myAcmeResolver.acme.tlsChallenge=true" | ||
|
||
- it: should have the distributed acme resolver options applied | ||
set: | ||
certificatesResolvers: | ||
my-resolver: | ||
distributedAcme: | ||
email: [email protected] | ||
storage: | ||
kubernetes: true | ||
httpChallenge: | ||
entrypoint: "web" | ||
asserts: | ||
- contains: | ||
path: spec.template.spec.containers[0].args | ||
content: "--certificatesresolvers.my-resolver.distributedAcme.email=email@example.com" | ||
- contains: | ||
path: spec.template.spec.containers[0].args | ||
content: "--certificatesresolvers.my-resolver.distributedAcme.storage.kubernetes=true" | ||
- contains: | ||
path: spec.template.spec.containers[0].args | ||
content: "--certificatesresolvers.my-resolver.distributedAcme.httpChallenge.entrypoint=web" | ||
|
||
- it: should have the tailscale resolver options applied | ||
set: | ||
certificatesResolvers: | ||
my-resolver: | ||
tailscale: true | ||
asserts: | ||
- contains: | ||
path: spec.template.spec.containers[0].args | ||
content: "--certificatesresolvers.my-resolver.tailscale=true" | ||
|
||
- it: should have prometheus annotations with specified values | ||
set: | ||
ports: | ||
|
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 |
---|---|---|
|
@@ -87,3 +87,18 @@ tests: | |
asserts: | ||
- failedTemplate: | ||
errorMessage: "ERROR: Kubernetes Gateway provider requires ClusterRole. RBAC cannot be namespaced." | ||
- it: should fail when trying to use certResolvers | ||
set: | ||
certResolvers: | ||
myAcmeResolver: | ||
email: [email protected] | ||
dnsChallenge: | ||
provider: myProvider | ||
resolvers: | ||
- 1.1.1.1 | ||
- 8.8.8.8 | ||
tlsChallenge: true | ||
asserts: | ||
- failedTemplate: | ||
errorMessage: "ERROR: certResolvers setting has been removed. See v33.0.0 Changelog." | ||
|
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