From 91b243edbe7204a34224c053ecf9f97afb778738 Mon Sep 17 00:00:00 2001 From: Mattia Lavacca Date: Wed, 9 Oct 2024 17:15:25 +0200 Subject: [PATCH] add comments Signed-off-by: Mattia Lavacca --- controller/dataplane/konnect_extension.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/controller/dataplane/konnect_extension.go b/controller/dataplane/konnect_extension.go index 14190cc7c..6365c037b 100644 --- a/controller/dataplane/konnect_extension.go +++ b/controller/dataplane/konnect_extension.go @@ -19,8 +19,11 @@ import ( ) var ( - ErrCrossNamespaceReference = errors.New("cross-namespace reference is not currently supported for Konnect extensions") - ErrKonnectExtensionNotFound = errors.New("konnect extension not found") + // ErrCrossNamespaceReference is returned when a Konnect extension references a different namespace. + ErrCrossNamespaceReference = errors.New("cross-namespace reference is not currently supported for Konnect extensions") + // ErrKonnectExtensionNotFound is returned when a Konnect extension is not found. + ErrKonnectExtensionNotFound = errors.New("konnect extension not found") + // ErrClusterCertificateNotFound is returned when a cluster certificate secret referenced in the KonnectExtension is not found. ErrClusterCertificateNotFound = errors.New("cluster certificate not found") )