Skip to content

Commit

Permalink
Release 1.0.22
Browse files Browse the repository at this point in the history
  • Loading branch information
kerny3d committed Jan 26, 2024
1 parent 479b439 commit 3a80568
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 13 deletions.
11 changes: 11 additions & 0 deletions charts/knowage/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [1.0.22] - 2024-01-24

### Added

- Type and initialiation flag for DB
- Type for cache

### Changed

### Fixed

## [1.0.21] - 2024-01-24

### Added
Expand Down
2 changes: 1 addition & 1 deletion charts/knowage/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

apiVersion: v2
name: knowage
version: 1.0.21
version: 1.0.22
kubeVersion: ">= 1.22.0-0"
description: A Helm chart for Kubernetes Suite
type: application
Expand Down
21 changes: 21 additions & 0 deletions charts/knowage/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -574,3 +574,24 @@ For R.
{{ printf "%s-%s" (include "knowage.fullname" .) "r" }}
{{- end }}
{{/*
Type of the DB
*/}}
{{- define "knowage.db.type" -}}
{{ default (((.Values.knowage).db).type) | default "MYSQL" }}
{{- end }}
{{/*
DB initialization
*/}}
{{- define "knowage.db.init" -}}
{{ default (((.Values.knowage).db).initialize) | default "true" }}
{{- end }}
{{/*
Type of the cache
*/}}
{{- define "knowage.cache.type" -}}
{{ default (((.Values.knowage).cache).type) | default "MYSQL" }}
{{- end }}
6 changes: 6 additions & 0 deletions charts/knowage/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ spec:
configMapKeyRef:
name: {{ include "knowage.config" . }}
key: dbPort
- name: DB_TYPE
value: {{ include "knowage.db.type" . }}
- name: DB_DO_INITIALIZATION
value: {{ include "knowage.db.init" . }}

- name: CACHE_DB_USER
valueFrom:
Expand All @@ -181,6 +185,8 @@ spec:
configMapKeyRef:
name: {{ include "knowage.config" . }}
key: cacheDbPort
- name: CACHE_TYPE
value: {{ include "knowage.cache.type" . }}

- name: HMAC_KEY
valueFrom:
Expand Down
27 changes: 15 additions & 12 deletions charts/knowage/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,22 @@ knowage:
# Databases properties.
#
db:
host: # Needed if you use external DB
port: # Needed if you use external DB
user: "knowage"
pass: # Optional : random value if not provided
rootPass: # Optional : random value if not provided
name: "knowage_master"
host: # Needed if you use external DB
port: # Needed if you use external DB
user: "knowage"
pass: # Optional: random value if not provided
rootPass: # Optional: random value if not provided
name: "knowage_master"
type: "MYSQL" # Optional: default to MYSQL, one between MYSQL, MARIADB, ORACLE (needs the driver) and POSTGRES
initialize: true # Optional: default to true, write everything else if you want to skip DB initialization, only available for MYSQL and MARIADB
cache:
host: # Needed if you use external DB
port: # Needed if you use external DB
user: "knowage"
pass: # Optional : random value if not provided
rootPass: # Optional : random value if not provided
name: "knowage_cache"
host: # Needed if you use external DB
port: # Needed if you use external DB
user: "knowage"
pass: # Optional: random value if not provided
rootPass: # Optional: random value if not provided
name: "knowage_cache"
type: "MYSQL" # Optional: default to MYSQL, one between MYSQL, MARIADB, ORACLE (needs the driver) and POSTGRES

#
# Security properties.
Expand Down

0 comments on commit 3a80568

Please sign in to comment.