gwadmin

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 49 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

Overview

Package gwadmin contains the controller deploying gw-admin, the on-prem control plane of the data planes that do not use Konnect, and managing its certificates.

Index

Constants

View Source
const ControllerName = "gwadmin"

ControllerName is the name of the GWAdmin controller.

View Source
const IndexFieldGWAdminOnSecret = "gwAdminSecret" //nolint:gosec

IndexFieldGWAdminOnSecret is the index field for GWAdmin -> Secret: the Secrets a GWAdmin references, and those it needs for itself.

View Source
const IndexFieldSecretLicenseInUse = "gwAdminLicenseInUse" //nolint:gosec

IndexFieldSecretLicenseInUse is the index field of the Secrets held by consts.GWAdminLicenseInUseFinalizer, which all index the value "true".

Variables

This section is empty.

Functions

func APICASecretName

func APICASecretName(gw *operatorv1alpha1.GWAdmin) string

APICASecretName returns the name of the Secret, in the operator namespace, holding the API CA of the GWAdmin.

func CPServerCASecretName

func CPServerCASecretName(gw *operatorv1alpha1.GWAdmin) string

CPServerCASecretName returns the name of the Secret, in the operator namespace, holding the cp server CA of the GWAdmin.

func IndexOptions

func IndexOptions() []index.Option

IndexOptions returns the index options the GWAdmin controller needs.

Types

type Reconciler

type Reconciler struct {
	client.Client

	// LoggingMode controls the format of log output.
	LoggingMode logging.Mode

	// ClusterDomain is the cluster DNS domain, added to the names the server
	// certificates are issued for.
	ClusterDomain string

	// SecretLabelSelector is the label the operator's Secret cache selects
	// on; the Secrets of the GWAdmin carry it so the operator sees them.
	SecretLabelSelector string

	// OperatorNamespace is the namespace Kong Operator runs in. It holds the
	// Secrets of the GWAdmins only Kong Operator uses: the keys of their
	// certificate authorities and the operator client certificate.
	OperatorNamespace string

	// CATTL is the validity of the certificate authorities Kong Operator
	// creates. Defaults to consts.GWAdminCATTL.
	CATTL time.Duration

	// CertTTL is the validity of the certificates Kong Operator issues.
	// Defaults to consts.GWAdminLeafTTL.
	CertTTL time.Duration

	// TypeConverter is injected via the TypeConverterProvider at controller
	// registration time. It is used for both diff-before-apply and
	// structured-merge-diff based PodTemplateSpec merging.
	TypeConverter managedfields.TypeConverter

	// Now returns the current time. Defaults to time.Now.
	Now func() time.Time
	// contains filtered or unexported fields
}

Reconciler reconciles a GWAdmin object.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, gw *operatorv1alpha1.GWAdmin) (res ctrl.Result, err error)

Reconcile moves the current state of a GWAdmin toward the desired state.

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(_ context.Context, mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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