File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
agent/deployer/internal/diff
kubernetes_vendor/pkg/api/v1/endpoints
controller/agentmanagement/agent Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -488,7 +488,7 @@ func normalizeEndpoint(un *unstructured.Unstructured, o options) {
488488 if gvk .Group != "" || gvk .Kind != "Endpoints" {
489489 return
490490 }
491- //nolint: staticcheck // Endpoints is deprecated but still supported; see fleet#3760.
491+ //nolint:staticcheck // Endpoints is deprecated but still supported; see fleet#3760.
492492 var ep corev1.Endpoints
493493 err := runtime .DefaultUnstructuredConverter .FromUnstructured (un .Object , & ep )
494494 if err != nil {
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ func hashObject(hasher hash.Hash, obj interface{}) []byte {
6363 return hasher .Sum (nil )
6464}
6565
66- //nolint:staticcheck // EndpointSubset is deprecated but still supported; see fleet#3760.
66+ //nolint:staticcheck,nolintlint // EndpointSubset is deprecated but still supported; see fleet#3760.
6767type subsetsByHash []v1.EndpointSubset
6868
6969func (sl subsetsByHash ) Len () int { return len (sl ) }
Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ func TestManifestAgentTolerations(t *testing.T) {
112112 t .Fatal ("there were no deployments returned from the manifests" )
113113 }
114114
115+ //nolint:SA5011 // agent is checked for nil above; t.Fatal prevents execution if nil
115116 if ! cmp .Equal (agent .Spec .Template .Spec .Tolerations , testCase .expectedTolerations , cmpOpt ) {
116117 t .Fatalf ("tolerations were not as expected: %v" , agent .Spec .Template .Spec .Tolerations )
117118 }
@@ -160,6 +161,7 @@ func TestManifestAgentHostNetwork(t *testing.T) {
160161 t .Fatal ("there were no deployments returned from the manifests" )
161162 }
162163
164+ //nolint:SA5011 // agent is checked for nil above; t.Fatal prevents execution if nil
163165 if ! cmp .Equal (agent .Spec .Template .Spec .HostNetwork , testCase .expectedNetwork ) {
164166 t .Fatalf ("hostNetwork is not as expected: %v" , agent .Spec .Template .Spec .HostNetwork )
165167 }
@@ -232,6 +234,7 @@ func TestManifestAgentAffinity(t *testing.T) {
232234 t .Fatal ("there were no deployments returned from the manifests" )
233235 }
234236
237+ //nolint:SA5011 // agent is checked for nil above; t.Fatal prevents execution if nil
235238 if ! cmp .Equal (agent .Spec .Template .Spec .Affinity , testCase .expectedAffinity ) {
236239 t .Fatalf ("affinity was not as expected: %v %v" , testCase .expectedAffinity , agent .Spec .Template .Spec .Affinity )
237240 }
You can’t perform that action at this time.
0 commit comments