@daocloud-proto/kpanda 0.8.14 → 0.8.15-2

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.
@@ -23,7 +23,7 @@ export enum ReleasePhase {
23
23
  }
24
24
 
25
25
  export enum ResourcePhase {
26
- PHASE_UNSPECIFIED = "PHASE_UNSPECIFIED",
26
+ RESOURCE_PHASE_UNSPECIFIED = "RESOURCE_PHASE_UNSPECIFIED",
27
27
  InProgress = "InProgress",
28
28
  Failed = "Failed",
29
29
  Current = "Current",
@@ -40,7 +40,6 @@ export type HelmRelease = {
40
40
 
41
41
  export type ReleaseStatus = {
42
42
  summary?: Summary
43
- resources?: Resource[]
44
43
  }
45
44
 
46
45
  export type Summary = {
@@ -138,6 +137,8 @@ export type CreateHelmReleaseRequest = {
138
137
  repo?: string
139
138
  timeout?: string
140
139
  wait?: boolean
140
+ atomic?: boolean
141
+ debug?: boolean
141
142
  disableHooks?: boolean
142
143
  disableOpenApiValidation?: boolean
143
144
  createNamespace?: boolean
@@ -157,6 +158,24 @@ export type GetHelmReleaseRequest = {
157
158
  name?: string
158
159
  }
159
160
 
161
+ export type ListHelmReleaseResourcesRequest = {
162
+ cluster?: string
163
+ namespace?: string
164
+ helmrelease?: string
165
+ name?: string
166
+ kind?: string
167
+ phase?: ResourcePhase
168
+ page?: number
169
+ pageSize?: number
170
+ sortBy?: KpandaIoApiTypesPage.SortBy
171
+ sortDir?: KpandaIoApiTypesPage.SortDir
172
+ }
173
+
174
+ export type ListHelmReleaseResourcesResponse = {
175
+ items?: Resource[]
176
+ pagination?: KpandaIoApiTypesPage.Pagination
177
+ }
178
+
160
179
  export type GetHelmReleaseJSONRequest = {
161
180
  cluster?: string
162
181
  namespace?: string
@@ -216,4 +235,15 @@ export type UpdateHelmReleaseResponse = {
216
235
  cluster?: string
217
236
  namespace?: string
218
237
  operationName?: string
238
+ }
239
+
240
+ export type GetHelmInstallConfigRequest = {
241
+ cluster?: string
242
+ repo?: string
243
+ name?: string
244
+ version?: string
245
+ }
246
+
247
+ export type HelmInstallConfig = {
248
+ values?: string
219
249
  }
@@ -127,6 +127,7 @@ export type GetWorkloadJSONRequest = {
127
127
  namespace?: string
128
128
  kind?: WorkloadKind
129
129
  name?: string
130
+ stable?: boolean
130
131
  }
131
132
 
132
133
  export type UpdateWorkloadByJSONRequest = {
@@ -98,4 +98,15 @@ export type DeleteJobRequest = {
98
98
  cluster?: string
99
99
  namespace?: string
100
100
  name?: string
101
+ }
102
+
103
+ export type RestartJobRequest = {
104
+ cluster?: string
105
+ namespace?: string
106
+ name?: string
107
+ resourceVersion?: string
108
+ }
109
+
110
+ export type RestartJobResponse = {
111
+ job?: Job
101
112
  }
@@ -61,10 +61,16 @@ export enum SSHInfoType {
61
61
  export enum NetworkConfigCNI {
62
62
  CNI_UNSPECIFIED = "CNI_UNSPECIFIED",
63
63
  calico = "calico",
64
- cillium = "cillium",
64
+ cilium = "cilium",
65
65
  }
66
66
 
67
- export enum NetworkConfigCalicoTunnel {
67
+ export enum CommonNetworkConfigKubeProxyMode {
68
+ KUBE_PROXY_MODE_UNSPECIFIED = "KUBE_PROXY_MODE_UNSPECIFIED",
69
+ iptables = "iptables",
70
+ ipvs = "ipvs",
71
+ }
72
+
73
+ export enum CalicoConfigCalicoTunnel {
68
74
  CALICO_TUNNEL_UNSPECIFIED = "CALICO_TUNNEL_UNSPECIFIED",
69
75
  IPIP = "IPIP",
70
76
  IPIPCrossSubnet = "IPIPCrossSubnet",
@@ -72,17 +78,20 @@ export enum NetworkConfigCalicoTunnel {
72
78
  VXLANCrossSubnet = "VXLANCrossSubnet",
73
79
  }
74
80
 
75
- export enum NetworkConfigCalicoIptablesBackendType {
81
+ export enum CalicoConfigCalicoIptablesBackendType {
76
82
  CALICO_IPTABLES_BACKEND_TYPE_UNSPECIFIED = "CALICO_IPTABLES_BACKEND_TYPE_UNSPECIFIED",
77
83
  NFT = "NFT",
78
84
  Auto = "Auto",
79
85
  Legacy = "Legacy",
80
86
  }
81
87
 
82
- export enum NetworkConfigKubeProxyMode {
83
- KUBE_PROXY_MODE_UNSPECIFIED = "KUBE_PROXY_MODE_UNSPECIFIED",
84
- iptables = "iptables",
85
- ipvs = "ipvs",
88
+ export enum CalicoAutoDetectionMethodType {
89
+ TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
90
+ FIRST_FOUND = "FIRST_FOUND",
91
+ KUBERNETES_INTERNAL_IP = "KUBERNETES_INTERNAL_IP",
92
+ CAN_REACH = "CAN_REACH",
93
+ INTERFACE_REGEX = "INTERFACE_REGEX",
94
+ SKIP_INTERFACE = "SKIP_INTERFACE",
86
95
  }
87
96
 
88
97
  export type CreateClusterRequest = {
@@ -115,12 +124,17 @@ export type KubeSparyArgs = {
115
124
  ntpConfig?: NTPConfig
116
125
  nodeConfig?: NodeConfig
117
126
  networkConfig?: NetworkConfig
118
- enableNodeLocalDns?: boolean
127
+ dnsConfig?: DNSConfig
119
128
  params?: {[key: string]: string}
120
129
  containerdInsecureRegistries?: string[]
121
130
  dockerInsecureRegistries?: string[]
122
131
  }
123
132
 
133
+ export type DNSConfig = {
134
+ enableNodeLocalDns?: boolean
135
+ upstreamDnsServers?: string[]
136
+ }
137
+
124
138
  export type GetClusterlcmOpsRequest = {
125
139
  cluster?: string
126
140
  name?: string
@@ -181,17 +195,45 @@ export type NTPConfig = {
181
195
  on?: boolean
182
196
  }
183
197
 
184
- export type NetworkConfig = {
198
+
199
+ type BaseNetworkConfig = {
185
200
  cni?: NetworkConfigCNI
186
- calicoTunnel?: NetworkConfigCalicoTunnel
187
- calicoIptablesBackend?: NetworkConfigCalicoIptablesBackendType
188
- podCIDR?: string
189
- serviceCIDR?: string
190
- kubeProxyMode?: NetworkConfigKubeProxyMode
201
+ commonNetworkConfig?: CommonNetworkConfig
202
+ }
203
+
204
+ export type NetworkConfig = BaseNetworkConfig
205
+ & OneOf<{ ciliumConfig: CiliumConfig; calicoConfig: CalicoConfig }>
206
+
207
+ export type CommonNetworkConfig = {
208
+ podIPv4CIDR?: string
209
+ serviceIPv4CIDR?: string
210
+ kubeProxyMode?: CommonNetworkConfigKubeProxyMode
191
211
  enableVip?: boolean
192
212
  kubeVipAddr?: string
193
213
  }
194
214
 
215
+ export type CiliumConfig = {
216
+ }
217
+
218
+ export type CalicoConfig = {
219
+ dualStackConfig?: CalicoDualStackConfig
220
+ autoDetectionMethod?: CalicoAutoDetectionMethod
221
+ ipv4Tunnel?: CalicoConfigCalicoTunnel
222
+ iptablesBackend?: CalicoConfigCalicoIptablesBackendType
223
+ }
224
+
225
+ export type CalicoDualStackConfig = {
226
+ enable?: boolean
227
+ ipv6Tunnel?: CalicoConfigCalicoTunnel
228
+ podIPv6CIDR?: string
229
+ serviceIPv6CIDR?: string
230
+ }
231
+
232
+ export type CalicoAutoDetectionMethod = {
233
+ type?: CalicoAutoDetectionMethodType
234
+ value?: string
235
+ }
236
+
195
237
  export type ResetClusterRequest = {
196
238
  name?: string
197
239
  }
@@ -130,6 +130,7 @@ export type GetIngressJSONRequest = {
130
130
  cluster?: string
131
131
  namespace?: string
132
132
  name?: string
133
+ stable?: boolean
133
134
  }
134
135
 
135
136
  export type GetIngressJSONResponse = {
@@ -226,6 +226,9 @@ export class Batch {
226
226
  static GetJob(req: KpandaIoApiBatchV1alpha1Job.GetJobRequest, initReq?: fm.InitReq): Promise<KpandaIoApiBatchV1alpha1Job.Job> {
227
227
  return fm.fetchReq<KpandaIoApiBatchV1alpha1Job.GetJobRequest, KpandaIoApiBatchV1alpha1Job.Job>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/jobs/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
228
228
  }
229
+ static RestartJob(req: KpandaIoApiBatchV1alpha1Job.RestartJobRequest, initReq?: fm.InitReq): Promise<KpandaIoApiBatchV1alpha1Job.RestartJobResponse> {
230
+ return fm.fetchReq<KpandaIoApiBatchV1alpha1Job.RestartJobRequest, KpandaIoApiBatchV1alpha1Job.RestartJobResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/jobs/${req["name"]}:restart`, {...initReq, method: "POST", body: JSON.stringify(req)})
231
+ }
229
232
  static DeleteJob(req: KpandaIoApiBatchV1alpha1Job.DeleteJobRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
230
233
  return fm.fetchReq<KpandaIoApiBatchV1alpha1Job.DeleteJobRequest, GoogleProtobufEmpty.Empty>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/jobs/${req["name"]}`, {...initReq, method: "DELETE"})
231
234
  }
@@ -720,6 +723,9 @@ export class Addon {
720
723
  static CreateHelmRelease(req: KpandaIoApiAddonV1alpha1Helmrelease.CreateHelmReleaseRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAddonV1alpha1Helmrelease.CreateHelmReleaseResponse> {
721
724
  return fm.fetchReq<KpandaIoApiAddonV1alpha1Helmrelease.CreateHelmReleaseRequest, KpandaIoApiAddonV1alpha1Helmrelease.CreateHelmReleaseResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/helmreleases`, {...initReq, method: "POST", body: JSON.stringify(req)})
722
725
  }
726
+ static GetHelmInstallConfig(req: KpandaIoApiAddonV1alpha1Helmrelease.GetHelmInstallConfigRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAddonV1alpha1Helmrelease.HelmInstallConfig> {
727
+ return fm.fetchReq<KpandaIoApiAddonV1alpha1Helmrelease.GetHelmInstallConfigRequest, KpandaIoApiAddonV1alpha1Helmrelease.HelmInstallConfig>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/helmrepos/${req["repo"]}/helmcharts/${req["name"]}:config`, {...initReq, method: "POST", body: JSON.stringify(req)})
728
+ }
723
729
  static ListClusterHelmReleases(req: KpandaIoApiAddonV1alpha1Helmrelease.ListClusterHelmReleasesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAddonV1alpha1Helmrelease.ListClusterHelmReleasesResponse> {
724
730
  return fm.fetchReq<KpandaIoApiAddonV1alpha1Helmrelease.ListClusterHelmReleasesRequest, KpandaIoApiAddonV1alpha1Helmrelease.ListClusterHelmReleasesResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/helmreleases?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
725
731
  }
@@ -729,6 +735,9 @@ export class Addon {
729
735
  static GetHelmRelease(req: KpandaIoApiAddonV1alpha1Helmrelease.GetHelmReleaseRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAddonV1alpha1Helmrelease.HelmRelease> {
730
736
  return fm.fetchReq<KpandaIoApiAddonV1alpha1Helmrelease.GetHelmReleaseRequest, KpandaIoApiAddonV1alpha1Helmrelease.HelmRelease>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/helmreleases/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
731
737
  }
738
+ static ListHelmReleaseResources(req: KpandaIoApiAddonV1alpha1Helmrelease.ListHelmReleaseResourcesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAddonV1alpha1Helmrelease.ListHelmReleaseResourcesResponse> {
739
+ return fm.fetchReq<KpandaIoApiAddonV1alpha1Helmrelease.ListHelmReleaseResourcesRequest, KpandaIoApiAddonV1alpha1Helmrelease.ListHelmReleaseResourcesResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/helmreleases/${req["helmrelease"]}/resources?${fm.renderURLSearchParams(req, ["cluster", "namespace", "helmrelease"])}`, {...initReq, method: "GET"})
740
+ }
732
741
  static GetHelmReleaseJSON(req: KpandaIoApiAddonV1alpha1Helmrelease.GetHelmReleaseJSONRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAddonV1alpha1Helmrelease.GetHelmReleaseJSONResponse> {
733
742
  return fm.fetchReq<KpandaIoApiAddonV1alpha1Helmrelease.GetHelmReleaseJSONRequest, KpandaIoApiAddonV1alpha1Helmrelease.GetHelmReleaseJSONResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/helmreleases/${req["name"]}/json?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
734
743
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kpanda",
3
- "version":"0.8.14",
3
+ "version":"0.8.15-2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {