Documentation ¶
Overview ¶
Package cluster intercepts write activity to Cluster objects.
Index ¶
- func IsInvalidConfig(err error) bool
- func IsNotAllowed(err error) bool
- func IsNotFound(err error) bool
- func IsParsingFailed(err error) bool
- type Config
- type Mutator
- func (m *Mutator) Log(keyVals ...interface{})
- func (m *Mutator) Mutate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateCreate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateOperatorVersion(cluster capiv1alpha2.Cluster, releaseVersion *semver.Version) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateReleaseUpdate(cluster capiv1alpha2.Cluster, oldCluster capiv1alpha2.Cluster) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateReleaseVersion(cluster capiv1alpha2.Cluster) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateUpdate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)
- func (m *Mutator) Resource() string
- type Validator
- func (v *Validator) ClusterLabelKeysValid(oldCluster *capiv1alpha2.Cluster, newCluster *capiv1alpha2.Cluster) error
- func (v *Validator) ClusterLabelValuesValid(oldCluster *capiv1alpha2.Cluster, newCluster *capiv1alpha2.Cluster) error
- func (v *Validator) ClusterStatusValid(oldCluster *capiv1alpha2.Cluster, newCluster *capiv1alpha2.Cluster) error
- func (v *Validator) Log(keyVals ...interface{})
- func (v *Validator) ReleaseVersionValid(oldCluster *capiv1alpha2.Cluster, newCluster *capiv1alpha2.Cluster) error
- func (v *Validator) Resource() string
- func (v *Validator) Validate(request *admissionv1.AdmissionRequest) (bool, error)
- func (v *Validator) ValidateCreate(request *admissionv1.AdmissionRequest) (bool, error)
- func (v *Validator) ValidateUpdate(request *admissionv1.AdmissionRequest) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsParsingFailed ¶
IsParsingFailed asserts parsingFailedError.
Types ¶
type Mutator ¶
type Mutator struct {
// contains filtered or unexported fields
}
Mutator for Cluster object.
func (*Mutator) Mutate ¶
func (m *Mutator) Mutate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)
Mutate is the function executed for every matching webhook request.
func (*Mutator) MutateCreate ¶
func (m *Mutator) MutateCreate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)
MutateCreate is the function executed for every create webhook request.
func (*Mutator) MutateOperatorVersion ¶
func (m *Mutator) MutateOperatorVersion(cluster capiv1alpha2.Cluster, releaseVersion *semver.Version) ([]mutator.PatchOperation, error)
func (*Mutator) MutateReleaseUpdate ¶ added in v2.6.0
func (m *Mutator) MutateReleaseUpdate(cluster capiv1alpha2.Cluster, oldCluster capiv1alpha2.Cluster) ([]mutator.PatchOperation, error)
func (*Mutator) MutateReleaseVersion ¶ added in v2.6.0
func (m *Mutator) MutateReleaseVersion(cluster capiv1alpha2.Cluster) ([]mutator.PatchOperation, error)
func (*Mutator) MutateUpdate ¶ added in v2.6.0
func (m *Mutator) MutateUpdate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)
MutateUpdate is the function executed for every update webhook request.
type Validator ¶ added in v2.7.0
type Validator struct {
// contains filtered or unexported fields
}
func (*Validator) ClusterLabelKeysValid ¶ added in v2.7.0
func (v *Validator) ClusterLabelKeysValid(oldCluster *capiv1alpha2.Cluster, newCluster *capiv1alpha2.Cluster) error
func (*Validator) ClusterLabelValuesValid ¶ added in v2.7.0
func (v *Validator) ClusterLabelValuesValid(oldCluster *capiv1alpha2.Cluster, newCluster *capiv1alpha2.Cluster) error
func (*Validator) ClusterStatusValid ¶ added in v2.10.0
func (v *Validator) ClusterStatusValid(oldCluster *capiv1alpha2.Cluster, newCluster *capiv1alpha2.Cluster) error
func (*Validator) ReleaseVersionValid ¶ added in v2.7.0
func (v *Validator) ReleaseVersionValid(oldCluster *capiv1alpha2.Cluster, newCluster *capiv1alpha2.Cluster) error
func (*Validator) Validate ¶ added in v2.7.0
func (v *Validator) Validate(request *admissionv1.AdmissionRequest) (bool, error)
func (*Validator) ValidateCreate ¶ added in v2.11.0
func (v *Validator) ValidateCreate(request *admissionv1.AdmissionRequest) (bool, error)
func (*Validator) ValidateUpdate ¶ added in v2.7.0
func (v *Validator) ValidateUpdate(request *admissionv1.AdmissionRequest) (bool, error)
Click to show internal directories.
Click to hide internal directories.