From: mabelgaumkar1 Date: Fri, 6 May 2022 04:53:04 +0000 (+0000) Subject: Enable influxdb auth and fix helm chart dep issue X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=f0c10d0503a366146913ec1ab5cbc04bb764e32c;p=ric-plt%2Fric-dep.git Enable influxdb auth and fix helm chart dep issue 1) Enabled authentication and default admin user for InfluxDB by default. This will prevent any unauthorized access to InfluxDB 2) Fixed the issue in the helm charts. It was resulting in default user to be not enabled and influxdb helm chart was failing Issue-ID: RIC-903 Signed-off-by: mabelgaumkar1 Change-Id: I7e3fbc9a7995d6e2452351d5aa6abfa64e4ca49e --- diff --git a/helm/3rdparty/influxdb/templates/post-install-set-auth.yaml b/helm/3rdparty/influxdb/templates/post-install-set-auth.yaml index 7963412..b14d1cf 100644 --- a/helm/3rdparty/influxdb/templates/post-install-set-auth.yaml +++ b/helm/3rdparty/influxdb/templates/post-install-set-auth.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # # limitations under the License. # ################################################################################ -{{- if .Values.setDefaultUser.enabled -}} +{{ if .Values.setDefaultUser.enabled -}} apiVersion: batch/v1 kind: Job metadata: diff --git a/helm/3rdparty/influxdb/templates/secret.yaml b/helm/3rdparty/influxdb/templates/secret.yaml index c777849..7503dab 100644 --- a/helm/3rdparty/influxdb/templates/secret.yaml +++ b/helm/3rdparty/influxdb/templates/secret.yaml @@ -13,8 +13,8 @@ # See the License for the specific language governing permissions and # # limitations under the License. # ################################################################################ -{{- if .Values.setDefaultUser.enabled -}} -{{- if not (.Values.setDefaultUser.user.existingSecret) -}} +{{ if .Values.setDefaultUser.enabled -}} +{{ if not (.Values.setDefaultUser.user.existingSecret) -}} apiVersion: v1 kind: Secret metadata: diff --git a/helm/3rdparty/influxdb/values.yaml b/helm/3rdparty/influxdb/values.yaml index 2b494a4..ef7f8f1 100644 --- a/helm/3rdparty/influxdb/values.yaml +++ b/helm/3rdparty/influxdb/values.yaml @@ -102,7 +102,7 @@ enterprise: ## Defaults indicated below ## setDefaultUser: - enabled: false + enabled: true ## Image of the container used for job ## Default: appropriate/curl:latest @@ -239,8 +239,10 @@ config: retention: {} shard_precreation: {} monitor: {} - http: {} - logging: {} + http: + auth-enabled: true + logging: + level: "debug" subscriber: {} graphite: {} collectd: {}