generated from cloudoperators/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
webhooks.go
22 lines (18 loc) · 908 Bytes
/
webhooks.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 Greenhouse contributors
// SPDX-License-Identifier: Apache-2.0
package main
import (
ctrl "sigs.k8s.io/controller-runtime"
"github.com/cloudoperators/greenhouse/pkg/admission"
)
var knownWebhooks = map[string]func(mgr ctrl.Manager) error{
"cluster": admission.SetupClusterWebhookWithManager,
"secrets": admission.SetupSecretWebhookWithManager,
"organization": admission.SetupOrganizationWebhookWithManager,
"pluginDefinition": admission.SetupPluginDefinitionWebhookWithManager,
"plugin": admission.SetupPluginWebhookWithManager,
"pluginPreset": admission.SetupPluginPresetWebhookWithManager,
"teamrole": admission.SetupTeamRoleWebhookWithManager,
"teamrolebinding": admission.SetupTeamRoleBindingWebhookWithManager,
"team": admission.SetupTeamWebhookWithManager,
}