From 3db6660952fab9b7824461a309e9e44d78aa4a67 Mon Sep 17 00:00:00 2001 From: Curt Bushko Date: Tue, 26 Mar 2024 13:55:05 -0400 Subject: [PATCH] fix linter --- control-plane/connect-inject/common/openshift.go | 2 +- .../connect-inject/constants/annotations_and_labels.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/control-plane/connect-inject/common/openshift.go b/control-plane/connect-inject/common/openshift.go index 1c36182303..a19b52a6e0 100644 --- a/control-plane/connect-inject/common/openshift.go +++ b/control-plane/connect-inject/common/openshift.go @@ -24,7 +24,7 @@ import ( corev1 "k8s.io/api/core/v1" ) -// Get the user id from the OpenShift annotation 'openshift.io/sa.scc.uid-range' +// Get the user id from the OpenShift annotation 'openshift.io/sa.scc.uid-range'. func GetOpenShiftUID(ns *corev1.Namespace) (int64, error) { annotation, ok := ns.Annotations[constants.AnnotationOpenShiftUIDRange] if !ok { diff --git a/control-plane/connect-inject/constants/annotations_and_labels.go b/control-plane/connect-inject/constants/annotations_and_labels.go index 94f830e2d0..236beadeb0 100644 --- a/control-plane/connect-inject/constants/annotations_and_labels.go +++ b/control-plane/connect-inject/constants/annotations_and_labels.go @@ -273,7 +273,7 @@ const ( AnnotationPrometheusPort = "prometheus.io/port" ) -// Annotations used by OpenShift +// Annotations used by OpenShift. const ( AnnotationOpenShiftGroups = "openshift.io/sa.scc.supplemental-groups" AnnotationOpenShiftUIDRange = "openshift.io/sa.scc.uid-range"