Skip to content

Commit

Permalink
gateway_kuadrant_controller: clarify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
eguzki committed Apr 10, 2024
1 parent 7aee79d commit 76a39f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/gateway_kuadrant_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ func (r *GatewayKuadrantReconciler) reconcileGatewayWithKuadrantMetadata(ctx con

val, ok := gw.GetAnnotations()[kuadrant.KuadrantNamespaceAnnotation]
if !ok || val != kuadrantList.Items[0].Namespace {
// either the does not exist or is different, hence update
// Either the annotation does not exist or
// the namespace differs from the available Kuadrant CR, hence the gateway is updated.
annotations := gw.GetAnnotations()
if annotations == nil {
annotations = map[string]string{}
Expand Down

0 comments on commit 76a39f0

Please sign in to comment.