ci: fix golangCI lint remove k8s.io/utils/pointer
golangci linter was throughing error `k8s.io/utils/pointer`
package is deprecated. So, I have removed that.
Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit a25071ac29)
This commit is contained in:
1 parent
00b941be28
commit
b4e94f75cd
6 files changed
+46
-46
No files matched your search
@@ -38,7 +38,6 @@ import (
|
||||
kerrors "k8s.io/apimachinery/pkg/api/errors"
|
||||
"k8s.io/apimachinery/pkg/api/resource"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/utils/pointer"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -56,7 +55,7 @@ const (
|
||||
ExternalMgrAppName = "rook-ceph-mgr-external"
|
||||
ExternalCephExporterName = "rook-ceph-exporter-external"
|
||||
ServiceExternalMetricName = "http-external-metrics"
|
||||
CephUserID = 167
|
||||
CephUserID = int64(167)
|
||||
livenessProbeTimeoutSeconds int32 = 5
|
||||
livenessProbeInitialDelaySeconds int32 = 10
|
||||
startupProbeFailuresDaemonDefault int32 = 6 // multiply by 10 = effective startup timeout
|
||||
@@ -686,8 +685,9 @@ func PodSecurityContext() *v1.SecurityContext {
|
||||
// PodSecurityContext detects if the pod needs privileges to run
|
||||
func CephSecurityContext() *v1.SecurityContext {
|
||||
context := PodSecurityContext()
|
||||
context.RunAsUser = pointer.Int64(CephUserID)
|
||||
context.RunAsGroup = pointer.Int64(CephUserID)
|
||||
cephUserID := CephUserID
|
||||
context.RunAsUser = &cephUserID
|
||||
context.RunAsGroup = &cephUserID
|
||||
return context
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user