From 3e4f52df822ccf2b97226fd73ff114b3557cfcd5 Mon Sep 17 00:00:00 2001 From: Kamiel Ahmadpour Date: Wed, 13 Nov 2024 10:05:26 +0000 Subject: [PATCH] fix: set default syncFrom for v4 APIs see: https://gravitee.atlassian.net/browse/GKO-771 --- api/model/api/v4/api.go | 2 +- docs/api/reference.md | 2 +- helm/gko/crds/gravitee.io_apiv4definitions.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/model/api/v4/api.go b/api/model/api/v4/api.go index 473b83ab4..e8143837e 100644 --- a/api/model/api/v4/api.go +++ b/api/model/api/v4/api.go @@ -123,7 +123,7 @@ type DefinitionContext struct { // gateways deployed across multiple clusters / regions. // If the value is `KUBERNETES`, the API definition will be sourced from a config map. // This means that only gateways deployed in the same cluster will be able to sync the API definition. - // +kubebuilder:default:=`KUBERNETES` + // +kubebuilder:default:=`MANAGEMENT` // +kubebuilder:validation:Enum=KUBERNETES;MANAGEMENT; SyncFrom DefinitionContextOrigin `json:"syncFrom,omitempty"` } diff --git a/docs/api/reference.md b/docs/api/reference.md index ed275cc7b..ac34894be 100644 --- a/docs/api/reference.md +++ b/docs/api/reference.md @@ -5571,7 +5571,7 @@ If the value is `KUBERNETES`, the API definition will be sourced from a config m This means that only gateways deployed in the same cluster will be able to sync the API definition.

Enum: KUBERNETES, MANAGEMENT
- Default: KUBERNETES
+ Default: MANAGEMENT
false diff --git a/helm/gko/crds/gravitee.io_apiv4definitions.yaml b/helm/gko/crds/gravitee.io_apiv4definitions.yaml index 42dd21b8a..993fc47a2 100644 --- a/helm/gko/crds/gravitee.io_apiv4definitions.yaml +++ b/helm/gko/crds/gravitee.io_apiv4definitions.yaml @@ -207,7 +207,7 @@ spec: - KUBERNETES type: string syncFrom: - default: KUBERNETES + default: MANAGEMENT description: |- The syncFrom field defines where the gateways should source the API definition from. If the value is `MANAGEMENT`, the API definition will be sourced from an APIM instance.