Skip to content
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

Add util functions for backendConfig annotation #247

Merged
merged 1 commit into from
May 4, 2018

Conversation

MrHohn
Copy link
Member

@MrHohn MrHohn commented May 3, 2018

/assign @nicksardo @bowei

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 3, 2018
@nicksardo
Copy link
Contributor

LGTM, will let bowei@ verify annotation value structure is as desired.

@MrHohn MrHohn force-pushed the backend-config-annotation branch from e9cdf50 to 70eedf1 Compare May 4, 2018 04:03
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 4, 2018
@MrHohn
Copy link
Member Author

MrHohn commented May 4, 2018

Revised and added ports as a top level field per discussion with @bowei. PTAL, thanks!

@MrHohn MrHohn force-pushed the backend-config-annotation branch 2 times, most recently from 2ed904d to 75698ea Compare May 4, 2018 18:15
@MrHohn
Copy link
Member Author

MrHohn commented May 4, 2018

Updated to add one more default field.

@@ -40,6 +40,15 @@ const (
// 3. Adding this annotation on ingress.
NetworkEndpointGroupAlphaAnnotation = "alpha.cloud.google.com/load-balancer-neg"

// BackendConfigKey is a stringified JSON with two fields:
// - "ports": a map of port names to backendConfig names
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

port names or port numbers? Or just port names?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, changed to "port names or port numbers".

@MrHohn MrHohn force-pushed the backend-config-annotation branch from 75698ea to f5bd393 Compare May 4, 2018 19:02
@nicksardo
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 4, 2018
@nicksardo nicksardo merged commit c275862 into kubernetes:master May 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants