Skip to content

Commit 4137ff3

Browse files
committed
Address CR + k8s.io/* deprecations
Signed-off-by: Stefan Büringer buringerst@vmware.com
1 parent f704ac4 commit 4137ff3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.golangci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,10 @@ linters:
261261
- linters:
262262
- staticcheck
263263
text: 'SA1019: .*\.Deprecated\.V1Beta1.* is deprecated'
264+
# CR v0.21 deprecated Result.Requeue, will be fixed incrementally and tracked via https://github.com/kubernetes-sigs/cluster-api/issues/12272
265+
- linters:
266+
- staticcheck
267+
text: 'SA1019: .*(res|result|i|j)\.Requeue is deprecated: Use `RequeueAfter` instead'
264268
- linters:
265269
- revive
266270
text: 'exported: exported method .*\.(Reconcile|SetupWithManager|SetupWebhookWithManager) should have comment or be unexported'

util/conditions/deprecated/v1beta1/unstructured_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func TestUnstructuredGetConditions(t *testing.T) {
5353
g.Expect(UnstructuredGetter(u).GetV1Beta1Conditions()).To(BeNil())
5454

5555
// GetV1Beta1Conditions should return nil for an unstructured object without conditions
56-
e := &corev1.Endpoints{}
56+
e := &corev1.Pod{}
5757
u = &unstructured.Unstructured{}
5858
g.Expect(scheme.Scheme.Convert(e, u, nil)).To(Succeed())
5959

0 commit comments

Comments
 (0)