-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added initial support for MySQL as a database backend
Since it was added as subchart (from bitnami), the following steps are needed before deployment. ``` cd build/helm helm dependency update keylime ``` In addition to it, tweaked a little bit the messages in NOTES.txt This uses randomly generated password which persist accross upgrades Here we also have a new Makefile, providing options to deploy/undeploy/update/debug Signed-off-by: Marcio Silva <marcio.a.silva@ibm.com>
- Loading branch information
1 parent
9ac2418
commit 39db82f
Showing
14 changed files
with
207 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
values.yaml | ||
/build/artifacts/** | ||
!/build/artifacts/.keepme | ||
/build/helm/**.tgz | ||
/build/helm/values.yaml | ||
/build/helm/*/*.lock | ||
/build/helm/*/charts/mysql* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
build/helm/keylime/charts/keylime-init/templates/capw-secret.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{- if .Values.global.ca.generate -}} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "keylime.ca.secret.password" . }} | ||
labels: | ||
{{- include "init.labels" . | nindent 4 }} | ||
annotations: | ||
"helm.sh/resource-policy": "keep" | ||
"helm.sh/hook": pre-install | ||
type: Opaque | ||
data: | ||
KEYLIME_CA_PASSWORD: {{ printf "%s" (include "keylime.ca.secret.passwordcontents" .) }} | ||
{{- end -}} |
15 changes: 15 additions & 0 deletions
15
build/helm/keylime/charts/keylime-init/templates/mysql-secret.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{{- if .Values.global.database.mysql.enable }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "keylime.mysql.secret.password" . }} | ||
labels: | ||
{{- include "init.labels" . | nindent 4 }} | ||
annotations: | ||
"helm.sh/resource-policy": "keep" | ||
"helm.sh/hook": pre-install | ||
type: Opaque | ||
data: | ||
mysql-root-password: {{ printf "%s" (include "keylime.mysql.secret.passwordcontents" .) }} | ||
mysql-password: {{ printf "%s" (include "keylime.mysql.secret.passwordcontents" .) }} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters