Skip to content

Commit

Permalink
enable the security context for plugins and clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
mershad-manesh committed Oct 10, 2023
1 parent 7314948 commit 756e68b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
Binary file removed docs/OpenShift-1.1.0-Beta1-doc.docx
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/antora.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: opennmshelmcharts
version: '1.0.0'
version: '1.1.0'
title: Helm Charts (Kubernetes)
nav:
- modules/ROOT/nav.adoc
1 change: 0 additions & 1 deletion horizon/scripts/onms-core-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
# POSTGRES_SSL_FACTORY
# POSTGRES_SSL_MODE
# POSTGRES_USER
# ON_OPENSHIFT

set -euo pipefail
trap 's=$?; echo >&2 "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR
Expand Down
16 changes: 10 additions & 6 deletions horizon/templates/opennms-core.statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,11 @@ spec:
image: {{ .Values.core.configuration.alecImage.repository }}:{{ .Values.core.configuration.alecImage.tag }}
imagePullPolicy: {{ .Values.core.configuration.alecImage.pullPolicy }}
command: [ cp, /plugins/opennms-alec-plugin.kar, /opennms-deploy ]
#securityContext: # To guarantee ownership of the KAR file so that OpenNMS won't complain.
# runAsUser: 10001
# runAsGroup: 10001
{{- if eq (include "onOpenShift" .) "false" }}
securityContext: # To guarantee ownership of the KAR file so that OpenNMS won't complain.
runAsUser: 10001
runAsGroup: 10001
{{- end }}
volumeMounts:
- name: deploy
mountPath: /opennms-deploy # Required by the init script - DEPLOY_DIR
Expand All @@ -75,9 +77,11 @@ spec:
image: {{ .Values.core.configuration.cortexTssImage.repository }}:{{ .Values.core.configuration.cortexTssImage.tag }}
imagePullPolicy: {{ .Values.core.configuration.cortexTssImage.pullPolicy }}
command: [ cp, /plugins/opennms-cortex-tss-plugin.kar, /opennms-deploy ]
#securityContext: # To guarantee ownership of the KAR file so that OpenNMS won't complain.
# runAsUser: 10001
# runAsGroup: 10001
{{- if eq (include "onOpenShift" .) "false" }}
securityContext: # To guarantee ownership of the KAR file so that OpenNMS won't complain.
runAsUser: 10001
runAsGroup: 10001
{{- end }}
volumeMounts:
- name: deploy
mountPath: /opennms-deploy # Required by the init script - DEPLOY_DIR
Expand Down

0 comments on commit 756e68b

Please sign in to comment.