Skip to content

Commit

Permalink
fix: add controlplaneRef to managed kpb (#601)
Browse files Browse the repository at this point in the history
* fix: add controlplaneRef to managed kpb

Signed-off-by: Mattia Lavacca <[email protected]>

* Update controller/konnect/reconciler_kongplugin.go

Co-authored-by: Patryk Małek <[email protected]>

---------

Signed-off-by: Mattia Lavacca <[email protected]>
Co-authored-by: Patryk Małek <[email protected]>
  • Loading branch information
mlavacca and pmalek authored Sep 13, 2024
1 parent cdb0a3e commit 140b4e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controller/konnect/reconciler_kongplugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@ func (r *KongPluginReconciler) Reconcile(ctx context.Context, req ctrl.Request)
Name: kongService.Name,
},
},
// TODO: Cross check this with other types of ControlPlaneRefs
// used by Route, Consumer and/or ConsumerGroups that also bind this plugin
// in this KongPluginBinding spec.
ControlPlaneRef: kongService.Spec.ControlPlaneRef,
PluginReference: configurationv1alpha1.PluginRef{
Name: kongPlugin.Name,
},
Expand Down

0 comments on commit 140b4e4

Please sign in to comment.