Fix grafana job deployment condition

The run migrator job should be deployed
if .Values.manifests.job_run_migrator is true

story: 2010696
task: 47809
Change-Id: I5717d8c6c2de270268a0e14ee4b8abb7969b07bb
This commit is contained in:
Vladimir Kozhukalov 2023-06-08 07:34:34 +03:00
parent 0053fc5737
commit 2e59208351
4 changed files with 27 additions and 2 deletions

View File

@ -15,7 +15,7 @@ apiVersion: v1
appVersion: v9.2.10 appVersion: v9.2.10
description: OpenStack-Helm Grafana description: OpenStack-Helm Grafana
name: grafana name: grafana
version: 0.1.20 version: 0.1.21
home: https://grafana.com/ home: https://grafana.com/
sources: sources:
- https://github.com/grafana/grafana - https://github.com/grafana/grafana

View File

@ -12,7 +12,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/}} */}}
{{- if .Values.manifests.deployment }} {{- if .Values.manifests.job_run_migrator }}
{{- $envAll := . }} {{- $envAll := . }}
{{- $mounts_grafana := .Values.pod.mounts.grafana.grafana }} {{- $mounts_grafana := .Values.pod.mounts.grafana.grafana }}

View File

@ -0,0 +1,24 @@
---
dependencies:
static:
grafana:
jobs: null
services: null
manifests:
job_db_init: false
job_db_init_session: false
job_db_session_sync: false
job_image_repo_sync: true
job_run_migrator: false
job_set_admin_user: false
secret_db: false
secret_db_session: false
conf:
grafana:
database:
type: sqlite3
path: /var/lib/grafana/data/sqlite3.db
session:
provider: file
provider_config: sessions
...

View File

@ -21,4 +21,5 @@ grafana:
- 0.1.18 Migrator job is now mariadb-fail-proof - 0.1.18 Migrator job is now mariadb-fail-proof
- 0.1.19 Update grafana to 9.2.10 - 0.1.19 Update grafana to 9.2.10
- 0.1.20 Upgrade osh-selenium image to latest-ubuntu_focal - 0.1.20 Upgrade osh-selenium image to latest-ubuntu_focal
- 0.1.21 Fix run migrator job deployment condition
... ...