certificates

package
v2.1.10 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 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 (
	// KonnectDataPlaneCertPurpose is a ossconsts.CertPurposeLabel value indicating a certificate is by DataPlanes for Konnect
	// authentication.
	KonnectDataPlaneCertPurpose = "konnect-dataplane"

	// DataPlaneKonnectClientCertificateName is the name and label used to identify resources related to the Konnect
	// client certificate, including the Certificate, its Secret, and volume.
	DataPlaneKonnectClientCertificateName = "konnect-cert"
	// DataPlaneKonnectClientCertificatePath is the mount path for the Konnect client certificate.
	DataPlaneKonnectClientCertificatePath = "/var/konnect-client-certificate/"
	// ClusterCertEnvKey is the environment variable name for cluster certificates.
	ClusterCertEnvKey = "KONG_CLUSTER_CERT"
	// ClusterCertKeyEnvKey is the environment variable name for cluster certificate keys.
	ClusterCertKeyEnvKey = "KONG_CLUSTER_CERT_KEY"
)

Variables

This section is empty.

Functions

func CreateKonnectCert

func CreateKonnectCert(
	ctx context.Context,
	logger logr.Logger,
	dataplane *operatorv1beta1.DataPlane,
	cl client.Client,
	certOpts ...CertOpt,
) error

CreateKonnectCert creates a cert-manager certificate request for a DataPlane.

func MountAndUseKonnectCert

func MountAndUseKonnectCert(ctx context.Context, logger logr.Logger, dataplane *operatorv1beta1.DataPlane, cl client.Client, desiredDeployment *k8sresources.Deployment) error

MountAndUseKonnectCert looks for an operator-managed Konnect certificate for a DataPlane, modifies that DataPlane's Deployment to mount it in the proxy container, and configures the proxy environment to authenticate to Konnect using it.

Types

type CertOpt

type CertOpt func(*certmanagerv1.Certificate)

CertOpt modifies generated cerfificates.

func WithSecretLabel

func WithSecretLabel(key, value string) CertOpt

WithSecretLabel adds a label "key:value" to the secrets generated for the certificate.

Jump to

Keyboard shortcuts

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