Skip to content

Commit

Permalink
fix: the status.konnect field is now a pointer (#21)
Browse files Browse the repository at this point in the history
Signed-off-by: Mattia Lavacca <[email protected]>
  • Loading branch information
mlavacca authored Aug 5, 2024
1 parent cf8864c commit 2d46163
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 8 deletions.
3 changes: 2 additions & 1 deletion api/configuration/v1/kongconsumer_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ type KongConsumerList struct {
// KongConsumerStatus represents the current status of the KongConsumer resource.
type KongConsumerStatus struct {
// Konnect contains the Konnect entity status.
Konnect configurationv1alpha1.KonnectEntityStatusWithControlPlaneRef `json:"konnect,omitempty"`
// +optional
Konnect *configurationv1alpha1.KonnectEntityStatusWithControlPlaneRef `json:"konnect,omitempty"`

// Conditions describe the current conditions of the KongConsumer.
//
Expand Down
7 changes: 6 additions & 1 deletion api/configuration/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion api/configuration/v1alpha1/kongpluginbinding_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ type EntityRef struct {
// KongPluginBindingStatus represents the current status of the KongBinding resource.
type KongPluginBindingStatus struct {
// Konnect contains the Konnect entity status.
Konnect KonnectEntityStatusWithControlPlaneAndServiceRefs `json:"konnect,omitempty"`
// +optional
Konnect *KonnectEntityStatusWithControlPlaneAndServiceRefs `json:"konnect,omitempty"`

// Conditions describe the status of the Konnect entity.
// +listType=map
Expand Down
3 changes: 2 additions & 1 deletion api/configuration/v1alpha1/kongroute_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ type KongRouteAPISpec struct {
// KongRouteStatus represents the current status of the Kong Route resource.
type KongRouteStatus struct {
// Konnect contains the Konnect entity status.
Konnect KonnectEntityStatusWithControlPlaneAndServiceRefs `json:"konnect,omitempty"`
// +optional
Konnect *KonnectEntityStatusWithControlPlaneAndServiceRefs `json:"konnect,omitempty"`

// Conditions describe the status of the Konnect entity.
// +listType=map
Expand Down
3 changes: 2 additions & 1 deletion api/configuration/v1alpha1/kongservice_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ type KongServiceAPISpec struct {
// KongServiceStatus represents the current status of the Kong Service resource.
type KongServiceStatus struct {
// Konnect contains the Konnect entity status.
Konnect KonnectEntityStatusWithControlPlaneRef `json:"konnect,omitempty"`
// +optional
Konnect *KonnectEntityStatusWithControlPlaneRef `json:"konnect,omitempty"`

// Conditions describe the status of the Konnect entity.
// +listType=map
Expand Down
18 changes: 15 additions & 3 deletions api/configuration/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2d46163

Please sign in to comment.