This repository has been archived by the owner on May 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
the new driver use sql template for each operation Signed-off-by: Bourdelas Pablo <[email protected]>
- Loading branch information
Showing
29 changed files
with
585 additions
and
595 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
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 |
---|---|---|
|
@@ -39,4 +39,6 @@ myvalues.yaml | |
*sensible* | ||
|
||
# Binary | ||
kubernetes-dbaas | ||
kubernetes-dbaas | ||
.env | ||
.secrets |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -20,4 +20,4 @@ | |
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ | ||
.vscode/ |
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
24 changes: 24 additions & 0 deletions
24
charts/kubernetes-dbaas/templates/databaseclass-psql-direct.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,24 @@ | ||
apiVersion: databaseclass.dbaas.bedag.ch/v1 | ||
kind: DatabaseClass | ||
metadata: | ||
name: databaseclass-sample-psql | ||
spec: | ||
driver: "postgres-direct" | ||
operations: | ||
create: | ||
sqlTemplate: |- | ||
{{- .Files.Get "files/create.sql" | nindent 8}} | ||
inputs: | ||
{{- .Files.Get "files/inputs.yaml" | nindent 8}} | ||
delete: | ||
sqlTemplate: |- | ||
{{- .Files.Get "files/delete.sql" | nindent 8}} | ||
inputs: | ||
{{- .Files.Get "files/inputs.yaml" | nindent 8}} | ||
rotate: | ||
sqlTemplate: |- | ||
{{- .Files.Get "files/rotate.sql" | nindent 8}} | ||
inputs: | ||
{{- .Files.Get "files/inputs.yaml" | nindent 8}} | ||
secretFormat: | ||
{{- .Files.Get "files/secretFormat.yaml" | nindent 4}} |
21 changes: 0 additions & 21 deletions
21
charts/kubernetes-dbaas/templates/databaseclass-sample-psql.yaml
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.