From 7b5afabab8e6350ec7317c32508942ded1ce1b00 Mon Sep 17 00:00:00 2001 From: vinayakray19 Date: Tue, 17 Feb 2026 18:31:41 +0530 Subject: [PATCH 1/2] Enable the uniquemarkers linter --- hack/golangci.yaml | 2 +- hack/kube-api-linter/kube-api-linter.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/golangci.yaml b/hack/golangci.yaml index 223e89dd3d9..07f015a75ca 100644 --- a/hack/golangci.yaml +++ b/hack/golangci.yaml @@ -434,7 +434,7 @@ linters: - "optionalorrequired" # Every field should be marked as `+optional` xor `+required`. # - "requiredfields" # Required fields should only be pointers when required based on the validity of the zero value, they should always have `omitempty`. - "ssatags" # Ensure lists have a listType tag. - # - "uniquemarkers" # Ensure markers are not duplicated across field and type definitions. + - "uniquemarkers" # Ensure markers are not duplicated across field and type definitions. - "duplicatemarkers" #Prevent identical markers from being present on types and fields - "dependenttags" # Ensure markers dependent on other markers are present. - "nodurations" # Ensure duration types are not used. diff --git a/hack/kube-api-linter/kube-api-linter.yaml b/hack/kube-api-linter/kube-api-linter.yaml index 2ce454912be..bce84065244 100644 --- a/hack/kube-api-linter/kube-api-linter.yaml +++ b/hack/kube-api-linter/kube-api-linter.yaml @@ -20,7 +20,7 @@ linters: - "optionalorrequired" # Every field should be marked as `+optional` xor `+required`. # - "requiredfields" # Required fields should only be pointers when required based on the validity of the zero value, they should always have `omitempty`. - "ssatags" # Ensure lists have a listType tag. - # - "uniquemarkers" # Ensure markers are not duplicated across field and type definitions. + - "uniquemarkers" # Ensure markers are not duplicated across field and type definitions. - "duplicatemarkers" #Prevent identical markers from being present on types and fields - "dependenttags" # Ensure markers dependent on other markers are present. - "nodurations" # Ensure duration types are not used. From 9f0252b1208c5fda3e712657dde01197cadd327c Mon Sep 17 00:00:00 2001 From: vinayakray19 Date: Tue, 17 Feb 2026 21:23:47 +0530 Subject: [PATCH 2/2] update golangci-hints.yaml --- hack/golangci-hints.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/golangci-hints.yaml b/hack/golangci-hints.yaml index 136686f509d..a7f075ff332 100644 --- a/hack/golangci-hints.yaml +++ b/hack/golangci-hints.yaml @@ -421,7 +421,7 @@ linters: - "optionalorrequired" # Every field should be marked as `+optional` xor `+required`. # - "requiredfields" # Required fields should only be pointers when required based on the validity of the zero value, they should always have `omitempty`. - "ssatags" # Ensure lists have a listType tag. - # - "uniquemarkers" # Ensure markers are not duplicated across field and type definitions. + - "uniquemarkers" # Ensure markers are not duplicated across field and type definitions. - "duplicatemarkers" #Prevent identical markers from being present on types and fields - "dependenttags" # Ensure markers dependent on other markers are present. - "nodurations" # Ensure duration types are not used.