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

refactor: use go template for kubelet systemd config #2320

Merged
merged 2 commits into from Nov 19, 2019

Conversation

jackfrancis
Copy link
Member

Reason for Change:

Move kubelet systemd configuration to go templating to be more maintainable, flexible, and agile.

Issue Fixed:

Requirements:

Notes:

@codecov
Copy link

codecov bot commented Nov 15, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@93a8cf8). Click here to learn what that means.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             master    #2320   +/-   ##
=========================================
  Coverage          ?   71.73%           
=========================================
  Files             ?      142           
  Lines             ?    24993           
  Branches          ?        0           
=========================================
  Hits              ?    17928           
  Misses            ?     5934           
  Partials          ?     1131

@jackfrancis jackfrancis changed the title [WIP] refactor: use go template for kubelet systemd config refactor: use go template for kubelet systemd config Nov 15, 2019
Copy link
Member

@mboersma mboersma left a comment

Choose a reason for hiding this comment

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

/lgtm

KUBELET_REGISTER_NODE=--register-node=true
KUBELET_REGISTER_WITH_TAINTS=--register-with-taints=node-role.kubernetes.io/master=true:NoSchedule
{{end}}
{{else}}
KUBELET_REGISTER_SCHEDULABLE={{WrapAsVariable "registerSchedulable"}}
Copy link
Member

Choose a reason for hiding this comment

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

Was this cruft? I don't see it referenced anywhere else.

@@ -367,13 +362,9 @@ MASTER_CONTAINER_ADDONS_PLACEHOLDER
{{if IsAzureStackCloud }}
AZURE_ENVIRONMENT_FILEPATH=/etc/kubernetes/azurestackcloud.json
{{end}}
{{if IsKubernetesVersionGe "1.6.0"}}
Copy link
Member

Choose a reason for hiding this comment

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

K8s 1.6.0 was like a hundred years ago.

@acs-bot acs-bot added the lgtm label Nov 19, 2019
@acs-bot acs-bot merged commit 8f4161b into Azure:master Nov 19, 2019
@acs-bot
Copy link

acs-bot commented Nov 19, 2019

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jackfrancis, mboersma

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [jackfrancis,mboersma]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jackfrancis jackfrancis added this to the v0.45.0 milestone Dec 16, 2019
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.

None yet

3 participants