Documentation
¶
Index ¶
- Constants
- func Register(plugins *admission.Plugins)
- func SetClusterAnnotation(obj metav1.Object, clusterName logicalcluster.Name) (undoFn func())
- type Plugin
- func (p *Plugin) SetKcpInformers(local, global kcpinformers.SharedInformerFactory)
- func (p *Plugin) SetKubeClusterClient(client kcpkubernetesclientset.ClusterInterface)
- func (p *Plugin) SetKubeInformers(local, global kcpkubernetesinformers.SharedInformerFactory)
- func (p *Plugin) Validate(ctx context.Context, attr admission.Attributes, o admission.ObjectInterfaces) error
- func (p *Plugin) ValidateInitialization() error
Constants ¶
View Source
const (
PluginName = "apis.kcp.io/ValidatingWebhook"
)
Variables ¶
This section is empty.
Functions ¶
func SetClusterAnnotation ¶ added in v0.25.0
func SetClusterAnnotation(obj metav1.Object, clusterName logicalcluster.Name) (undoFn func())
SetClusterAnnotation sets the cluster annotation on the given object to the given clusterName, returning an undo function that can be used to revert the change.
Types ¶
type Plugin ¶
func (*Plugin) SetKcpInformers ¶ added in v0.20.0
func (p *Plugin) SetKcpInformers(local, global kcpinformers.SharedInformerFactory)
func (*Plugin) SetKubeClusterClient ¶ added in v0.20.0
func (p *Plugin) SetKubeClusterClient(client kcpkubernetesclientset.ClusterInterface)
func (*Plugin) SetKubeInformers ¶ added in v0.11.0
func (p *Plugin) SetKubeInformers(local, global kcpkubernetesinformers.SharedInformerFactory)
func (*Plugin) Validate ¶
func (p *Plugin) Validate(ctx context.Context, attr admission.Attributes, o admission.ObjectInterfaces) error
func (*Plugin) ValidateInitialization ¶ added in v0.20.0
Click to show internal directories.
Click to hide internal directories.