Skip to content

Commit

Permalink
Address review comments, rd 1
Browse files Browse the repository at this point in the history
  • Loading branch information
gerlowskija committed Jan 10, 2025
1 parent 116e225 commit 4188cdf
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions controllers/solrcloud_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/intstr"
pointer "k8s.io/utils/pointer"
"strconv"
"strings"
)
Expand All @@ -39,11 +40,6 @@ func newBoolPtr(value bool) *bool {
return &newBool
}

func newIntPtr(value int64) *int64 {
newInt := value
return &newInt
}

var _ = FDescribe("SolrCloud controller - General", func() {
var (
solrCloud *solrv1beta1.SolrCloud
Expand Down Expand Up @@ -225,7 +221,7 @@ var _ = FDescribe("SolrCloud controller - General", func() {
ContainerSecurityContext: &corev1.SecurityContext{
RunAsNonRoot: newBoolPtr(true),
ReadOnlyRootFilesystem: newBoolPtr(true),
RunAsUser: newIntPtr(123),
RunAsUser: pointer.Int64(123),
Capabilities: &corev1.Capabilities{
Add: []corev1.Capability{"someCapability"},
},
Expand Down

0 comments on commit 4188cdf

Please sign in to comment.