kas

package
v0.1.52 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdmissionPolicyNameConfig             = "config"
	AdmissionPolicyNameMirror             = "mirror"
	AdmissionPolicyNameICSP               = "icsp"
	AdmissionPolicyNameInfra              = "infra"
	AdmissionPolicyNameNTOMirroredConfigs = "ntomirroredconfigmaps"

	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 ReconcileKASEndpoints(endpoints *corev1.Endpoints, address string, port int32)

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL