Skip to content

Commit

Permalink
Merge pull request #1295 from splunk/CSPL_2542_fsGroupChangePolicy
Browse files Browse the repository at this point in the history
CSPL-2542 - Made fsGroupChangePolicy OnRootMismatch to reduce latencies
  • Loading branch information
akondur authored Feb 28, 2024
2 parents 3327f13 + 64a7021 commit d83ace4
Show file tree
Hide file tree
Showing 10 changed files with 92 additions and 90 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: 6 additions & 4 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"

"github.com/wk8/go-ordered-map/v2"
orderedmap "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,10 +833,12 @@ 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,
RunAsUser: &runAsUser,
FSGroup: &fsGroup,
RunAsNonRoot: &runAsNonRoot,
FSGroupChangePolicy: &fsGroupChangePolicy,
}

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 d83ace4

Please sign in to comment.