@@ -606,7 +606,7 @@ var _ = Describe("Webhook Validation", Ordered, Label("validation"), func() {
606606 By ("creating auth secret for first repo" )
607607 secret1 := & corev1.Secret {
608608 ObjectMeta : metav1.ObjectMeta {Name : repoName1 + "-auth" , Namespace : env .Namespace },
609- Immutable : ptr . To (true ),
609+ Immutable : new (true ),
610610 Data : map [string ][]byte {"username" : []byte (giteaUser ), "password" : []byte (giteaPassword )},
611611 Type : corev1 .SecretTypeBasicAuth ,
612612 }
@@ -640,7 +640,7 @@ var _ = Describe("Webhook Validation", Ordered, Label("validation"), func() {
640640 repoName2 := "conflict-repo-2"
641641 secret2 := & corev1.Secret {
642642 ObjectMeta : metav1.ObjectMeta {Name : repoName2 + "-auth" , Namespace : env .Namespace },
643- Immutable : ptr . To (true ),
643+ Immutable : new (true ),
644644 Data : map [string ][]byte {"username" : []byte (giteaUser ), "password" : []byte (giteaPassword )},
645645 Type : corev1 .SecretTypeBasicAuth ,
646646 }
@@ -681,7 +681,7 @@ var _ = Describe("Webhook Validation", Ordered, Label("validation"), func() {
681681 By ("creating auth secret" )
682682 secret := & corev1.Secret {
683683 ObjectMeta : metav1.ObjectMeta {Name : repoName + "-auth" , Namespace : env .Namespace },
684- Immutable : ptr . To (true ),
684+ Immutable : new (true ),
685685 Data : map [string ][]byte {"username" : []byte (giteaUser ), "password" : []byte (giteaPassword )},
686686 Type : corev1 .SecretTypeBasicAuth ,
687687 }
@@ -746,7 +746,7 @@ var _ = Describe("Webhook Validation", Ordered, Label("validation"), func() {
746746 By ("creating auth secret" )
747747 secret := & corev1.Secret {
748748 ObjectMeta : metav1.ObjectMeta {Name : repoName + "-auth" , Namespace : env .Namespace },
749- Immutable : ptr . To (true ),
749+ Immutable : new (true ),
750750 Data : map [string ][]byte {"username" : []byte (giteaUser ), "password" : []byte (giteaPassword )},
751751 Type : corev1 .SecretTypeBasicAuth ,
752752 }
@@ -812,7 +812,7 @@ var _ = Describe("Webhook Validation", Ordered, Label("validation"), func() {
812812 ns1 := env .Namespace
813813 secret1 := & corev1.Secret {
814814 ObjectMeta : metav1.ObjectMeta {Name : repoName + "-auth" , Namespace : ns1 },
815- Immutable : ptr . To (true ),
815+ Immutable : new (true ),
816816 Data : map [string ][]byte {"username" : []byte (giteaUser ), "password" : []byte (giteaPassword )},
817817 Type : corev1 .SecretTypeBasicAuth ,
818818 }
@@ -852,7 +852,7 @@ var _ = Describe("Webhook Validation", Ordered, Label("validation"), func() {
852852 By ("creating auth secret in second namespace" )
853853 secret2 := & corev1.Secret {
854854 ObjectMeta : metav1.ObjectMeta {Name : repoName + "-auth" , Namespace : ns2 },
855- Immutable : ptr . To (true ),
855+ Immutable : new (true ),
856856 Data : map [string ][]byte {"username" : []byte (giteaUser ), "password" : []byte (giteaPassword )},
857857 Type : corev1 .SecretTypeBasicAuth ,
858858 }
@@ -894,7 +894,7 @@ var _ = Describe("Webhook Validation", Ordered, Label("validation"), func() {
894894 By ("creating auth secret" )
895895 secret := & corev1.Secret {
896896 ObjectMeta : metav1.ObjectMeta {Name : repoName + "-auth" , Namespace : env .Namespace },
897- Immutable : ptr . To (true ),
897+ Immutable : new (true ),
898898 Data : map [string ][]byte {"username" : []byte (giteaUser ), "password" : []byte (giteaPassword )},
899899 Type : corev1 .SecretTypeBasicAuth ,
900900 }
@@ -959,7 +959,7 @@ var _ = Describe("Webhook Validation", Ordered, Label("validation"), func() {
959959 By ("creating auth secret" )
960960 secret := & corev1.Secret {
961961 ObjectMeta : metav1.ObjectMeta {Name : repoName + "-auth" , Namespace : env .Namespace },
962- Immutable : ptr . To (true ),
962+ Immutable : new (true ),
963963 Data : map [string ][]byte {"username" : []byte (giteaUser ), "password" : []byte (giteaPassword )},
964964 Type : corev1 .SecretTypeBasicAuth ,
965965 }
0 commit comments