Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
rtribotte authored and traefiker committed Jan 30, 2024
1 parent 0b0e90c commit 1a2828d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pkg/provider/kubernetes/gateway/client.go
Expand Up @@ -362,6 +362,8 @@ func (c *clientWrapper) GetTLSRoutes(namespaces []string) ([]*gatev1alpha2.TLSRo

func (c *clientWrapper) GetReferenceGrants(namespace string) ([]*gatev1beta1.ReferenceGrant, error) {
if !c.isWatchedNamespace(namespace) {
log.Warn().Msgf("Failed to get ReferenceGrants: %q is not within watched namespaces", namespace)

return nil, fmt.Errorf("failed to get ReferenceGrants: namespace %s is not within watched namespaces", namespace)
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/provider/kubernetes/gateway/kubernetes.go
Expand Up @@ -505,7 +505,7 @@ func (p *Provider) fillGatewayConf(ctx context.Context, client Client, gateway *
ObservedGeneration: gateway.Generation,
LastTransitionTime: metav1.Now(),
Reason: string(gatev1.ListenerReasonRefNotPermitted),
Message: fmt.Sprintf("Cannot find ReferenceGrant for cross-namespace secret reference by CertificateRef: %v", err),
Message: fmt.Sprintf("Cannot find any ReferenceGrant: %v", err),
})
continue
}
Expand Down

0 comments on commit 1a2828d

Please sign in to comment.