Skip to content

Commit

Permalink
Merge pull request #201 from cschwede/fix-partpower-setting
Browse files Browse the repository at this point in the history
Fix PartPower setting & speed up replication kuttl test
  • Loading branch information
openshift-merge-bot[bot] authored Apr 16, 2024
2 parents f3397ce + 223e8ef commit 6b594fb
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/bases/swift.openstack.org_swiftrings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ spec:
type: string
minPartHours:
default: 1
description: Minimum numbeir of hours to restrict moving a partition
description: Minimum number of hours to restrict moving a partition
more than once
format: int64
minimum: 1
Expand Down
2 changes: 1 addition & 1 deletion api/bases/swift.openstack.org_swifts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ spec:
type: string
minPartHours:
default: 1
description: Minimum numbeir of hours to restrict moving a partition
description: Minimum number of hours to restrict moving a partition
more than once
format: int64
minimum: 1
Expand Down
2 changes: 1 addition & 1 deletion api/v1beta1/swiftring_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ type SwiftRingSpecCore struct {
// +kubebuilder:validation:Required
// +kubebuilder:default=1
// +kubebuilder:validation:Minimum=1
// Minimum numbeir of hours to restrict moving a partition more than once
// Minimum number of hours to restrict moving a partition more than once
MinPartHours *int64 `json:"minPartHours"`

// +kubebuilder:validation:Optional
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/swift.openstack.org_swiftrings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ spec:
type: string
minPartHours:
default: 1
description: Minimum numbeir of hours to restrict moving a partition
description: Minimum number of hours to restrict moving a partition
more than once
format: int64
minimum: 1
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/swift.openstack.org_swifts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ spec:
type: string
minPartHours:
default: 1
description: Minimum numbeir of hours to restrict moving a partition
description: Minimum number of hours to restrict moving a partition
more than once
format: int64
minimum: 1
Expand Down
2 changes: 2 additions & 0 deletions controllers/swift_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,8 @@ func (r *SwiftReconciler) ringCreateOrUpdate(ctx context.Context, instance *swif
ContainerImage: instance.Spec.SwiftRing.ContainerImage,
SwiftRingSpecCore: swiftv1.SwiftRingSpecCore{
RingReplicas: instance.Spec.SwiftRing.RingReplicas,
PartPower: instance.Spec.SwiftRing.PartPower,
MinPartHours: instance.Spec.SwiftRing.MinPartHours,
TLS: instance.Spec.SwiftProxy.TLS.Ca,
},
}
Expand Down
3 changes: 3 additions & 0 deletions tests/kuttl/tests/replication/deploy/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ patches:
- op: replace
path: /spec/swiftRing/ringReplicas
value: 3
- op: replace
path: /spec/swiftRing/partPower
value: 2
- op: replace
path: /spec/swiftStorage/replicas
value: 3
Expand Down

0 comments on commit 6b594fb

Please sign in to comment.