Skip to content

Commit db5e433

Browse files
committed
adapt unit test to v0.22 contoller runtime changes
CR fakeclient stripts typemeta as liveclient from v0.22.x kubernetes-sigs/controller-runtime#3229 Signed-off-by: Sunnatillo <[email protected]>
1 parent f983625 commit db5e433

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

config/base/crds/bases/metal3.io_baremetalhosts.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -584,9 +584,8 @@ spec:
584584
description: Required. The taint key to be applied to a node.
585585
type: string
586586
timeAdded:
587-
description: |-
588-
TimeAdded represents the time at which the taint was added.
589-
It is only written for NoExecute taints.
587+
description: TimeAdded represents the time at which the taint
588+
was added.
590589
format: date-time
591590
type: string
592591
value:

config/render/capm3.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -584,9 +584,8 @@ spec:
584584
description: Required. The taint key to be applied to a node.
585585
type: string
586586
timeAdded:
587-
description: |-
588-
TimeAdded represents the time at which the taint was added.
589-
It is only written for NoExecute taints.
587+
description: TimeAdded represents the time at which the taint
588+
was added.
590589
format: date-time
591590
type: string
592591
value:

internal/controller/metal3.io/hostfirmwaresettings_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,9 +476,6 @@ func TestStoreHostFirmwareSettings(t *testing.T) {
476476
t.Run(tc.Scenario, func(t *testing.T) {
477477
ctx := t.Context()
478478

479-
tc.ExpectedSettings.TypeMeta = metav1.TypeMeta{
480-
Kind: "HostFirmwareSettings",
481-
APIVersion: "metal3.io/v1alpha1"}
482479
tc.ExpectedSettings.ObjectMeta = metav1.ObjectMeta{
483480
Name: hostName,
484481
Namespace: hostNamespace,

0 commit comments

Comments
 (0)