@@ -33,7 +33,7 @@ import (
33
33
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
34
34
"k8s.io/apimachinery/pkg/runtime/schema"
35
35
"k8s.io/client-go/tools/record"
36
- "k8s.io/utils/pointer "
36
+ "k8s.io/utils/ptr "
37
37
"sigs.k8s.io/controller-runtime/pkg/client/fake"
38
38
39
39
"github.com/fluxcd/pkg/apis/meta"
@@ -616,7 +616,7 @@ func TestAtomicRelease_Reconcile_Scenarios(t *testing.T) {
616
616
spec : func (spec * v2.HelmReleaseSpec ) {
617
617
spec .Install = & v2.Install {
618
618
Remediation : & v2.InstallRemediation {
619
- RemediateLastFailure : pointer . Bool (true ),
619
+ RemediateLastFailure : ptr . To (true ),
620
620
},
621
621
}
622
622
spec .Uninstall = & v2.Uninstall {
@@ -635,7 +635,7 @@ func TestAtomicRelease_Reconcile_Scenarios(t *testing.T) {
635
635
spec : func (spec * v2.HelmReleaseSpec ) {
636
636
spec .Install = & v2.Install {
637
637
Remediation : & v2.InstallRemediation {
638
- RemediateLastFailure : pointer . Bool (true ),
638
+ RemediateLastFailure : ptr . To (true ),
639
639
},
640
640
}
641
641
spec .Test = & v2.Test {
@@ -740,7 +740,7 @@ func TestAtomicRelease_Reconcile_Scenarios(t *testing.T) {
740
740
spec : func (spec * v2.HelmReleaseSpec ) {
741
741
spec .Upgrade = & v2.Upgrade {
742
742
Remediation : & v2.UpgradeRemediation {
743
- RemediateLastFailure : pointer . Bool (true ),
743
+ RemediateLastFailure : ptr . To (true ),
744
744
},
745
745
}
746
746
},
@@ -778,7 +778,7 @@ func TestAtomicRelease_Reconcile_Scenarios(t *testing.T) {
778
778
spec .Upgrade = & v2.Upgrade {
779
779
Remediation : & v2.UpgradeRemediation {
780
780
Strategy : & strategy ,
781
- RemediateLastFailure : pointer . Bool (true ),
781
+ RemediateLastFailure : ptr . To (true ),
782
782
},
783
783
}
784
784
spec .Uninstall = & v2.Uninstall {
@@ -816,7 +816,7 @@ func TestAtomicRelease_Reconcile_Scenarios(t *testing.T) {
816
816
spec : func (spec * v2.HelmReleaseSpec ) {
817
817
spec .Upgrade = & v2.Upgrade {
818
818
Remediation : & v2.UpgradeRemediation {
819
- RemediateLastFailure : pointer . Bool (true ),
819
+ RemediateLastFailure : ptr . To (true ),
820
820
},
821
821
}
822
822
spec .Test = & v2.Test {
0 commit comments