From cb0553a55bcf9cd3fbc264db875a960c38d1598d Mon Sep 17 00:00:00 2001 From: lvyaoting Date: Thu, 5 Dec 2024 19:33:00 +0800 Subject: [PATCH] chore: fix some function name in comment Signed-off-by: lvyaoting --- pkg/apis/pipeline/v1/param_types.go | 2 +- pkg/apis/pipeline/v1beta1/param_types.go | 2 +- test/featureflags.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/apis/pipeline/v1/param_types.go b/pkg/apis/pipeline/v1/param_types.go index c5973544221..286ed06d807 100644 --- a/pkg/apis/pipeline/v1/param_types.go +++ b/pkg/apis/pipeline/v1/param_types.go @@ -146,7 +146,7 @@ func (ps ParamSpecs) ValidateNoDuplicateNames() *apis.FieldError { return errs } -// validateParamEnum validates feature flag, duplication and allowed types for Param Enum +// validateParamEnums validates feature flag, duplication and allowed types for Param Enum func (ps ParamSpecs) validateParamEnums(ctx context.Context) *apis.FieldError { var errs *apis.FieldError for _, p := range ps { diff --git a/pkg/apis/pipeline/v1beta1/param_types.go b/pkg/apis/pipeline/v1beta1/param_types.go index f0634f8c580..9844a84435c 100644 --- a/pkg/apis/pipeline/v1beta1/param_types.go +++ b/pkg/apis/pipeline/v1beta1/param_types.go @@ -137,7 +137,7 @@ func (ps ParamSpecs) validateNoDuplicateNames() *apis.FieldError { return errs } -// validateParamEnum validates feature flag, duplication and allowed types for Param Enum +// validateParamEnums validates feature flag, duplication and allowed types for Param Enum func (ps ParamSpecs) validateParamEnums(ctx context.Context) *apis.FieldError { var errs *apis.FieldError for _, p := range ps { diff --git a/test/featureflags.go b/test/featureflags.go index a6b6db071f6..be0944eb710 100644 --- a/test/featureflags.go +++ b/test/featureflags.go @@ -70,7 +70,7 @@ func requireAnyGate(gates map[string]string) func(context.Context, *testing.T, * } } -// requireAllgates returns a setup func that will skip the current +// requireAllGates returns a setup func that will skip the current // test if all of the feature-flags in the given map don't match // what's in the feature-flags ConfigMap. It will fatally fail // the test if it cannot get the feature-flag configmap.