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

Extract proxy/config common functions for reuse #465

Merged

Conversation

smarterclayton
Copy link
Contributor

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.

Merge(source string, update interface{}) error
}

// MergeFunc is a function that can be used to merge in a Mux
Copy link
Member

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."

@lavalamp
Copy link
Member

I'm still wrapping my head around this. I'll finish reading it later today.

@smarterclayton
Copy link
Contributor Author

comments addressed

configSourceLock sync.RWMutex
serviceConfigSources map[string]chan ServiceUpdate
endpointsConfigSources map[string]chan EndpointsUpdate
// NewEndpointConfig creates a new EndpointConfig.
Copy link
Contributor

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?

@brendandburns
Copy link
Contributor

Small stuff, basically LGTM, modulo using defer ... for all of the unlocks.

@brendandburns
Copy link
Contributor

LGTM. @lavalamp want to take one last look?

@lavalamp lavalamp self-assigned this Jul 16, 2014
@lavalamp
Copy link
Member

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.
Copy link
Member

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.
@lavalamp
Copy link
Member

LGTM

smarterclayton added a commit that referenced this pull request Jul 16, 2014
Extract proxy/config common functions for reuse
@smarterclayton smarterclayton merged commit 17053f5 into kubernetes:master Jul 16, 2014
@smarterclayton smarterclayton deleted the simplify_config_for_reuse branch February 11, 2015 02:21
vishh pushed a commit to vishh/kubernetes that referenced this pull request Apr 6, 2016
keontang pushed a commit to keontang/kubernetes that referenced this pull request May 14, 2016
keontang pushed a commit to keontang/kubernetes that referenced this pull request Jul 1, 2016
mqliang pushed a commit to mqliang/kubernetes that referenced this pull request Dec 8, 2016
mqliang pushed a commit to mqliang/kubernetes that referenced this pull request Mar 3, 2017
sjenning pushed a commit to sjenning/kubernetes that referenced this pull request Dec 2, 2020
…rry-pick-462-to-release-4.6

[release-4.6] Bug 1899406: HPA: Ignore deleted pods.
k8s-ci-robot added a commit that referenced this pull request Feb 4, 2021
Cherry pick #465 in cloud provider azure to 1.18: Cleanup subnet in frontend IP configs
k8s-ci-robot added a commit that referenced this pull request Feb 4, 2021
Cherry pick #465 in cloud provider azure to 1.20: Cleanup subnet in frontend IP configs
k8s-ci-robot added a commit that referenced this pull request Feb 4, 2021
Cherry pick #465 in cloud provider azure to 1.19: Cleanup subnet in frontend IP configs
b3atlesfan pushed a commit to b3atlesfan/kubernetes that referenced this pull request Feb 5, 2021
k8s-ci-robot added a commit that referenced this pull request Feb 18, 2021
Cherry pick #465 in cloud provider azure: Cleanup subnet in frontend IP configs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants