kas

package
v0.1.87 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	BaseCelExpression = "has(object.spec) && has(oldObject.spec) && object.spec == oldObject.spec"
)

Variables

View Source
var (
	HCCOUserValidation = k8sadmissionv1.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 *k8sadmissionv1.MatchResources
	Validations      []k8sadmissionv1.Validation
}

Jump to

Keyboard shortcuts

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