Skip to content

Commit

Permalink
Revert "CSPL-2542 - Made fsGroupChangePolicy OnRootMismatch to reduce…
Browse files Browse the repository at this point in the history
… latencies"
  • Loading branch information
akondur authored Feb 28, 2024
1 parent 9f2a822 commit 514b545
Show file tree
Hide file tree
Showing 10 changed files with 90 additions and 92 deletions.
70 changes: 35 additions & 35 deletions pkg/splunk/common/urls_testingcode.go

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions pkg/splunk/enterprise/clustermanager_test.go

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions pkg/splunk/enterprise/clustermaster_test.go

Large diffs are not rendered by default.

10 changes: 4 additions & 6 deletions pkg/splunk/enterprise/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"reflect"
"strconv"

orderedmap "github.com/wk8/go-ordered-map/v2"
"github.com/wk8/go-ordered-map/v2"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
k8serrors "k8s.io/apimachinery/pkg/api/errors"
Expand Down Expand Up @@ -833,12 +833,10 @@ func updateSplunkPodTemplateWithConfig(ctx context.Context, client splcommon.Con
runAsUser := int64(41812)
fsGroup := int64(41812)
runAsNonRoot := true
fsGroupChangePolicy := corev1.FSGroupChangeOnRootMismatch
podTemplateSpec.Spec.SecurityContext = &corev1.PodSecurityContext{
RunAsUser: &runAsUser,
FSGroup: &fsGroup,
RunAsNonRoot: &runAsNonRoot,
FSGroupChangePolicy: &fsGroupChangePolicy,
RunAsUser: &runAsUser,
FSGroup: &fsGroup,
RunAsNonRoot: &runAsNonRoot,
}

livenessProbe := getLivenessProbe(ctx, cr, instanceType, spec)
Expand Down
12 changes: 6 additions & 6 deletions pkg/splunk/enterprise/indexercluster_test.go

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions pkg/splunk/enterprise/licensemanager_test.go

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions pkg/splunk/enterprise/licensemaster_test.go

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions pkg/splunk/enterprise/monitoringconsole_test.go

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions pkg/splunk/enterprise/searchheadcluster_test.go

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions pkg/splunk/enterprise/standalone_test.go

Large diffs are not rendered by default.

0 comments on commit 514b545

Please sign in to comment.