Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

master and agent kubelet config #1954

Merged
merged 6 commits into from
Dec 20, 2017
Merged

master and agent kubelet config #1954

merged 6 commits into from
Dec 20, 2017

Conversation

CecileRobertMichon
Copy link
Contributor

What this PR does / why we need it: Adds ability to override kubelet config with agent and master specific kubelet configs. This is needed to be able to disable cloud provider on agent kubelets.

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #1917

Special notes for your reviewer:

Release note:

@ghost ghost added the in progress label Dec 20, 2017
@@ -873,8 +873,14 @@ func (t *TemplateGenerator) getTemplateFuncMap(cs *api.ContainerService) templat
}
return buf.String()
},
"GetKubeletConfigKeyVals": func() string {
"GetKubeletConfigKeyVals": func(profile *api.AgentPoolProfile) string {
Copy link
Member

Choose a reason for hiding this comment

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

I think we should change the function arg here to a *api.KubernetesConfig, and just make this a simple string convenience function (look for a KubeletConfig of type map[string]string, and then concatenate all the key/vals together).

We then move all the "what type of KubernetesConfig are you?" logic to the caller, and not inside the function.

What am I missing that would suggest we should do it this way instead?

Copy link
Member

@jackfrancis jackfrancis left a comment

Choose a reason for hiding this comment

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

lgtm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to disable cloud provider on kubelet
2 participants