Skip to content

Commit 5d9a48e

Browse files
committed
address feedback on PR
1 parent 550084e commit 5d9a48e

File tree

4 files changed

+15
-17
lines changed

4 files changed

+15
-17
lines changed

stacks/_templates/opensearch-dashboards.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ name: opensearch-dashboards
44
repo:
55
name: opensearch-dashboards
66
url: https://opensearch-project.github.io/helm-charts
7-
version: 3.1.0
7+
version: {{ opensearchVersion }}
88
options:
99
opensearchHosts: https://opensearch:9200
1010
image:
1111
repository: oci.stackable.tech/sdp/opensearch-dashboards
12-
tag: 3.1.0-stackable0.0.0-dev
12+
tag: "{{ opensearchVersion }}-stackable{{ stackableReleaseVersion }}"
1313
labels:
1414
stackable.tech/vendor: Stackable
1515
service:
@@ -23,9 +23,8 @@ options:
2323
stackable.tech/vendor: Stackable
2424
opensearchAccount:
2525
secret: opensearch-dashboard-user
26-
extraEnvs:
27-
- name: OPEN_SEARCH_ADMIN_PASSWORD
28-
valueFrom:
29-
secretKeyRef:
30-
name: opensearch-user
31-
key: password
26+
serviceAccount:
27+
create: false
28+
# Use the ServiceAccount of OpenSearch because its permissions are already configured to work on
29+
# OpenShift.
30+
name: opensearch-serviceaccount

stacks/logging/opensearch.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: opensearch
55
spec:
66
image:
7-
productVersion: 3.1.0
7+
productVersion: {{ opensearchVersion }}
88
pullPolicy: IfNotPresent
99
clusterConfig:
1010
vectorAggregatorConfigMapName: vector-aggregator-discovery
@@ -25,8 +25,7 @@ spec:
2525
volumeClaimTemplate:
2626
metadata:
2727
annotations:
28-
secrets.stackable.tech/scope: node,pod,service=opensearch,service=opensearch-nodes-cluster-manager-headless
29-
envOverrides:
28+
secrets.stackable.tech/scope: node,pod,service=opensearch,service=opensearch-nodes-default-headless
3029
configOverrides:
3130
opensearch.yml:
3231
# Disable memory mapping in this stack; If memory mapping were activated, the kernel setting
@@ -123,8 +122,6 @@ stringData:
123122
authz: {}
124123
internal_users.yml: |
125124
---
126-
# The hash value is a bcrypt hash and can be generated with plugin/tools/hash.sh
127-
128125
_meta:
129126
type: internalusers
130127
config_version: 2

stacks/logging/setup-opensearch-dashboards.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ spec:
1717
key: password
1818
command:
1919
- bash
20-
- -x
2120
- -euo
2221
- pipefail
2322
- -c

stacks/stacks-v2.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,12 @@ stacks:
9999
- name: openSearchDashboardPassword
100100
description: Password of OpenSearch Dashboard user
101101
default: kibanaserverkibanaserver
102-
- name: setSysctlMaxMapCount
103-
description: Wether an init-container should be used to increase 'sysctl -w vm.max_map_count'. This requires to spawn an init-container with runsAsUser 0 privileges, which some clusters prohibit. You can increase 'vm.max_map_count' on all of the kubernetes nodes manually and set this to 'false'.
104-
default: "true"
102+
- name: opensearchVersion
103+
description: Version of OpenSearch and OpenSearch Dashboards to deploy
104+
default: 3.1.0
105+
- name: stackableReleaseVersion
106+
description: The Stackable release to be used for the OpenSearch Dashboards image tag
107+
default: 0.0.0-dev
105108
observability:
106109
description: >-
107110
An observability stack with auto-injection of the opentelemetry-collector sidecar to receive traces/logs/metrics via OTLP, and send them to Jaeger/Tempo/Loki.

0 commit comments

Comments
 (0)