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 b643e85 commit 38d7c8e
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{}

Check warning on line 119 in controllers/gateway_kuadrant_controller.go

View check run for this annotation

Codecov / codecov/patch

controllers/gateway_kuadrant_controller.go#L119

Added line #L119 was not covered by tests
Expand Down

0 comments on commit 38d7c8e

Please sign in to comment.