Documentation ¶
Index ¶
- type AdmissionHandler
- type ValidationHandlerBuilder
- func (v *ValidationHandlerBuilder) AllowedSeed(namespace string, name string) *ValidationHandlerBuilder
- func (v *ValidationHandlerBuilder) Build(ctx context.Context) (AdmissionHandler, error)
- func (v *ValidationHandlerBuilder) Client(client ctrlruntimeclient.Client) *ValidationHandlerBuilder
- func (v *ValidationHandlerBuilder) FeatureGates(features features.FeatureGate) *ValidationHandlerBuilder
- func (v *ValidationHandlerBuilder) SeedName(seedName string) *ValidationHandlerBuilder
- func (v *ValidationHandlerBuilder) WorkerName(workerName string) *ValidationHandlerBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdmissionHandler ¶
type AdmissionHandler interface { webhook.AdmissionHandler inject.Logger admission.DecoderInjector SetupWebhookWithManager(mgr ctrlruntime.Manager) }
AdmissionHandler for Kubermatic Seed CRD.
type ValidationHandlerBuilder ¶
type ValidationHandlerBuilder struct {
// contains filtered or unexported fields
}
func (*ValidationHandlerBuilder) AllowedSeed ¶
func (v *ValidationHandlerBuilder) AllowedSeed(namespace string, name string) *ValidationHandlerBuilder
AllowedSeed sets name and namespace of the single seed that will be allowed to be created by the admission handler.
func (*ValidationHandlerBuilder) Build ¶
func (v *ValidationHandlerBuilder) Build(ctx context.Context) (AdmissionHandler, error)
Build returns an AdmissionHandler for Seed CRs.
func (*ValidationHandlerBuilder) Client ¶
func (v *ValidationHandlerBuilder) Client(client ctrlruntimeclient.Client) *ValidationHandlerBuilder
Client sets the client to get API resources on the cluster the handler is used for.
func (*ValidationHandlerBuilder) FeatureGates ¶
func (v *ValidationHandlerBuilder) FeatureGates(features features.FeatureGate) *ValidationHandlerBuilder
FeatureGates sets the feature gates.
func (*ValidationHandlerBuilder) SeedName ¶
func (v *ValidationHandlerBuilder) SeedName(seedName string) *ValidationHandlerBuilder
SeedName sets the name of the Seed cluster the admission handler is used for.
func (*ValidationHandlerBuilder) WorkerName ¶
func (v *ValidationHandlerBuilder) WorkerName(workerName string) *ValidationHandlerBuilder
WorkerName sets the workerName value to be used to list clusters. TODO(irozzo) check how this is useful.
Click to show internal directories.
Click to hide internal directories.