Skip to content

Commit

Permalink
fix: set default syncFrom for v4 APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
kamiiiel committed Nov 13, 2024
1 parent f9d1018 commit 3e4f52d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/model/api/v4/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down
2 changes: 1 addition & 1 deletion docs/api/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.<br/>
<br/>
<i>Enum</i>: KUBERNETES, MANAGEMENT<br/>
<i>Default</i>: KUBERNETES<br/>
<i>Default</i>: MANAGEMENT<br/>
</td>
<td>false</td>
</tr></tbody>
Expand Down
2 changes: 1 addition & 1 deletion helm/gko/crds/gravitee.io_apiv4definitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3e4f52d

Please sign in to comment.