@daocloud-proto/kpanda 0.9.7-2 → 0.9.7-24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -42,6 +42,7 @@ export type ListClusterHelmOperationsRequest = {
|
|
|
42
42
|
sortBy?: KpandaIoApiTypesPage.SortBy
|
|
43
43
|
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
44
44
|
name?: string
|
|
45
|
+
releaseName?: string
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
export type ListClusterHelmOperationsResponse = {
|
|
@@ -59,6 +60,7 @@ export type ListHelmOperationsRequest = {
|
|
|
59
60
|
annotations?: {[key: string]: string}
|
|
60
61
|
sortBy?: KpandaIoApiTypesPage.SortBy
|
|
61
62
|
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
63
|
+
releaseName?: string
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
export type ListHelmOperationsResponse = {
|
|
@@ -31,7 +31,7 @@ export enum Phase {
|
|
|
31
31
|
Blocked = "Blocked",
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
export enum
|
|
34
|
+
export enum KubesprayArgsRuntime {
|
|
35
35
|
RUNTIME_UNSPECIFIED = "RUNTIME_UNSPECIFIED",
|
|
36
36
|
containerd = "containerd",
|
|
37
37
|
docker = "docker",
|
|
@@ -104,7 +104,7 @@ export type CreateClusterRequest = {
|
|
|
104
104
|
describe?: string
|
|
105
105
|
region?: string
|
|
106
106
|
zone?: string
|
|
107
|
-
|
|
107
|
+
kubesprayArgs?: KubesprayArgs
|
|
108
108
|
preinstallAddons?: AddonInfo[]
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -118,8 +118,8 @@ export type UpgradeClusterRequest = {
|
|
|
118
118
|
kubernetesVersion?: string
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
export type
|
|
122
|
-
runtime?:
|
|
121
|
+
export type KubesprayArgs = {
|
|
122
|
+
runtime?: KubesprayArgsRuntime
|
|
123
123
|
runtimeVersion?: string
|
|
124
124
|
kubernetesVersion?: string
|
|
125
125
|
ntpConfig?: NTPConfig
|
|
@@ -193,7 +193,9 @@ export type SSHInfo = BaseSSHInfo
|
|
|
193
193
|
& OneOf<{ pass: string; secretName: string }>
|
|
194
194
|
|
|
195
195
|
export type NTPConfig = {
|
|
196
|
-
|
|
196
|
+
enable?: boolean
|
|
197
|
+
manageConfig?: boolean
|
|
198
|
+
servers?: string[]
|
|
197
199
|
}
|
|
198
200
|
|
|
199
201
|
|
|
@@ -283,7 +285,7 @@ export type ClusterlcmOpsStatus = {
|
|
|
283
285
|
}
|
|
284
286
|
|
|
285
287
|
export type ListAvailableVersionsRequest = {
|
|
286
|
-
|
|
288
|
+
kubesprayImageVersion?: string
|
|
287
289
|
}
|
|
288
290
|
|
|
289
291
|
export type ListAvailableVersionsResponsePreferredVersion = {
|
|
@@ -671,7 +671,7 @@ export class Clusterlcm {
|
|
|
671
671
|
return fm.fetchReq<KpandaIoApiClusterlcmV1alpha1Clusterlcm.CreateClusterRequest, KpandaIoApiClusterlcmV1alpha1Clusterlcm.ClusterlcmResponse>(`/apis/kpanda.io/v1alpha1/cluster-lcm`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
672
672
|
}
|
|
673
673
|
static ListAvailableVersions(req: KpandaIoApiClusterlcmV1alpha1Clusterlcm.ListAvailableVersionsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClusterlcmV1alpha1Clusterlcm.ListAvailableVersionsResponse> {
|
|
674
|
-
return fm.fetchReq<KpandaIoApiClusterlcmV1alpha1Clusterlcm.ListAvailableVersionsRequest, KpandaIoApiClusterlcmV1alpha1Clusterlcm.ListAvailableVersionsResponse>(`/apis/kpanda.io/v1alpha1/cluster-lcm/
|
|
674
|
+
return fm.fetchReq<KpandaIoApiClusterlcmV1alpha1Clusterlcm.ListAvailableVersionsRequest, KpandaIoApiClusterlcmV1alpha1Clusterlcm.ListAvailableVersionsResponse>(`/apis/kpanda.io/v1alpha1/cluster-lcm/kubespray/available-versions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
675
675
|
}
|
|
676
676
|
static UpgradeCluster(req: KpandaIoApiClusterlcmV1alpha1Clusterlcm.UpgradeClusterRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClusterlcmV1alpha1Clusterlcm.ClusterlcmResponse> {
|
|
677
677
|
return fm.fetchReq<KpandaIoApiClusterlcmV1alpha1Clusterlcm.UpgradeClusterRequest, KpandaIoApiClusterlcmV1alpha1Clusterlcm.ClusterlcmResponse>(`/apis/kpanda.io/v1alpha1/cluster-lcm/${req["name"]}:upgrade`, {...initReq, method: "POST", body: JSON.stringify(req)})
|