Skip to content

Commit

Permalink
go run hack/schema/main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
rmweir committed Oct 6, 2024
1 parent e9eb637 commit 0134bf2
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
32 changes: 31 additions & 1 deletion chart/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@
"description": "Embedded defines that an embedded database (sqlite) should be used as the backend for the virtual cluster"
},
"external": {
"$ref": "#/$defs/DatabaseKine",
"$ref": "#/$defs/ExternalDatabaseKine",
"description": "External defines that an external database should be used as the backend for the virtual cluster"
}
},
Expand Down Expand Up @@ -1574,6 +1574,36 @@
"type": "object",
"description": "ExternalConfig holds external configuration"
},
"ExternalDatabaseKine": {
"properties": {
"enabled": {
"type": "boolean",
"description": "Enabled defines if the database should be used."
},
"dataSource": {
"type": "string",
"description": "DataSource is the kine dataSource to use for the database. This depends on the database format.\nThis is optional for the embedded database. Examples:\n* mysql: mysql://username:password@tcp(hostname:3306)/k3s\n* postgres: postgres://username:password@hostname:5432/k3s"
},
"keyFile": {
"type": "string",
"description": "KeyFile is the key file to use for the database. This is optional."
},
"certFile": {
"type": "string",
"description": "CertFile is the cert file to use for the database. This is optional."
},
"caFile": {
"type": "string",
"description": "CaFile is the ca file to use for the database. This is optional."
},
"connector": {
"type": "string",
"description": "Connector specifies a secret located in a connected vCluster Platform that contains database server connection information\nto be used by Platform to create a database and database user for the vCluster.\nand non-privileged user. A kine endpoint should be created using the database and user on Platform registration.\nThis is optional."
}
},
"additionalProperties": false,
"type": "object"
},
"ExternalEtcdHighAvailability": {
"properties": {
"replicas": {
Expand Down
5 changes: 5 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,11 @@ controlPlane:
# * mysql: mysql://username:password@tcp(hostname:3306)/k3s
# * postgres: postgres://username:password@hostname:5432/k3s
dataSource: ""
# Connector specifies a secret located in a connected vCluster Platform that contains database server connection information
# to be used by Platform to create a database and database user for the vCluster.
# and non-privileged user. A kine endpoint should be created using the database and user on Platform registration.
# This is optional.
connector: ""
# CertFile is the cert file to use for the database. This is optional.
certFile: ""
# KeyFile is the key file to use for the database. This is optional.
Expand Down

0 comments on commit 0134bf2

Please sign in to comment.