Documentation ¶
Index ¶
- Constants
- Variables
- func ReconcileKASEndpointSlice(endpointSlice *discoveryv1.EndpointSlice, address string, port int32)
- func ReconcileKASEndpoints(endpoints *corev1.Endpoints, address string, port int32)
- func ReconcileKASValidatingAdmissionPolicies(ctx context.Context, hcp *hyperv1.HostedControlPlane, client client.Client, ...) error
- type AdmissionPolicy
Constants ¶
View Source
const ( AdmissionPolicyNameConfig = "config" AdmissionPolicyNameMirror = "mirror" AdmissionPolicyNameICSP = "icsp" AdmissionPolicyNameInfra = "infra" BaseCelExpression = "has(object.spec) && has(oldObject.spec) && object.spec == oldObject.spec" )
Variables ¶
View Source
var ( HCCOUserValidation = k8sadmissionv1beta1.Validation{ Message: "This resource cannot be created, updated, or deleted. Please ask your administrator to modify the resource in the HostedCluster object.", Reason: ptr.To(metav1.StatusReasonInvalid), } )
Functions ¶
func ReconcileKASEndpointSlice ¶
func ReconcileKASEndpointSlice(endpointSlice *discoveryv1.EndpointSlice, address string, port int32)
func ReconcileKASEndpoints ¶
func ReconcileKASValidatingAdmissionPolicies ¶ added in v0.1.44
func ReconcileKASValidatingAdmissionPolicies(ctx context.Context, hcp *hyperv1.HostedControlPlane, client client.Client, createOrUpdate upsert.CreateOrUpdateFN) error
ReconcileKASValidatingAdmissionPolicies will create ValidatingAdmissionPolicies which block certain resources from being updated/deleted from the DataPlane side.
Types ¶
type AdmissionPolicy ¶ added in v0.1.44
type AdmissionPolicy struct { Name string MatchConstraints *k8sadmissionv1beta1.MatchResources Validations []k8sadmissionv1beta1.Validation }
Click to show internal directories.
Click to hide internal directories.