Skip to content

Commit

Permalink
[skip ci] repo-sync
Browse files Browse the repository at this point in the history
  • Loading branch information
loft-bot committed Dec 18, 2024
1 parent 3184d4d commit ce25a61
Show file tree
Hide file tree
Showing 2 changed files with 259 additions and 1 deletion.
172 changes: 171 additions & 1 deletion api/openapi-spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -2478,6 +2478,19 @@
},
"type": "object"
},
"com.github.loft-sh.api.v4.pkg.apis.management.v1.Cloud": {
"properties": {
"maintenanceWindow": {
"$ref": "#/definitions/com.github.loft-sh.api.v4.pkg.apis.management.v1.MaintenanceWindow",
"description": "MaintenanceWindow specifies the maintenance window for the cloud configuration. This is a structured representation of the time window during which maintenance can occur."
},
"releaseChannel": {
"description": "ReleaseChannel specifies the release channel for the cloud configuration. This can be used to determine which updates or versions are applied.",
"type": "string"
}
},
"type": "object"
},
"com.github.loft-sh.api.v4.pkg.apis.management.v1.Cluster": {
"description": "Cluster holds the cluster information",
"properties": {
Expand Down Expand Up @@ -3233,6 +3246,10 @@
"$ref": "#/definitions/com.github.loft-sh.api.v4.pkg.apis.management.v1.Authentication",
"description": "Authentication holds the information for authentication"
},
"cloud": {
"$ref": "#/definitions/com.github.loft-sh.api.v4.pkg.apis.management.v1.Cloud",
"description": "Cloud holkds the settings to be used exclusively in vCluster Cloud based environments and deployments."
},
"devPodSubDomain": {
"description": "DevPodSubDomain holds a subdomain in the following form *.workspace.my-domain.com",
"type": "string"
Expand Down Expand Up @@ -4416,6 +4433,19 @@
"com.github.loft-sh.api.v4.pkg.apis.management.v1.LoftUpgradeStatus": {
"type": "object"
},
"com.github.loft-sh.api.v4.pkg.apis.management.v1.MaintenanceWindow": {
"properties": {
"dayOfWeek": {
"description": "DayOfWeek specifies the day of the week for the maintenance window. It should be a string representing the day, e.g., \"Monday\", \"Tuesday\", etc.",
"type": "string"
},
"timeWindow": {
"description": "TimeWindow specifies the time window for the maintenance. It should be a string representing the time range in 24-hour format, e.g., \"02:00-03:00\".",
"type": "string"
}
},
"type": "object"
},
"com.github.loft-sh.api.v4.pkg.apis.management.v1.OIDC": {
"description": "OIDC holds oidc provider relevant information",
"properties": {
Expand Down Expand Up @@ -7216,6 +7246,54 @@
}
]
},
"com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterExternalDatabase": {
"description": "VirtualClusterExternalDatabase holds kube config request and response data for virtual clusters",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
},
"spec": {
"$ref": "#/definitions/com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterExternalDatabaseSpec"
},
"status": {
"$ref": "#/definitions/com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterExternalDatabaseStatus"
}
},
"type": "object",
"x-kubernetes-group-version-kind": [
{
"group": "management.loft.sh",
"kind": "VirtualClusterExternalDatabase",
"version": "v1"
}
]
},
"com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterExternalDatabaseSpec": {
"properties": {
"connector": {
"description": "Connector specifies the secret that should be used to connect to an external database server. The connection is used to manage a user and database for the vCluster. A data source endpoint constructed from the created user and database is returned on status. The secret specified by connector should contain the following fields: endpoint - the endpoint where the database server can be accessed user - the database username password - the password for the database username port - the port to be used in conjunction with the endpoint to connect to the databse server. This is commonly 3306",
"type": "string"
}
},
"type": "object"
},
"com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterExternalDatabaseStatus": {
"properties": {
"dataSource": {
"description": "DataSource holds a datasource endpoint constructed from the vCluster's designated user and database. The user and database are created from the given connector.",
"type": "string"
}
},
"type": "object"
},
"com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterInstance": {
"description": "VirtualClusterInstance holds the VirtualClusterInstance information",
"properties": {
Expand Down Expand Up @@ -10122,13 +10200,17 @@
"type": "string"
},
"hasHelmRelease": {
"description": "HasHelmRelease indicates whether loft has been installed via Helm",
"description": "HasHelmRelease indicates whether the vCluster Platform instance has been installed via Helm",
"type": "boolean"
},
"legalTemplate": {
"description": "LegalTemplate is a text (html) string containing the legal template to prompt to users when authenticating to Loft",
"type": "string"
},
"loftHosted": {
"description": "LoftHosted indicates whether the vCluster Platform instance is hosted and operated by Loft Labs Inc.",
"type": "boolean"
},
"loftVersion": {
"description": "LoftVersion holds the current loft version",
"type": "string"
Expand Down Expand Up @@ -21892,6 +21974,94 @@
}
]
},
"/apis/management.loft.sh/v1/namespaces/{namespace}/virtualclusterinstances/{name}/externaldatabase": {
"parameters": [
{
"description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
"in": "query",
"name": "dryRun",
"type": "string",
"uniqueItems": true
},
{
"$ref": "#/parameters/fieldManager-Qy4HdaTW"
},
{
"description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.",
"in": "query",
"name": "fieldValidation",
"type": "string",
"uniqueItems": true
},
{
"description": "name of the VirtualClusterExternalDatabase",
"in": "path",
"name": "name",
"required": true,
"type": "string",
"uniqueItems": true
},
{
"$ref": "#/parameters/namespace-vgWSWtn3"
},
{
"$ref": "#/parameters/pretty-tJGM1-ng"
}
],
"post": {
"consumes": [
"*/*"
],
"description": "create externaldatabase of a VirtualClusterInstance",
"operationId": "createManagementLoftShV1NamespacedVirtualClusterInstanceExternaldatabase",
"parameters": [
{
"in": "body",
"name": "body",
"required": true,
"schema": {
"$ref": "#/definitions/com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterExternalDatabase"
}
}
],
"produces": [
"application/json",
"application/yaml"
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterExternalDatabase"
}
},
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterExternalDatabase"
}
},
"202": {
"description": "Accepted",
"schema": {
"$ref": "#/definitions/com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterExternalDatabase"
}
}
},
"schemes": [
"https"
],
"tags": [
"managementLoftSh_v1"
],
"x-kubernetes-action": "post",
"x-kubernetes-group-version-kind": {
"group": "management.loft.sh",
"kind": "VirtualClusterExternalDatabase",
"version": "v1"
}
}
},
"/apis/management.loft.sh/v1/namespaces/{namespace}/virtualclusterinstances/{name}/kubeconfig": {
"parameters": [
{
Expand Down
88 changes: 88 additions & 0 deletions api/openapi-spec/swagger.paths.json
Original file line number Diff line number Diff line change
Expand Up @@ -7477,6 +7477,94 @@
}
]
},
"/apis/management.loft.sh/v1/namespaces/{namespace}/virtualclusterinstances/{name}/externaldatabase": {
"parameters": [
{
"description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
"in": "query",
"name": "dryRun",
"type": "string",
"uniqueItems": true
},
{
"$ref": "#/parameters/fieldManager-Qy4HdaTW"
},
{
"description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.",
"in": "query",
"name": "fieldValidation",
"type": "string",
"uniqueItems": true
},
{
"description": "name of the VirtualClusterExternalDatabase",
"in": "path",
"name": "name",
"required": true,
"type": "string",
"uniqueItems": true
},
{
"$ref": "#/parameters/namespace-vgWSWtn3"
},
{
"$ref": "#/parameters/pretty-tJGM1-ng"
}
],
"post": {
"consumes": [
"*/*"
],
"description": "create externaldatabase of a VirtualClusterInstance",
"operationId": "createManagementLoftShV1NamespacedVirtualClusterInstanceExternaldatabase",
"parameters": [
{
"in": "body",
"name": "body",
"required": true,
"schema": {
"$ref": "#/definitions/com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterExternalDatabase"
}
}
],
"produces": [
"application/json",
"application/yaml"
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterExternalDatabase"
}
},
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterExternalDatabase"
}
},
"202": {
"description": "Accepted",
"schema": {
"$ref": "#/definitions/com.github.loft-sh.api.v4.pkg.apis.management.v1.VirtualClusterExternalDatabase"
}
}
},
"schemes": [
"https"
],
"tags": [
"managementLoftSh_v1"
],
"x-kubernetes-action": "post",
"x-kubernetes-group-version-kind": {
"group": "management.loft.sh",
"kind": "VirtualClusterExternalDatabase",
"version": "v1"
}
}
},
"/apis/management.loft.sh/v1/namespaces/{namespace}/virtualclusterinstances/{name}/kubeconfig": {
"parameters": [
{
Expand Down

0 comments on commit ce25a61

Please sign in to comment.