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
- func UpgradeScheduleTimeIsValid(updateTime string) bool
- type Config
- type Mutator
- func (m *Mutator) DefaultCiliumCidrOnV18Upgrade(cluster capi.Cluster, currentRelease *semver.Version, ...) ([]mutator.PatchOperation, error)
- 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) MutateInfraRef(cluster capi.Cluster, releaseVersion *semver.Version) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateOperatorVersion(cluster capi.Cluster, releaseVersion *semver.Version) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateReleaseUpdate(cluster capi.Cluster, oldCluster capi.Cluster) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateReleaseVersion(cluster capi.Cluster) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateUpdate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)
- func (m *Mutator) Resource() string
- type Validator
- func (v *Validator) Cilium(cluster *capi.Cluster, oldCluster *capi.Cluster) error
- func (v *Validator) ClusterAnnotationUpgradeReleaseIsValid(cluster *capi.Cluster) error
- func (v *Validator) ClusterAnnotationUpgradeTimeIsValid(cluster *capi.Cluster, oldCluster *capi.Cluster) error
- func (v *Validator) ClusterExists(obj metav1.Object) error
- func (v *Validator) ClusterLabelKeysValid(oldCluster *capi.Cluster, newCluster *capi.Cluster) error
- func (v *Validator) ClusterLabelValuesValid(oldCluster *capi.Cluster, newCluster *capi.Cluster) error
- func (v *Validator) ClusterStatusValid(oldCluster *capi.Cluster, newCluster *capi.Cluster) error
- func (v *Validator) EnsureGitopsPaused(cluster *capi.Cluster, oldCluster *capi.Cluster) error
- func (v *Validator) Log(keyVals ...interface{})
- func (v *Validator) ReleaseVersionValid(oldCluster *capi.Cluster, newCluster *capi.Cluster) error
- func (v *Validator) Resource() string
- func (v *Validator) UpgradeScheduleReleaseIsValid(targetRelease string, currentRelease string) error
- func (v *Validator) Validate(request *admissionv1.AdmissionRequest) (bool, error)
- func (v *Validator) ValidateCiliumIpamMode(cluster *capi.Cluster) error
- func (v *Validator) ValidateCiliumIpamModeUnchanged(oldCluster *capi.Cluster, newCluster *capi.Cluster) 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) DefaultCiliumCidrOnV18Upgrade ¶ added in v4.3.0
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) MutateInfraRef ¶
func (*Mutator) MutateOperatorVersion ¶
func (*Mutator) MutateReleaseUpdate ¶
func (*Mutator) MutateReleaseVersion ¶
func (*Mutator) MutateUpdate ¶
func (m *Mutator) MutateUpdate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)
MutateUpdate is the function executed for every update webhook request.
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func (*Validator) ClusterAnnotationUpgradeReleaseIsValid ¶
func (*Validator) ClusterAnnotationUpgradeTimeIsValid ¶
func (*Validator) ClusterExists ¶ added in v4.7.0
func (*Validator) ClusterLabelKeysValid ¶
func (*Validator) ClusterLabelValuesValid ¶
func (*Validator) ClusterStatusValid ¶
func (*Validator) EnsureGitopsPaused ¶ added in v4.8.0
func (*Validator) ReleaseVersionValid ¶
func (*Validator) UpgradeScheduleReleaseIsValid ¶
func (*Validator) Validate ¶
func (v *Validator) Validate(request *admissionv1.AdmissionRequest) (bool, error)
func (*Validator) ValidateCiliumIpamMode ¶ added in v4.9.0
func (*Validator) ValidateCiliumIpamModeUnchanged ¶ added in v4.9.0
func (*Validator) ValidateCreate ¶
func (v *Validator) ValidateCreate(request *admissionv1.AdmissionRequest) (bool, error)
func (*Validator) ValidateUpdate ¶
func (v *Validator) ValidateUpdate(request *admissionv1.AdmissionRequest) (bool, error)
Click to show internal directories.
Click to hide internal directories.