@daocloud-proto/kairship 0.4.5 → 0.5.0-154

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.
@@ -9,6 +9,18 @@ import * as KairshipIoApiTypesObjectmeta from "../../types/objectmeta.pb"
9
9
  import * as KairshipIoApiTypesPage from "../../types/page.pb"
10
10
  import * as KairshipIoApiPolicyV1alpha1Types from "./types.pb"
11
11
 
12
+ export enum ImageComponent {
13
+ Registry = "Registry",
14
+ Repository = "Repository",
15
+ Tag = "Tag",
16
+ }
17
+
18
+ export enum OverriderOperator {
19
+ add = "add",
20
+ remove = "remove",
21
+ replace = "replace",
22
+ }
23
+
12
24
  export enum ListOverridePoliciesRequestKind {
13
25
  KIND_UNSPECIFIED = "KIND_UNSPECIFIED",
14
26
  Deployment = "Deployment",
@@ -31,6 +43,33 @@ export type RuleWithCluster = {
31
43
 
32
44
  export type Overriders = {
33
45
  plaintext?: PlaintextOverrider[]
46
+ imageOverrider?: ImageOverrider[]
47
+ commandOverrider?: CommandArgsOverrider[]
48
+ argsOverrider?: CommandArgsOverrider[]
49
+ labelsOverrider?: LabelAnnotationOverrider[]
50
+ annotationsOverrider?: LabelAnnotationOverrider[]
51
+ }
52
+
53
+ export type ImageOverrider = {
54
+ predicate?: ImagePredicate
55
+ component?: ImageComponent
56
+ operator?: OverriderOperator
57
+ value?: string
58
+ }
59
+
60
+ export type ImagePredicate = {
61
+ path?: string
62
+ }
63
+
64
+ export type CommandArgsOverrider = {
65
+ containerName?: string
66
+ operator?: OverriderOperator
67
+ value?: string[]
68
+ }
69
+
70
+ export type LabelAnnotationOverrider = {
71
+ operator?: OverriderOperator
72
+ value?: {[key: string]: string}
34
73
  }
35
74
 
36
75
  export type PlaintextOverrider = {
@@ -30,7 +30,7 @@ export enum ReplicaDivisionPreference {
30
30
 
31
31
  export enum DynamicWeightFactor {
32
32
  DYNAMIC_WEIGHT_FACTOR_UNSPECIFIED = "DYNAMIC_WEIGHT_FACTOR_UNSPECIFIED",
33
- DynamicWeightByAvailableReplicas = "DynamicWeightByAvailableReplicas",
33
+ AvailableReplicas = "AvailableReplicas",
34
34
  }
35
35
 
36
36
  export enum ListPropagationPoliciesRequestKind {
@@ -85,7 +85,7 @@ export type ClusterPreferences = {
85
85
 
86
86
  export type StaticClusterWeight = {
87
87
  targetCluster?: KairshipIoApiPolicyV1alpha1Types.ClusterAffinity
88
- weight?: string
88
+ weight?: number
89
89
  }
90
90
 
91
91
  export type PropagationPolicyList = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kairship",
3
- "version":"0.4.5",
3
+ "version":"0.5.0-154",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {