mirror of
https://github.com/clastix/kamaji.git
synced 2026-02-14 10:00:02 +00:00
This change extends Gateway API support to Konnectivity addons. When `spec.controlPlane.gateway` is configured and Konnectivity addon is enabled, Kamaji automatically creates two TLSRoutes: 1. A Control plane TLSRoute (port 6443, sectionName "kube-apiserver") 2. A Konnectivity TLSRoute (port 8132, sectionName "konnectivity-server") Both routes use the hostname specified in `gateway.hostname` and reference the same Gateway resource via `parentRefs`, with `port` and `sectionName` set automatically by Kamaji. This patch also adds CEL validation to prevent users from specifying `port` or `sectionName` in Gateway `parentRefs`, as these fields are now managed automatically by Kamaji. Signed-off-by: Parth Yadav <parth@coredge.io>
21 lines
613 B
Go
21 lines
613 B
Go
// Copyright 2022 Clastix Labs
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package konnectivity
|
|
|
|
import (
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
)
|
|
|
|
var (
|
|
agentCollector prometheus.Histogram
|
|
certificateCollector prometheus.Histogram
|
|
clusterrolebindingCollector prometheus.Histogram
|
|
deploymentCollector prometheus.Histogram
|
|
egressCollector prometheus.Histogram
|
|
gatewayCollector prometheus.Histogram
|
|
kubeconfigCollector prometheus.Histogram
|
|
serviceaccountCollector prometheus.Histogram
|
|
serviceCollector prometheus.Histogram
|
|
)
|