Skip to content

Commit a751cf1

Browse files
committed
[skip ci] repo-sync
1 parent 6663338 commit a751cf1

9 files changed

+248
-5
lines changed
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
/**
2+
* Api
3+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4+
*
5+
* OpenAPI spec version: master
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
import { ManagementV1VirtualClusterExternalDatabaseSpec } from '../models/managementV1VirtualClusterExternalDatabaseSpec';
14+
import { ManagementV1VirtualClusterExternalDatabaseStatus } from '../models/managementV1VirtualClusterExternalDatabaseStatus';
15+
import { V1ObjectMeta } from '../models/V1ObjectMeta';
16+
17+
18+
/**
19+
* VirtualClusterExternalDatabase holds kube config request and response data for virtual clusters
20+
*/
21+
export class ManagementV1VirtualClusterExternalDatabase {
22+
/**
23+
* 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
24+
*/
25+
'apiVersion'?: string;
26+
/**
27+
* 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
28+
*/
29+
'kind'?: string;
30+
'metadata'?: V1ObjectMeta;
31+
'spec'?: ManagementV1VirtualClusterExternalDatabaseSpec;
32+
'status'?: ManagementV1VirtualClusterExternalDatabaseStatus;
33+
34+
static readonly discriminator: string | undefined = undefined;
35+
36+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
37+
{
38+
"name": "apiVersion",
39+
"baseName": "apiVersion",
40+
"type": "string",
41+
"format": ""
42+
},
43+
{
44+
"name": "kind",
45+
"baseName": "kind",
46+
"type": "string",
47+
"format": ""
48+
},
49+
{
50+
"name": "metadata",
51+
"baseName": "metadata",
52+
"type": "V1ObjectMeta",
53+
"format": ""
54+
},
55+
{
56+
"name": "spec",
57+
"baseName": "spec",
58+
"type": "ManagementV1VirtualClusterExternalDatabaseSpec",
59+
"format": ""
60+
},
61+
{
62+
"name": "status",
63+
"baseName": "status",
64+
"type": "ManagementV1VirtualClusterExternalDatabaseStatus",
65+
"format": ""
66+
} ];
67+
68+
static getAttributeTypeMap() {
69+
return ManagementV1VirtualClusterExternalDatabase.attributeTypeMap;
70+
}
71+
72+
public constructor() {
73+
}
74+
}
75+
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/**
2+
* Api
3+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4+
*
5+
* OpenAPI spec version: master
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
14+
15+
export class ManagementV1VirtualClusterExternalDatabaseSpec {
16+
/**
17+
* 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
18+
*/
19+
'connector'?: string;
20+
21+
static readonly discriminator: string | undefined = undefined;
22+
23+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
24+
{
25+
"name": "connector",
26+
"baseName": "connector",
27+
"type": "string",
28+
"format": ""
29+
} ];
30+
31+
static getAttributeTypeMap() {
32+
return ManagementV1VirtualClusterExternalDatabaseSpec.attributeTypeMap;
33+
}
34+
35+
public constructor() {
36+
}
37+
}
38+
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/**
2+
* Api
3+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4+
*
5+
* OpenAPI spec version: master
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
14+
15+
export class ManagementV1VirtualClusterExternalDatabaseStatus {
16+
/**
17+
* DataSource holds a datasource endpoint constructed from the vCluster\'s designated user and database. The user and database are created from the given connector.
18+
*/
19+
'dataSource'?: string;
20+
21+
static readonly discriminator: string | undefined = undefined;
22+
23+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
24+
{
25+
"name": "dataSource",
26+
"baseName": "dataSource",
27+
"type": "string",
28+
"format": ""
29+
} ];
30+
31+
static getAttributeTypeMap() {
32+
return ManagementV1VirtualClusterExternalDatabaseStatus.attributeTypeMap;
33+
}
34+
35+
public constructor() {
36+
}
37+
}
38+

