From 04765c4d4cfdad8a5f3bbe92600614ff2d4512d0 Mon Sep 17 00:00:00 2001 From: jessebot Date: Tue, 26 Mar 2024 15:06:22 +0100 Subject: [PATCH] add programming directive to user creation script configmap script --- charts/netmaker/Chart.yaml | 2 +- charts/netmaker/README.md | 2 +- charts/netmaker/templates/netmaker-admin-configmap.yaml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/charts/netmaker/Chart.yaml b/charts/netmaker/Chart.yaml index d8b53d8..a450680 100644 --- a/charts/netmaker/Chart.yaml +++ b/charts/netmaker/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.11.5 +version: 0.11.6 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/netmaker/README.md b/charts/netmaker/README.md index 32b61db..0a7b99e 100644 --- a/charts/netmaker/README.md +++ b/charts/netmaker/README.md @@ -1,6 +1,6 @@ # netmaker -![Version: 0.11.5](https://img.shields.io/badge/Version-0.11.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.23.0](https://img.shields.io/badge/AppVersion-v0.23.0-informational?style=flat-square) +![Version: 0.11.6](https://img.shields.io/badge/Version-0.11.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.23.0](https://img.shields.io/badge/AppVersion-v0.23.0-informational?style=flat-square) A Helm chart to run HA Netmaker on Kubernetes diff --git a/charts/netmaker/templates/netmaker-admin-configmap.yaml b/charts/netmaker/templates/netmaker-admin-configmap.yaml index dd0195d..52c97df 100644 --- a/charts/netmaker/templates/netmaker-admin-configmap.yaml +++ b/charts/netmaker/templates/netmaker-admin-configmap.yaml @@ -9,5 +9,6 @@ metadata: "helm.sh/hook-weight": "-5" data: create_admin_user.sh: | + #!/bin/bash curl --location "https://$SERVER_HTTP_HOST/api/users/adm/createsuperadmin" --header 'Content-Type: application/json' --data "{\"username\":\"$ADMIN_USER\",\"password\":\"$ADMIN_PASSWORD\"}" {{- end }}