Documentation ¶
Index ¶
- func IsAzureMachinePoolNotFound(err error) bool
- func IsFailureDomainWasChangedError(err error) bool
- func IsInvalidConfig(err error) bool
- func IsLocationWithNoFailureDomainSupportError(err error) bool
- func IsParsingFailed(err error) bool
- func IsUnsupportedFailureDomainError(err error) bool
- type CreateMutator
- type CreateMutatorConfig
- type CreateValidator
- type CreateValidatorConfig
- type UpdateMutator
- type UpdateMutatorConfig
- type UpdateValidator
- type UpdateValidatorConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAzureMachinePoolNotFound ¶
IsAzureMachinePoolNotFound asserts azureMachinePoolNotFoundError.
func IsFailureDomainWasChangedError ¶
IsFailureDomainWasChangedError asserts failureDomainWasChangedError.
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsLocationWithNoFailureDomainSupportError ¶
IsLocationWithNoFailureDomainSupportError asserts locationWithNoFailureDomainSupportError.
func IsParsingFailed ¶
IsParsingFailed asserts parsingFailedError.
func IsUnsupportedFailureDomainError ¶
IsUnsupportedFailureDomainError asserts unsupportedFailureDomainError.
Types ¶
type CreateMutator ¶
type CreateMutator struct {
// contains filtered or unexported fields
}
func NewCreateMutator ¶
func NewCreateMutator(config CreateMutatorConfig) (*CreateMutator, error)
func (*CreateMutator) Log ¶
func (m *CreateMutator) Log(keyVals ...interface{})
func (*CreateMutator) Mutate ¶
func (m *CreateMutator) Mutate(ctx context.Context, request *v1beta1.AdmissionRequest) ([]mutator.PatchOperation, error)
func (*CreateMutator) Resource ¶
func (m *CreateMutator) Resource() string
type CreateMutatorConfig ¶
type CreateMutatorConfig struct { CtrlClient client.Client Logger micrologger.Logger }
type CreateValidator ¶
type CreateValidator struct {
// contains filtered or unexported fields
}
func NewCreateValidator ¶
func NewCreateValidator(config CreateValidatorConfig) (*CreateValidator, error)
func (*CreateValidator) Log ¶
func (a *CreateValidator) Log(keyVals ...interface{})
func (*CreateValidator) Validate ¶
func (a *CreateValidator) Validate(ctx context.Context, request *v1beta1.AdmissionRequest) error
type CreateValidatorConfig ¶
type CreateValidatorConfig struct { CtrlClient client.Client Logger micrologger.Logger VMcaps *vmcapabilities.VMSKU }
type UpdateMutator ¶
type UpdateMutator struct {
// contains filtered or unexported fields
}
func NewUpdateMutator ¶
func NewUpdateMutator(config UpdateMutatorConfig) (*UpdateMutator, error)
func (*UpdateMutator) Log ¶
func (m *UpdateMutator) Log(keyVals ...interface{})
func (*UpdateMutator) Mutate ¶
func (m *UpdateMutator) Mutate(ctx context.Context, request *v1beta1.AdmissionRequest) ([]mutator.PatchOperation, error)
func (*UpdateMutator) Resource ¶
func (m *UpdateMutator) Resource() string
type UpdateMutatorConfig ¶
type UpdateMutatorConfig struct {
Logger micrologger.Logger
}
type UpdateValidator ¶
type UpdateValidator struct {
// contains filtered or unexported fields
}
func NewUpdateValidator ¶
func NewUpdateValidator(config UpdateValidatorConfig) (*UpdateValidator, error)
func (*UpdateValidator) Log ¶
func (a *UpdateValidator) Log(keyVals ...interface{})
func (*UpdateValidator) Validate ¶
func (a *UpdateValidator) Validate(ctx context.Context, request *v1beta1.AdmissionRequest) error
type UpdateValidatorConfig ¶
type UpdateValidatorConfig struct {
Logger micrologger.Logger
}
Click to show internal directories.
Click to hide internal directories.