@daocloud-proto/kpanda 0.8.14-4 → 0.8.14-40
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.
- package/kpanda.io/api/addon/v1alpha1/helmrelease.pb.ts +19 -2
- package/kpanda.io/api/apps/v1alpha1/request.pb.ts +1 -0
- package/kpanda.io/api/clusterlcm/v1alpha1/clusterlcm.pb.ts +56 -14
- package/kpanda.io/api/networking/v1alpha1/ingress.pb.ts +1 -0
- package/kpanda.io/api/v1alpha1/kpanda.pb.ts +3 -0
- package/package.json +1 -1
|
@@ -23,7 +23,7 @@ export enum ReleasePhase {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
export enum ResourcePhase {
|
|
26
|
-
|
|
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 = {
|
|
@@ -157,6 +156,24 @@ export type GetHelmReleaseRequest = {
|
|
|
157
156
|
name?: string
|
|
158
157
|
}
|
|
159
158
|
|
|
159
|
+
export type ListHelmReleaseResourcesRequest = {
|
|
160
|
+
cluster?: string
|
|
161
|
+
namespace?: string
|
|
162
|
+
helmrelease?: string
|
|
163
|
+
name?: string
|
|
164
|
+
kind?: string
|
|
165
|
+
phase?: ResourcePhase
|
|
166
|
+
page?: number
|
|
167
|
+
pageSize?: number
|
|
168
|
+
sortBy?: KpandaIoApiTypesPage.SortBy
|
|
169
|
+
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export type ListHelmReleaseResourcesResponse = {
|
|
173
|
+
items?: Resource[]
|
|
174
|
+
pagination?: KpandaIoApiTypesPage.Pagination
|
|
175
|
+
}
|
|
176
|
+
|
|
160
177
|
export type GetHelmReleaseJSONRequest = {
|
|
161
178
|
cluster?: string
|
|
162
179
|
namespace?: string
|
|
@@ -61,10 +61,16 @@ export enum SSHInfoType {
|
|
|
61
61
|
export enum NetworkConfigCNI {
|
|
62
62
|
CNI_UNSPECIFIED = "CNI_UNSPECIFIED",
|
|
63
63
|
calico = "calico",
|
|
64
|
-
|
|
64
|
+
cilium = "cilium",
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
export enum
|
|
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
|
|
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
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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
|
-
|
|
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
|
-
|
|
198
|
+
|
|
199
|
+
type BaseNetworkConfig = {
|
|
185
200
|
cni?: NetworkConfigCNI
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
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
|
}
|
|
@@ -729,6 +729,9 @@ export class Addon {
|
|
|
729
729
|
static GetHelmRelease(req: KpandaIoApiAddonV1alpha1Helmrelease.GetHelmReleaseRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAddonV1alpha1Helmrelease.HelmRelease> {
|
|
730
730
|
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
731
|
}
|
|
732
|
+
static ListHelmReleaseResources(req: KpandaIoApiAddonV1alpha1Helmrelease.ListHelmReleaseResourcesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAddonV1alpha1Helmrelease.ListHelmReleaseResourcesResponse> {
|
|
733
|
+
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"})
|
|
734
|
+
}
|
|
732
735
|
static GetHelmReleaseJSON(req: KpandaIoApiAddonV1alpha1Helmrelease.GetHelmReleaseJSONRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAddonV1alpha1Helmrelease.GetHelmReleaseJSONResponse> {
|
|
733
736
|
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
737
|
}
|