Documentation ¶
Index ¶
- Variables
- func AllowBindingToClusterSet(kubeClient kubernetes.Interface, clusterSetName string, ...) error
- type ManagedClusterSet
- type ManagedClusterSetBindingWebhook
- func (b *ManagedClusterSetBindingWebhook) Init(mgr ctrl.Manager) error
- func (b *ManagedClusterSetBindingWebhook) SetExternalKubeClientSet(client kubernetes.Interface)
- func (b *ManagedClusterSetBindingWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (b *ManagedClusterSetBindingWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (b *ManagedClusterSetBindingWebhook) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (b *ManagedClusterSetBindingWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// Install is a function which adds this version to a scheme
Install = schemeBuilder.AddToScheme
)
Functions ¶
func AllowBindingToClusterSet ¶ added in v0.12.0
func AllowBindingToClusterSet(kubeClient kubernetes.Interface, clusterSetName string, userInfo authenticationv1.UserInfo) error
allowBindingToClusterSet checks if the user has permission to bind a particular cluster set
Types ¶
type ManagedClusterSet ¶
type ManagedClusterSet struct {
v1beta2.ManagedClusterSet
}
func (*ManagedClusterSet) SetupWebhookWithManager ¶
func (src *ManagedClusterSet) SetupWebhookWithManager(mgr ctrl.Manager) error
type ManagedClusterSetBindingWebhook ¶
type ManagedClusterSetBindingWebhook struct {
// contains filtered or unexported fields
}
func (*ManagedClusterSetBindingWebhook) Init ¶
func (b *ManagedClusterSetBindingWebhook) Init(mgr ctrl.Manager) error
func (*ManagedClusterSetBindingWebhook) SetExternalKubeClientSet ¶
func (b *ManagedClusterSetBindingWebhook) SetExternalKubeClientSet(client kubernetes.Interface)
SetExternalKubeClientSet is function to enable the webhook injecting to kube admssion
func (*ManagedClusterSetBindingWebhook) SetupWebhookWithManager ¶
func (b *ManagedClusterSetBindingWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*ManagedClusterSetBindingWebhook) ValidateCreate ¶
func (b *ManagedClusterSetBindingWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) ( admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*ManagedClusterSetBindingWebhook) ValidateDelete ¶
func (b *ManagedClusterSetBindingWebhook) ValidateDelete(_ context.Context, obj runtime.Object) ( admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*ManagedClusterSetBindingWebhook) ValidateUpdate ¶
func (b *ManagedClusterSetBindingWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) ( admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
Click to show internal directories.
Click to hide internal directories.