Skip to content

Commit d7a4451

Browse files
StorageCluster schema changes to support parallel portworx upgrades
Signed-off-by: hitesh-wani-px <[email protected]>
1 parent 4c82a26 commit d7a4451

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

deploy/crds/core_v1_storagecluster_crd.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,16 @@ spec:
176176
their place. Once the new pods are available, it then proceeds onto other
177177
StorageCluster pods, thus ensuring that at least 70% of original number of
178178
StorageCluster pods are available at all times during the update.
179+
disruption:
180+
type: object
181+
description: >-
182+
The default behavior is non-disruptive upgrades. This setting disables the default
183+
non-disruptive upgrades and reverts to the previous behavior of upgrading nodes in
184+
parallel without worrying about disruption.
185+
properties:
186+
allow:
187+
type: boolean
188+
description: Flag indicates whether updates are non-disruptive or disruptive.
179189
deleteStrategy:
180190
type: object
181191
description: Delete strategy to uninstall and wipe the storage cluster.

pkg/apis/core/v1/storagecluster.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,17 @@ type RollingUpdateStorageCluster struct {
309309
// Defaults to 0 (pod will be considered available as soon as it is ready)
310310
// +optional
311311
MinReadySeconds int32 `json:"minReadySeconds,omitempty"`
312+
313+
// The default behavior is non-disruptive upgrades. This setting disables the default
314+
// non-disruptive upgrades and reverts to the previous behavior of upgrading nodes in
315+
// parallel without worrying about disruption.
316+
Disruption DisruptionSpec `json:"disruption,omitempty"`
317+
}
318+
319+
// DisruptionSpec contains disruption details
320+
type DisruptionSpec struct {
321+
// Flag indicates whether updates are non-disruptive or disruptive.
322+
Allow *bool `json:"allow,omitempty"`
312323
}
313324

314325
// StorageClusterDeleteStrategyType is enum for storage cluster delete strategies

0 commit comments

Comments
 (0)