Skip to content

Commit

Permalink
chore: placeholders for rolling update (#2019)
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Wang <[email protected]>
  • Loading branch information
whynowy committed Sep 3, 2024
1 parent 6993e75 commit 4cdc8f7
Show file tree
Hide file tree
Showing 14 changed files with 1,149 additions and 476 deletions.
36 changes: 36 additions & 0 deletions api/json-schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -19292,6 +19292,15 @@
"x-kubernetes-patch-merge-key": "type",
"x-kubernetes-patch-strategy": "merge"
},
"currentHash": {
"description": "If not empty, indicates the version of the MonoVertex used to generate Pods in the sequence [0,currentReplicas).",
"type": "string"
},
"currentReplicas": {
"description": "The number of Pods created by the controller from the MonoVertex version indicated by currentHash.",
"format": "int64",
"type": "integer"
},
"lastScaledAt": {
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time",
"description": "Time of last scaling operation."
Expand Down Expand Up @@ -19325,6 +19334,15 @@
},
"selector": {
"type": "string"
},
"updateHash": {
"description": "If not empty, indicates the version of the MonoVertx used to generate Pods in the sequence [replicas-updatedReplicas,replicas)",
"type": "string"
},
"updatedReplicas": {
"description": "The number of Pods created by the controller from the MonoVertex version indicated by updateHash.",
"format": "int64",
"type": "integer"
}
},
"type": "object"
Expand Down Expand Up @@ -20580,6 +20598,15 @@
"x-kubernetes-patch-merge-key": "type",
"x-kubernetes-patch-strategy": "merge"
},
"currentHash": {
"description": "If not empty, indicates the version of the Vertex used to generate Pods in the sequence [0,currentReplicas).",
"type": "string"
},
"currentReplicas": {
"description": "The number of Pods created by the controller from the Vertex version indicated by currentHash.",
"format": "int64",
"type": "integer"
},
"lastScaledAt": {
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time",
"description": "Time of last scaling operation."
Expand Down Expand Up @@ -20610,6 +20637,15 @@
},
"selector": {
"type": "string"
},
"updateHash": {
"description": "If not empty, indicates the version of the Vertx used to generate Pods in the sequence [replicas-updatedReplicas,replicas)",
"type": "string"
},
"updatedReplicas": {
"description": "The number of Pods created by the controller from the Vertex version indicated by updateHash.",
"format": "int64",
"type": "integer"
}
},
"type": "object"
Expand Down
36 changes: 36 additions & 0 deletions api/openapi-spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -19288,6 +19288,15 @@
"x-kubernetes-patch-merge-key": "type",
"x-kubernetes-patch-strategy": "merge"
},
"currentHash": {
"description": "If not empty, indicates the version of the MonoVertex used to generate Pods in the sequence [0,currentReplicas).",
"type": "string"
},
"currentReplicas": {
"description": "The number of Pods created by the controller from the MonoVertex version indicated by currentHash.",
"type": "integer",
"format": "int64"
},
"lastScaledAt": {
"description": "Time of last scaling operation.",
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time"
Expand Down Expand Up @@ -19321,6 +19330,15 @@
},
"selector": {
"type": "string"
},
"updateHash": {
"description": "If not empty, indicates the version of the MonoVertx used to generate Pods in the sequence [replicas-updatedReplicas,replicas)",
"type": "string"
},
"updatedReplicas": {
"description": "The number of Pods created by the controller from the MonoVertex version indicated by updateHash.",
"type": "integer",
"format": "int64"
}
}
},
Expand Down Expand Up @@ -20558,6 +20576,15 @@
"x-kubernetes-patch-merge-key": "type",
"x-kubernetes-patch-strategy": "merge"
},
"currentHash": {
"description": "If not empty, indicates the version of the Vertex used to generate Pods in the sequence [0,currentReplicas).",
"type": "string"
},
"currentReplicas": {
"description": "The number of Pods created by the controller from the Vertex version indicated by currentHash.",
"type": "integer",
"format": "int64"
},
"lastScaledAt": {
"description": "Time of last scaling operation.",
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time"
Expand Down Expand Up @@ -20588,6 +20615,15 @@
},
"selector": {
"type": "string"
},
"updateHash": {
"description": "If not empty, indicates the version of the Vertx used to generate Pods in the sequence [replicas-updatedReplicas,replicas)",
"type": "string"
},
"updatedReplicas": {
"description": "The number of Pods created by the controller from the Vertex version indicated by updateHash.",
"type": "integer",
"format": "int64"
}
}
},
Expand Down
10 changes: 10 additions & 0 deletions config/base/crds/full/numaflow.numaproj.io_monovertices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5549,6 +5549,11 @@ spec:
- type
type: object
type: array
currentHash:
type: string
currentReplicas:
format: int32
type: integer
lastScaledAt:
format: date-time
type: string
Expand Down Expand Up @@ -5579,6 +5584,11 @@ spec:
type: integer
selector:
type: string
updateHash:
type: string
updatedReplicas:
format: int32
type: integer
type: object
required:
- spec
Expand Down
10 changes: 10 additions & 0 deletions config/base/crds/full/numaflow.numaproj.io_vertices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5484,6 +5484,11 @@ spec:
- type
type: object
type: array
currentHash:
type: string
currentReplicas:
format: int32
type: integer
lastScaledAt:
format: date-time
type: string
Expand All @@ -5508,6 +5513,11 @@ spec:
type: integer
selector:
type: string
updateHash:
type: string
updatedReplicas:
format: int32
type: integer
type: object
required:
- spec
Expand Down
20 changes: 20 additions & 0 deletions config/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8193,6 +8193,11 @@ spec:
- type
type: object
type: array
currentHash:
type: string
currentReplicas:
format: int32
type: integer
lastScaledAt:
format: date-time
type: string
Expand Down Expand Up @@ -8223,6 +8228,11 @@ spec:
type: integer
selector:
type: string
updateHash:
type: string
updatedReplicas:
format: int32
type: integer
type: object
required:
- spec
Expand Down Expand Up @@ -23599,6 +23609,11 @@ spec:
- type
type: object
type: array
currentHash:
type: string
currentReplicas:
format: int32
type: integer
lastScaledAt:
format: date-time
type: string
Expand All @@ -23623,6 +23638,11 @@ spec:
type: integer
selector:
type: string
updateHash:
type: string
updatedReplicas:
format: int32
type: integer
type: object
required:
- spec
Expand Down
20 changes: 20 additions & 0 deletions config/namespace-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8193,6 +8193,11 @@ spec:
- type
type: object
type: array
currentHash:
type: string
currentReplicas:
format: int32
type: integer
lastScaledAt:
format: date-time
type: string
Expand Down Expand Up @@ -8223,6 +8228,11 @@ spec:
type: integer
selector:
type: string
updateHash:
type: string
updatedReplicas:
format: int32
type: integer
type: object
required:
- spec
Expand Down Expand Up @@ -23599,6 +23609,11 @@ spec:
- type
type: object
type: array
currentHash:
type: string
currentReplicas:
format: int32
type: integer
lastScaledAt:
format: date-time
type: string
Expand All @@ -23623,6 +23638,11 @@ spec:
type: integer
selector:
type: string
updateHash:
type: string
updatedReplicas:
format: int32
type: integer
type: object
required:
- spec
Expand Down
Loading

0 comments on commit 4cdc8f7

Please sign in to comment.