We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecc03ff commit 2cdd390Copy full SHA for 2cdd390
1 file changed
controllers/workspace/util_test.go
@@ -25,6 +25,7 @@ import (
25
. "github.com/onsi/ginkgo/v2"
26
. "github.com/onsi/gomega"
27
corev1 "k8s.io/api/core/v1"
28
+ "k8s.io/utils/pointer"
29
crclient "sigs.k8s.io/controller-runtime/pkg/client"
30
31
appsv1 "k8s.io/api/apps/v1"
@@ -224,14 +225,13 @@ func scaleDeploymentToZero(deploymentName string) {
224
225
}
226
227
func devworkspaceOwnerRef(wksp *dw.DevWorkspace) metav1.OwnerReference {
- boolTrue := true
228
return metav1.OwnerReference{
229
APIVersion: "workspace.devfile.io/v1alpha2",
230
Kind: "DevWorkspace",
231
Name: wksp.Name,
232
UID: wksp.UID,
233
- Controller: &boolTrue,
234
- BlockOwnerDeletion: &boolTrue,
+ Controller: pointer.BoolPtr(true),
+ BlockOwnerDeletion: pointer.BoolPtr(true),
235
236
237
0 commit comments