Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
aws: Add a knob to disable self-hosted kubelet
Browse files Browse the repository at this point in the history
This commit adds a boolean variable to controller config called
`disable_self_hosted_kubelet`.

Signed-off-by: Suraj Deshmukh <suraj@kinvolk.io>
  • Loading branch information
surajssd committed May 15, 2020
1 parent 07fe3ca commit 73ebf14
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ module "bootkube" {
enable_aggregation = var.enable_aggregation

certs_validity_period_hours = var.certs_validity_period_hours

# Disable the self hosted kubelet
disable_self_hosted_kubelet = var.disable_self_hosted_kubelet
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ variable "enable_aggregation" {
default = true
}

variable "disable_self_hosted_kubelet" {
description = "Disable the self hosted kubelet installed by default"
type = bool
}

# Certificates

variable "certs_validity_period_hours" {
Expand Down
36 changes: 18 additions & 18 deletions pkg/assets/generated_assets.go

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pkg/platform/aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ type config struct {
EnableReporting bool `hcl:"enable_reporting,optional"`
CertsValidityPeriodHours int `hcl:"certs_validity_period_hours,optional"`
WorkerPools []workerPool `hcl:"worker_pool,block"`
DisableSelfHostedKubelet bool `hcl:"disable_self_hosted_kubelet,optional"`
}

// init registers aws as a platform
Expand Down
2 changes: 2 additions & 0 deletions pkg/platform/aws/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ module "aws-{{.Config.ClusterName}}" {
{{- if .Config.CertsValidityPeriodHours }}
certs_validity_period_hours = {{.Config.CertsValidityPeriodHours}}
{{- end }}
disable_self_hosted_kubelet = {{ .Config.DisableSelfHostedKubelet }}
}
{{ range $index, $pool := .Config.WorkerPools }}
Expand Down

0 comments on commit 73ebf14

Please sign in to comment.