Skip to content

Commit

Permalink
Merge branch 'develop' into operator-upgrade-31
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav-splunk authored Oct 2, 2023
2 parents 9c9705f + d61f383 commit 6563281
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/examples/advanced/hwf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
name: cm-example
licenseManagerRef:
name: lm-example
replicas: 1
replicas: 1
appRepo:
appsRepoPollIntervalSeconds: 600
defaults:
Expand Down
2 changes: 1 addition & 1 deletion config/examples/advanced/hwf_azure_blob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
name: cm-example
licenseManagerRef:
name: lm-example
replicas: 1
replicas: 1
appRepo:
appsRepoPollIntervalSeconds: 600
defaults:
Expand Down
2 changes: 1 addition & 1 deletion docs/Ingress.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ spec:
serviceTemplate:
spec:
ports:
- name: splunktest
- name: tls-splunktest
port: 9998
protocol: TCP
targetPort: 9998
Expand Down
5 changes: 4 additions & 1 deletion docs/MultisiteExamples.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ Limitation: all the IndexerCluster resources must be located in the same namespa

#### Deploy the cluster-manager

Note: the image version is defined in these resources as this allows to control the upgrade cycle
Note:
* The image version is defined in these resources as this allows to control the upgrade cycle
* For all available default parameters refer to [splunk-ansible default.yml.spec.md](https://github.com/splunk/splunk-ansible/blob/develop/docs/advanced/default.yml.spec.md)

```yaml
cat <<EOF | kubectl apply -n splunk-operator -f -
Expand Down Expand Up @@ -133,6 +135,7 @@ Additional ansible default parameters must be set to activate multisite:
* `multisite_master`: which should reference the cluster-manager service of the target indexer cluster
* `site`: which should in general be set to `site: site0` to disable search affinity ([documentation for more details]
(https://docs.splunk.com/Documentation/Splunk/latest/DistSearch/DeploymultisiteSHC#Integrate_a_search_head_cluster_with_a_multisite_indexer_cluster))
* For all available default parameters refer to [splunk-ansible default.yml.spec.md](https://github.com/splunk/splunk-ansible/blob/develop/docs/advanced/default.yml.spec.md)

```yaml
cat <<EOF | kubectl apply -n splunk-operator -f -
Expand Down
3 changes: 3 additions & 0 deletions helm-chart/splunk-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ spec:
{{- end }}
labels:
{{- include "splunk-operator.selectorLabels" . | nindent 8 }}
{{- if .Values.splunkOperator.podLabels }}
{{ toYaml .Values.splunkOperator.podLabels | indent 8 }}
{{- end }}
spec:
{{- with .Values.splunkOperator.imagePullSecrets }}
imagePullSecrets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ spec:
protocol: TCP
targetPort: https
selector:
{{- include "splunk-operator.labels" . | nindent 4 }}
{{- include "splunk-operator.selectorLabels" . | nindent 4 }}
3 changes: 3 additions & 0 deletions helm-chart/splunk-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ splunkOperator:
# Add pod annotations to Splunk Operator deployment pod
podAnnotations: {}

# Add pod labels to Splunk Operator deployment pod
podLabels: {}

# Set security context for manager container, default ensures that no child process of manager can gain more privileges than manager
# reference: https://kubernetes.io/docs/concepts/security/pod-security-policy/#privilege-escalation
containerSecurityContext:
Expand Down

0 comments on commit 6563281

Please sign in to comment.