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
Extract proxy/config common functions for reuse #465
Extract proxy/config common functions for reuse #465
Conversation
Merge(source string, update interface{}) error | ||
} | ||
|
||
// MergeFunc is a function that can be used to merge in a Mux |
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 ". Implements the Merger interface."
I'm still wrapping my head around this. I'll finish reading it later today. |
comments addressed |
configSourceLock sync.RWMutex | ||
serviceConfigSources map[string]chan ServiceUpdate | ||
endpointsConfigSources map[string]chan EndpointsUpdate | ||
// NewEndpointConfig creates a new EndpointConfig. |
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.
move this comment down to the NewEndpointsConfig?
Small stuff, basically LGTM, modulo using defer ... for all of the unlocks. |
LGTM. @lavalamp want to take one last look? |
On it, ETA ~hours |
|
||
// Accessor is an interface for retrieving the current merge state. | ||
type Accessor interface { | ||
// MergedSTate returns a representation of the current merge state. |
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.
Nit: Typo s/MergedSTate/MergedState/
Extracted from proxy/config
Splits endpoint and service configuration into their own objects. Also makes the endpoint and service configuration tests correct - there was a race condition previously that meant tests were passing but not checking correct code.
LGTM |
Extract proxy/config common functions for reuse
docs: broken relative link fixes
Fix delete lb bug
Fix delete lb bug
Fix delete lb bug
Fix delete lb bug
…rry-pick-462-to-release-4.6 [release-4.6] Bug 1899406: HPA: Ignore deleted pods.
Cherry pick #465 in cloud provider azure to 1.18: Cleanup subnet in frontend IP configs
Cherry pick #465 in cloud provider azure to 1.20: Cleanup subnet in frontend IP configs
Cherry pick #465 in cloud provider azure to 1.19: Cleanup subnet in frontend IP configs
Support quorum read option
Cherry pick #465 in cloud provider azure: Cleanup subnet in frontend IP configs
Refactor proxy to use the common config. This is a prereq for #356 and the commits
have had feedback from @thockin only.
Also fix tests.