Skip to content

Commit 8ee3558

Browse files
committed
node: topology-mgr: resolve lint errors
Signed-off-by: Swati Sehgal <[email protected]>
1 parent 9e1d6d5 commit 8ee3558

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pkg/kubelet/cm/topologymanager/policy_options.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ func CheckPolicyOptionAvailable(option string) error {
4747
}
4848

4949
if alphaOptions.Has(option) && !utilfeature.DefaultFeatureGate.Enabled(kubefeatures.TopologyManagerPolicyAlphaOptions) {
50-
return fmt.Errorf("Topology Manager Policy Alpha-level Options not enabled, but option %q provided", option)
50+
return fmt.Errorf("topology manager policy alpha-level options not enabled, but option %q provided", option)
5151
}
5252

5353
if betaOptions.Has(option) && !utilfeature.DefaultFeatureGate.Enabled(kubefeatures.TopologyManagerPolicyBetaOptions) {
54-
return fmt.Errorf("Topology Manager Policy Beta-level Options not enabled, but option %q provided", option)
54+
return fmt.Errorf("topology manager policy beta-level options not enabled, but option %q provided", option)
5555
}
5656

5757
return nil

pkg/kubelet/cm/topologymanager/policy_options_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func TestNewTopologyManagerOptions(t *testing.T) {
7474
policyOptions: map[string]string{
7575
MaxAllowableNUMANodes: "8",
7676
},
77-
expectedErr: fmt.Errorf("Topology Manager Policy Beta-level Options not enabled,"),
77+
expectedErr: fmt.Errorf("topology manager policy beta-level options not enabled,"),
7878
},
7979
{
8080
description: "return empty TopologyManagerOptions",
@@ -117,7 +117,7 @@ func TestNewTopologyManagerOptions(t *testing.T) {
117117
policyOptions: map[string]string{
118118
fancyBetaOption: "true",
119119
},
120-
expectedErr: fmt.Errorf("Topology Manager Policy Beta-level Options not enabled,"),
120+
expectedErr: fmt.Errorf("topology manager policy beta-level options not enabled,"),
121121
},
122122
{
123123
description: "test alpha options success",
@@ -136,7 +136,7 @@ func TestNewTopologyManagerOptions(t *testing.T) {
136136
policyOptions: map[string]string{
137137
fancyAlphaOption: "true",
138138
},
139-
expectedErr: fmt.Errorf("Topology Manager Policy Alpha-level Options not enabled,"),
139+
expectedErr: fmt.Errorf("topology manager policy alpha-level options not enabled,"),
140140
},
141141
}
142142

0 commit comments

Comments
 (0)