-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support WAN Address Annotations #3420
Conversation
The original story for this wanted the values to be set on the GatewayClassConfig by extending its configuration. Talking it over with Nate and Melisa, we decided to add the annotations directly on the Mesh Gateway CRD and patch those through. That way, we don't get mesh gateway specific config on a "general gateway" configuration object. Also, we aren't sure if we will need these annotations in V2 and if we don't, this model is a bit easier to remove. |
|
||
# Validation | ||
# For meshGateway.wanAddress, static must be set if source is "Static" | ||
{{if (and (eq .Values.meshGateway.wanAddress.source "Static") (eq .Values.meshGateway.wanAddress.static ""))}}{{fail ".meshGateway.wanAddress.static must be set to a value if .meshGateway.wanAddress.source is Static"}}{{ end }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added validation here that will block the invalid config of a "Static" address with no address set.
d8d6789
to
5ef1cde
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! nice work!
@@ -2,18 +2,20 @@ | |||
|
|||
load _helpers | |||
|
|||
target=templates/gateway-resources-configmap.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
* Add wanAddress configuration to the configmap * Set the annotations on the mesh gateway CRD * Patch through the annotations from the Mesh Gateway * Fix Job -> ConfigMap * Use JSON to compare annotations * Add annotations to deployment test * Fix checking annotations in helm tests
* Add wanAddress configuration to the configmap * Set the annotations on the mesh gateway CRD * Patch through the annotations from the Mesh Gateway * Fix Job -> ConfigMap * Use JSON to compare annotations * Add annotations to deployment test * Fix checking annotations in helm tests
Changes proposed in this PR
How I've tested this PR
I added BATs and I ran a deployment with the following configuration:
Which produced a mesh gateway with the correct configuration.
How I expect reviewers to test this PR
Checklist