Skip to content

Commit

Permalink
Set UseGardenerNodeAgent option based on gardenlet feature gate
Browse files Browse the repository at this point in the history
  • Loading branch information
rfranzke committed Oct 26, 2023
1 parent 25d36bb commit e0099be
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions charts/os-metal/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ spec:
- --heartbeat-renew-interval-seconds={{ .Values.controllers.heartbeat.renewIntervalSeconds }}
- --disable-controllers={{ .Values.disableControllers | join "," }}
- --ignore-operation-annotation={{ .Values.controllers.ignoreOperationAnnotation }}
{{- if .Values.gardener.gardenlet.featureGates.UseGardenerNodeAgent }}
- --gardenlet-uses-gardener-node-agent={{ .Values.gardener.gardenlet.featureGates.UseGardenerNodeAgent }}
{{- end }}
env:
- name: LEADER_ELECTION_NAMESPACE
valueFrom:
Expand Down
4 changes: 4 additions & 0 deletions charts/os-metal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ controllers:
renewIntervalSeconds: 30

disableControllers: []

gardener:
gardenlet:
featureGates: {}
3 changes: 3 additions & 0 deletions cmd/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ func NewControllerCommand(ctx context.Context) *cobra.Command {
heartbeatCtrlOpts.Completed().Apply(&heartbeat.DefaultAddOptions)

reconcileOpts.Completed().Apply(&operatingsystemconfig.DefaultAddOptions.IgnoreOperationAnnotation)
// TODO(rfranzke): Remove the UseGardenerNodeAgent fields as soon as the general options no longer support
// the GardenletUsesGardenerNodeAgent field.
operatingsystemconfig.DefaultAddOptions.UseGardenerNodeAgent = generalOpts.Completed().GardenletUsesGardenerNodeAgent

if err := controllerSwitches.Completed().AddToManager(ctx, mgr); err != nil {
return fmt.Errorf("could not add controller to manager: %w", err)
Expand Down
2 changes: 1 addition & 1 deletion example/controller-registration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata: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