Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ControllerName is the name used for logging and event recording. ControllerName = "aigw-dataplane" // DefaultIngressPort is the default port exposed by the AI Gateway ingress listener. DefaultIngressPort int32 = 8443 // KonnectCertVolumeName is the name of the volume that holds the Konnect mTLS certificate. KonnectCertVolumeName = "konnect-cert" // KonnectCertMountPath is the path where the Konnect certificate Secret is mounted in the AI Gateway container. KonnectCertMountPath = "/var/konnect-client-certificate/" )
View Source
const ( // EnvKongClusterControlPlane is the AI Gateway environment variable for the Konnect control plane endpoint (host:port). EnvKongClusterControlPlane = "KONG_CLUSTER_CONTROL_PLANE" // EnvKongClusterServerName is the AI Gateway environment variable for the Konnect control plane TLS server name. EnvKongClusterServerName = "KONG_CLUSTER_SERVER_NAME" // EnvKongClusterTelemetryEndpoint is the AI Gateway environment variable for the Konnect telemetry endpoint (host:port). EnvKongClusterTelemetryEndpoint = "KONG_CLUSTER_TELEMETRY_ENDPOINT" // EnvKongClusterTelemetryServerName is the AI Gateway environment variable for the Konnect telemetry TLS server name. EnvKongClusterTelemetryServerName = "KONG_CLUSTER_TELEMETRY_SERVER_NAME" // EnvClientCertPath is the AI Gateway environment variable for the Konnect mTLS client certificate path. EnvClientCertPath = "KONG_CLUSTER_CERT" // EnvKonnectClientCertKey is the AI Gateway environment variable for the Konnect mTLS client key path. EnvKonnectClientCertKey = "KONG_CLUSTER_CERT_KEY" )
Variables ¶
This section is empty.
Functions ¶
func RequiredHardcodedEnvVars ¶
RequiredHardcodedEnvVars returns a slice of corev1.EnvVar containing the required variables to boot and connect the AI Gateway to Konnect.
Types ¶
type Reconciler ¶
type Reconciler struct {
client.Client
// LoggingMode controls the format of log output.
LoggingMode logging.Mode
ClusterCASecretName string
ClusterCASecretNamespace string
SecretLabelSelector string
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
// contains filtered or unexported fields
}
Reconciler reconciles an AIGatewayDataPlane object.
func (*Reconciler) Reconcile ¶
func (r *Reconciler) Reconcile(ctx context.Context, aigwdp *aigatewayv1alpha1.AIGatewayDataPlane) (res ctrl.Result, err error)
Reconcile moves the current state of an AIGatewayDataPlane toward the desired state.
func (*Reconciler) SetupWithManager ¶
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.