Skip to content

Commit 3308041

Browse files
authored
fix(konnect): add status.clusterType to KonnectGatewayControlPlane (#626)
* add status.clusterType to KonnectGatewayControlPlane * update changelog
1 parent e2be6e8 commit 3308041

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ Adding a new version? You'll need three changes:
2525
- [v1.0.2](#v102)
2626
- [v1.0.0](#v100)
2727

28+
## Unreleased
29+
30+
### Fixes
31+
32+
- Add `status.clusterType` in `KonnectGatewayControlPlane` to save the
33+
clusterType of the Konnect control plane after the `KonnectGatewayControlPlane`
34+
is attached to a Konnect control plane. This is used to fix the wrong
35+
cluster type fetched in `KonnectExtension` for mirrored control planes.
36+
[#626](https://github.com/Kong/kubernetes-configuration/pull/626)
37+
2838
## [v2.0.0]
2939

3040
[v2.0.0]: https://github.com/Kong/kubernetes-configuration/compare/v1.5.2...v2.0.0

api/konnect/v1alpha2/konnect_gateway_controlplane_types.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,13 @@ type KonnectGatewayControlPlaneStatus struct {
129129

130130
KonnectEntityStatus `json:",inline"`
131131

132+
// ClusterType is the cluster type of the Konnect control plane.
133+
// When the KonnectGatewayControlPlane is attached to a control plane in Konnect,
134+
// ClusterType is filled with the cluster type of the control plane.
135+
//
136+
// +optional
137+
ClusterType sdkkonnectcomp.ControlPlaneClusterType `json:"clusterType,omitempty"`
138+
132139
// Endpoints defines the Konnect endpoints for the control plane.
133140
// They are required by the DataPlane to be properly configured in
134141
// Konnect and connect to the control plane.

config/crd/gateway-operator/konnect.konghq.com_konnectgatewaycontrolplanes.yaml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)