@daocloud-proto/skoala 0.43.3-4 → 0.43.4-10

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.
@@ -0,0 +1,42 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ export enum NodeSelectorOperator {
8
+ In = "In",
9
+ NotIn = "NotIn",
10
+ Exists = "Exists",
11
+ DoesNotExist = "DoesNotExist",
12
+ Gt = "Gt",
13
+ Lt = "Lt",
14
+ }
15
+
16
+ export type NodeSelectorRequirement = {
17
+ key?: string
18
+ operator?: NodeSelectorOperator
19
+ values?: string[]
20
+ }
21
+
22
+ export type NodeSelectorTerm = {
23
+ matchExpressions?: NodeSelectorRequirement[]
24
+ }
25
+
26
+ export type NodeSelector = {
27
+ nodeSelectorTerms?: NodeSelectorTerm[]
28
+ }
29
+
30
+ export type Affinity = {
31
+ nodeAffinity?: NodeAffinity
32
+ }
33
+
34
+ export type NodeAffinity = {
35
+ requiredDuringSchedulingIgnoredDuringExecution?: NodeSelector
36
+ preferredDuringSchedulingIgnoredDuringExecution?: PreferredSchedulingTerm[]
37
+ }
38
+
39
+ export type PreferredSchedulingTerm = {
40
+ weight?: number
41
+ preference?: NodeSelectorTerm
42
+ }
@@ -353,4 +353,21 @@ export type ListSwaggerReq = {
353
353
 
354
354
  export type ListSwaggerRes = {
355
355
  item?: string
356
+ }
357
+
358
+ export type ListNodeLabelsReq = {
359
+ workspaceId?: string
360
+ clusterName?: string
361
+ page?: number
362
+ pageSize?: number
363
+ }
364
+
365
+ export type ListNodeLabelsResNodeLabels = {
366
+ nodeName?: string
367
+ labels?: {[key: string]: string}
368
+ }
369
+
370
+ export type ListNodeLabelsRes = {
371
+ items?: ListNodeLabelsResNodeLabels[]
372
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
356
373
  }
@@ -367,6 +367,7 @@ type BaseEnvoyAdvancedConfig = {
367
367
  enableStatsPrefix?: boolean
368
368
  annotations?: {[key: string]: string}
369
369
  dnsLookupFamily?: DnsLookupFamily
370
+ nodeSelector?: {[key: string]: string}
370
371
  }
371
372
 
372
373
  export type EnvoyAdvancedConfig = BaseEnvoyAdvancedConfig
@@ -389,6 +390,7 @@ export type Log = {
389
390
  kubernetesDebug?: number
390
391
  contourDebug?: boolean
391
392
  logToInsight?: boolean
393
+ customLog?: {[key: string]: string}
392
394
  }
393
395
 
394
396
  export type RollingUpdate = {
@@ -4,6 +4,7 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
+ import * as SkoalaApiGeneralV1alpha1Affinity from "../../general/v1alpha1/affinity.pb"
7
8
  import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
9
  import * as SkoalaApiGeneralV1alpha1Insight from "../../general/v1alpha1/insight.pb"
9
10
  import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
@@ -123,6 +124,8 @@ export type Nacos = {
123
124
  workloadState?: SkoalaApiGeneralV1alpha1Common.WorkloadState
124
125
  failedReason?: string[]
125
126
  ldap?: LDAP
127
+ affinity?: SkoalaApiGeneralV1alpha1Affinity.Affinity
128
+ lbParam?: LoadBalanceParam
126
129
  }
127
130
 
128
131
  export type NacosDatabase = {
@@ -235,6 +238,7 @@ export type NacosConfig = {
235
238
  certificationEnabled?: boolean
236
239
  jvmPercentage?: number
237
240
  ldap?: LDAP
241
+ affinity?: SkoalaApiGeneralV1alpha1Affinity.Affinity
238
242
  }
239
243
 
240
244
  export type Volume = {
@@ -113,6 +113,9 @@ export class Skoala {
113
113
  static GetSwaggerDetail(req: SkoalaApiGeneralV1alpha1Skoala.ListSwaggerReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListSwaggerRes> {
114
114
  return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListSwaggerReq, SkoalaApiGeneralV1alpha1Skoala.ListSwaggerRes>(`/apis/skoala.io/v1alpha1/swagger?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
115
115
  }
116
+ static ListNodeLabels(req: SkoalaApiGeneralV1alpha1Skoala.ListNodeLabelsReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListNodeLabelsRes> {
117
+ return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListNodeLabelsReq, SkoalaApiGeneralV1alpha1Skoala.ListNodeLabelsRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/node_labels?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
118
+ }
116
119
  }
117
120
  export class Registry {
118
121
  static List(req: SkoalaApiIntegratedV1alpha1Registry.ListRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.ListRegistryRes> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.43.3-4",
3
+ "version": "0.43.4-10",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {