Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix postInitApplicationSQL #54

Merged
merged 3 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions charts/cnpg-cluster/values.schema.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://raw.githubusercontent.com/socialgouv/helm-charts/v1/charts/cnpg-cluster/values.schema.json",
"$schema": "http://json-schema.org/draft-07/schema",
"required": [],
"properties": {
"instances": {
Expand Down Expand Up @@ -61,7 +61,8 @@
},
"priorityClassName": {
"type": ["string"],
"title": "Name of the priority class which will be used in every generated Pod, if the PriorityClass specified does not exist, the pod will not be able to schedule. Please refer to https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass for more information"
"title": "Name of the priority class which will be used in every generated Pod",
"description": "Name of the priority class which will be used in every generated Pod, if the PriorityClass specified does not exist, the pod will not be able to schedule. Please refer to https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass for more information"
},
"tolerations": {
"type": ["array"],
Expand Down Expand Up @@ -126,7 +127,7 @@
"sqlDumpRetentionDays": {
"type": ["string"],
"title": "Retention period in days for SQL dumps",
"default": "30"
"default": "\"30\""
},
"immediate": {
"type": ["boolean"],
Expand Down Expand Up @@ -249,8 +250,7 @@
"targetTime": {
"type": ["string"],
"title": "Time to restore from, in RFC3339 format https://datatracker.ietf.org/doc/html/rfc3339",
"description": "Relative to Postgres server timezone",
"default": "\"2020-11-26T15:22:00\""
"description": "Relative to Postgres server timezone"
},
"barmanObjectStore": {
"type": ["object", "null"],
Expand All @@ -260,7 +260,10 @@
}
},
"postInitApplicationSQL": {
"type": ["string"],
"type": ["array"],
"items": {
"type": "string"
},
"title": "List of SQL queries to be executed as a superuser in the application database right after is created - to be used with extreme care (by default empty)"
},
"postInitApplicationSQLRefs": {
Expand Down
6 changes: 3 additions & 3 deletions charts/cnpg-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ backup:
# @param {string} [retentionPolicy] RetentionPolicy is the retention policy to be used for backups and WALs (i.e. '60d').
retentionPolicy: 30d

# @param {string} [sqlDumpRetentionDays] Retention period in days for sql dumps
# @param {string} [sqlDumpRetentionDays] Retention period in days for SQL dumps
sqlDumpRetentionDays: "30"

# @param {boolean} [enabled] If the first backup has to be immediately start after creation or not
Expand Down Expand Up @@ -209,8 +209,8 @@ recovery:
# name:
# key:

# @param {string} [postInitApplicationSQL] List of SQL queries to be executed as a superuser in the application database right after is created - to be used with extreme care (by default empty)
postInitApplicationSQL: ""
# @param {string[]} [postInitApplicationSQL] List of SQL queries to be executed as a superuser in the application database right after is created - to be used with extreme care (by default empty)
postInitApplicationSQL: []

# Points references to ConfigMaps or Secrets which contain SQL files, the general implementation order to these references is from all Secrets to all ConfigMaps, and inside Secrets or ConfigMaps, the implementation order is same as the order of each array (by default empty
# See https://cloudnative-pg.io/documentation/current/api_reference/#postinitapplicationsqlrefs
Expand Down
Loading