Skip to content

Commit

Permalink
replace deprecated k8s.io/utils/pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBatschner committed Feb 16, 2024
1 parent 7c77dc4 commit 146ed57
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/operatingsystemconfig/actuator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/utils/pointer"
"k8s.io/utils/ptr"
"sigs.k8s.io/controller-runtime/pkg/client"
fakeclient "sigs.k8s.io/controller-runtime/pkg/client/fake"
"sigs.k8s.io/controller-runtime/pkg/manager"
Expand Down Expand Up @@ -55,7 +55,7 @@ var _ = Describe("Actuator", func() {
Type: susechost.OSTypeSuSECHost,
},
Purpose: extensionsv1alpha1.OperatingSystemConfigPurposeProvision,
Units: []extensionsv1alpha1.Unit{{Name: "some-unit", Content: pointer.String("foo")}},
Units: []extensionsv1alpha1.Unit{{Name: "some-unit", Content: ptr.To("foo")}},
Files: []extensionsv1alpha1.File{{Path: "/some/file", Content: extensionsv1alpha1.FileContent{Inline: &extensionsv1alpha1.FileContentInline{Data: "bar"}}}},
},
}
Expand Down
6 changes: 3 additions & 3 deletions pkg/controller/operatingsystemconfig/generator/script_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/utils/pointer"
"k8s.io/utils/ptr"

"github.com/gardener/gardener-extension-os-suse-chost/pkg/apis/memoryonechost"
"github.com/gardener/gardener-extension-os-suse-chost/pkg/controller/operatingsystemconfig/generator"
Expand All @@ -47,8 +47,8 @@ var _ = Describe("Script Generator Test", func() {
Type: memoryone.OSTypeMemoryOneCHost,
ProviderConfig: &runtime.RawExtension{
Raw: encode(&memoryonechost.OperatingSystemConfiguration{
MemoryTopology: pointer.String("3"),
SystemMemory: pointer.String("7x"),
MemoryTopology: ptr.To("3"),
SystemMemory: ptr.To("7x"),
}),
},
},
Expand Down

0 comments on commit 146ed57

Please sign in to comment.