Skip to content

Commit

Permalink
Disable node-init for cilium. (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 authored Jul 19, 2023
1 parent 8c27082 commit 13221e8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/internal/shoot-control-plane/templates/node-init.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.nodeInit.enabled }}
apiVersion: v1
kind: ServiceAccount
metadata:
Expand Down Expand Up @@ -100,3 +101,4 @@ spec:
operator: Exists
- effect: NoExecute
operator: Exists
{{- end }}
3 changes: 3 additions & 0 deletions charts/internal/shoot-control-plane/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ duros:
clusterAudit:
enabled: false

nodeInit:
enabled: true

restrictEgress:
enabled: false
apiServerIngressDomain: api.kube-apiserver
Expand Down
8 changes: 8 additions & 0 deletions pkg/controller/controlplane/valuesprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,13 @@ func (vp *valuesProvider) getControlPlaneShootChartValues(ctx context.Context, m
clusterAuditValues["enabled"] = true
}

nodeInitValues := map[string]any{
"enabled": true,
}
if cluster.Shoot.Spec.Networking.Type == "cilium" {
nodeInitValues["enabled"] = false
}

apiserverIPs := []string{}
if !extensionscontroller.IsHibernated(cluster) {
// get apiserver ip adresses from external dns entry
Expand Down Expand Up @@ -683,6 +690,7 @@ func (vp *valuesProvider) getControlPlaneShootChartValues(ctx context.Context, m
"firewallSpec": fwSpec,
"duros": durosValues,
"clusterAudit": clusterAuditValues,
"nodeInit": nodeInitValues,
"restrictEgress": map[string]any{
"enabled": cpConfig.FeatureGates.RestrictEgress != nil && *cpConfig.FeatureGates.RestrictEgress,
"apiServerIngressDomain": "api." + *cluster.Shoot.Spec.DNS.Domain,
Expand Down

0 comments on commit 13221e8

Please sign in to comment.