forked from metal-stack/gardener-extension-dns-powerdns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.go
22 lines (18 loc) · 1001 Bytes
/
options.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Gardener contributors
// SPDX-FileCopyrightText: 2024 metal-stack Authors
//
// SPDX-License-Identifier: Apache-2.0
package cmd
import (
controllercmd "github.com/gardener/gardener/extensions/pkg/controller/cmd"
extensionsdnsrecordcontroller "github.com/gardener/gardener/extensions/pkg/controller/dnsrecord"
extensionsheartbeatcontroller "github.com/gardener/gardener/extensions/pkg/controller/heartbeat"
dnsrecordcontroller "github.com/avarei/gardener-extension-dns-rfc2136/pkg/controller/dnsrecord"
)
// ControllerSwitchOptions are the controllercmd.SwitchOptions for the provider controllers.
func ControllerSwitchOptions() *controllercmd.SwitchOptions {
return controllercmd.NewSwitchOptions(
controllercmd.Switch(extensionsdnsrecordcontroller.ControllerName, dnsrecordcontroller.AddToManager),
controllercmd.Switch(extensionsheartbeatcontroller.ControllerName, extensionsheartbeatcontroller.AddToManager),
)
}