gen/models/uiV1UISettingsSpec.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,18 @@ export class UiV1UISettingsSpec {
3434
*/
3535
'defaultVClusterVersion'?: string;
3636
/**
37-
* HasHelmRelease indicates whether loft has been installed via Helm
37+
* HasHelmRelease indicates whether the vCluster Platform instance has been installed via Helm
3838
*/
3939
'hasHelmRelease'?: boolean;
4040
/**
4141
* LegalTemplate is a text (html) string containing the legal template to prompt to users when authenticating to Loft
4242
*/
4343
'legalTemplate'?: string;
4444
/**
45+
* LoftHosted indicates whether the vCluster platform instance is hosted and operated by Loft Labs Inc.
46+
*/
47+
'loftHosted'?: boolean;
48+
/**
4549
* LoftVersion holds the current loft version
4650
*/
4751
'loftVersion'?: string;
@@ -113,6 +117,12 @@ export class UiV1UISettingsSpec {
113117
"type": "string",
114118
"format": ""
115119
},
120+
{
121+
"name": "loftHosted",
122+
"baseName": "loftHosted",
123+
"type": "boolean",
124+
"format": ""
125+
},
116126
{
117127
"name": "loftVersion",
118128
"baseName": "loftVersion",

gen/resources.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ import {ManagementV1UserPermissions} from "./models/managementV1UserPermissions"
6969
import {ManagementV1UserProfile} from "./models/managementV1UserProfile"
7070
import {ManagementV1User} from "./models/managementV1User"
7171
import {ManagementV1VirtualClusterAccessKey} from "./models/managementV1VirtualClusterAccessKey"
72+
import {ManagementV1VirtualClusterExternalDatabase} from "./models/managementV1VirtualClusterExternalDatabase"
7273
import {ManagementV1VirtualClusterInstanceKubeConfig} from "./models/managementV1VirtualClusterInstanceKubeConfig"
7374
import {ManagementV1VirtualClusterInstanceLog} from "./models/managementV1VirtualClusterInstanceLog"
7475
import {ManagementV1VirtualClusterInstance} from "./models/managementV1VirtualClusterInstance"
@@ -144,6 +145,7 @@ export type TGenResources = {
144145
ManagementV1UserPermissions: GroupVersionResource<ManagementV1UserPermissions>
145146
ManagementV1UserProfile: GroupVersionResource<ManagementV1UserProfile>
146147
ManagementV1VirtualClusterAccessKey: GroupVersionResource<ManagementV1VirtualClusterAccessKey>
148+
ManagementV1VirtualClusterExternalDatabase: GroupVersionResource<ManagementV1VirtualClusterExternalDatabase>
147149
ManagementV1VirtualClusterInstance: GroupVersionResource<ManagementV1VirtualClusterInstance>
148150
ManagementV1VirtualClusterInstanceKubeConfig: GroupVersionResource<ManagementV1VirtualClusterInstanceKubeConfig>
149151
ManagementV1VirtualClusterInstanceLog: GroupVersionResource<ManagementV1VirtualClusterInstanceLog>
@@ -703,6 +705,14 @@ export const GenResources: TGenResources = {
703705
namespaced: true,
704706
kind: "VirtualClusterAccessKey",
705707
},
708+
ManagementV1VirtualClusterExternalDatabase: {
709+
group: "management.loft.sh",
710+
version: "v1",
711+
resource: "virtualclusterinstances",
712+
subResource: "externaldatabase",
713+
namespaced: true,
714+
kind: "VirtualClusterExternalDatabase",
715+
},
706716
ManagementV1VirtualClusterInstance: {
707717
group: "management.loft.sh",
708718
version: "v1",

lib/index.d.ts

Lines changed: 73 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7378,14 +7378,18 @@ declare class UiV1UISettingsSpec {
73787378
*/
73797379
"defaultVClusterVersion"?: string;
73807380
/**
7381-
* HasHelmRelease indicates whether loft has been installed via Helm
7381+
* HasHelmRelease indicates whether the vCluster Platform instance has been installed via Helm
73827382
*/
73837383
"hasHelmRelease"?: boolean;
73847384
/**
73857385
* LegalTemplate is a text (html) string containing the legal template to prompt to users when authenticating to Loft
73867386
*/
73877387
"legalTemplate"?: string;
73887388
/**
7389+
* LoftHosted indicates whether the vCluster platform instance is hosted and operated by Loft Labs Inc.
7390+
*/
7391+
"loftHosted"?: boolean;
7392+
/**
73897393
* LoftVersion holds the current loft version
73907394
*/
73917395
"loftVersion"?: string;
@@ -14513,6 +14517,73 @@ declare class ManagementV1VirtualClusterAccessKey {
1451314517
}[];
1451414518
constructor();
1451514519
}
14520+
declare class ManagementV1VirtualClusterExternalDatabaseSpec {
14521+
/**
14522+
* 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
14523+
*/
14524+
"connector"?: string;
14525+
static readonly discriminator: string | undefined;
14526+
static readonly attributeTypeMap: Array<{
14527+
name: string;
14528+
baseName: string;
14529+
type: string;
14530+
format: string;
14531+
}>;
14532+
static getAttributeTypeMap(): {
14533+
name: string;
14534+
baseName: string;
14535+
type: string;
14536+
format: string;
14537+
}[];
14538+
constructor();
14539+
}
14540+
declare class ManagementV1VirtualClusterExternalDatabaseStatus {
14541+
/**
14542+
* DataSource holds a datasource endpoint constructed from the vCluster\'s designated user and database. The user and database are created from the given connector.
14543+
*/
14544+
"dataSource"?: string;
14545+
static readonly discriminator: string | undefined;
14546+
static readonly attributeTypeMap: Array<{
14547+
name: string;
14548+
baseName: string;
14549+
type: string;
14550+
format: string;
14551+
}>;
14552+
static getAttributeTypeMap(): {
14553+
name: string;
14554+
baseName: string;
14555+
type: string;
14556+
format: string;
14557+
}[];
14558+
constructor();
14559+
}
14560+
declare class ManagementV1VirtualClusterExternalDatabase {
14561+
/**
14562+
* 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
14563+
*/
14564+
"apiVersion"?: string;
14565+
/**
14566+
* 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
14567+
*/
14568+
"kind"?: string;
14569+
"metadata"?: V1ObjectMeta;
14570+
"spec"?: ManagementV1VirtualClusterExternalDatabaseSpec;
14571+
"status"?: ManagementV1VirtualClusterExternalDatabaseStatus;
14572+
static readonly discriminator: string | undefined;
14573+
static readonly attributeTypeMap: Array<{
14574+
name: string;
14575+
baseName: string;
14576+
type: string;
14577+
format: string;
14578+
}>;
14579+
static getAttributeTypeMap(): {
14580+
name: string;
14581+
baseName: string;
14582+
type: string;
14583+
format: string;
14584+
}[];
14585+
constructor();
14586+
}
1451614587
declare class ManagementV1VirtualClusterInstanceKubeConfigSpec {
1451714588
/**
1451814589
* CertificateTTL holds the ttl (in seconds) to set for the certificate associated with the returned kubeconfig. This field is optional, if no value is provided, the certificate TTL will be set to one day. If set to zero, this will cause loft to pass nil to the certificate signing request, which will result in the certificate being valid for the clusters `cluster-signing-duration` value which is typically one year.
@@ -14838,6 +14909,7 @@ export type TGenResources = {
1483814909
ManagementV1UserPermissions: GroupVersionResource<ManagementV1UserPermissions>;
1483914910
ManagementV1UserProfile: GroupVersionResource<ManagementV1UserProfile>;
1484014911
ManagementV1VirtualClusterAccessKey: GroupVersionResource<ManagementV1VirtualClusterAccessKey>;
14912+
ManagementV1VirtualClusterExternalDatabase: GroupVersionResource<ManagementV1VirtualClusterExternalDatabase>;
1484114913
ManagementV1VirtualClusterInstance: GroupVersionResource<ManagementV1VirtualClusterInstance>;
1484214914
ManagementV1VirtualClusterInstanceKubeConfig: GroupVersionResource<ManagementV1VirtualClusterInstanceKubeConfig>;
1484314915
ManagementV1VirtualClusterInstanceLog: GroupVersionResource<ManagementV1VirtualClusterInstanceLog>;

lib/index.esm.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"description": "loft-enterprise js client",
1313
"dependencies": {
14-
"@kubernetes/client-node": "0.20.0",
14+
"@kubernetes/client-node": "0.22.1",
1515
"js-cookie": "3.0.1",
1616
"json-merge-patch": "1.0.2"
1717
},

0 commit comments

Comments
 (0)