Skip to content

Commit

Permalink
[Designate] Add Bind9 storageRequest and replica count
Browse files Browse the repository at this point in the history
After DesignateBackendBind9 was changed to a stateful set, Designate
requires a persistent volume claim.

This patch adds the pvc value to the control plane definition, and
requires a replica count minimum of at least 1.
  • Loading branch information
omersch381 committed Oct 25, 2024
1 parent 9b7f46d commit d7fbf74
Show file tree
Hide file tree
Showing 14 changed files with 65 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,14 @@ spec:
designateAPI:
replicas: 1
designateCentral:
replicas: 0 # backend needs to be configured
replicas: 1 # backend needs to be configured
designateWorker:
replicas: 0 # backend needs to be configured
replicas: 1 # backend needs to be configured
designateProducer:
replicas: 0 # backend needs to be configured
replicas: 1 # backend needs to be configured
designateMdns:
replicas: 0 # backend needs to be configured
designateBackendbind9:
replicas: 0 # backend needs to be configured
replicas: 1 # backend needs to be configured
storageClass: local-storage
storageRequest: 10G
8 changes: 5 additions & 3 deletions config/samples/core_v1beta1_openstackcontrolplane_galera.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -226,16 +226,18 @@ spec:
designateCentral:
replicas: 1
designateWorker:
replicas: 0
replicas: 1
networkAttachments:
- designate
designateProducer:
replicas: 0
replicas: 1
designateMdns:
replicas: 0
networkAttachments:
- designate
designateBackendbind9:
replicas: 0
replicas: 1
storageClass: local-storage
storageRequest: 10G
networkAttachments:
- designate
Original file line number Diff line number Diff line change
Expand Up @@ -211,17 +211,19 @@ spec:
designateCentral:
replicas: 1
designateWorker:
replicas: 0
replicas: 1
networkAttachments:
- designate
designateProducer:
replicas: 0
replicas: 1
designateMdns:
replicas: 0
networkAttachments:
- designate
designateBackendbind9:
replicas: 0
replicas: 1
storageClass: local-storage
storageRequest: 10G
networkAttachments:
- designate
swift:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,16 +413,18 @@ spec:
designateCentral:
replicas: 1
designateWorker:
replicas: 0
replicas: 1
networkAttachments:
- designate
designateProducer:
replicas: 0
replicas: 1
designateMdns:
replicas: 0
networkAttachments:
- designate
designateBackendbind9:
replicas: 0
replicas: 1
storageClass: local-storage
storageRequest: 10G
networkAttachments:
- designate
Original file line number Diff line number Diff line change
Expand Up @@ -415,16 +415,18 @@ spec:
designateCentral:
replicas: 1
designateWorker:
replicas: 0
replicas: 1
networkAttachments:
- designate
designateProducer:
replicas: 0
replicas: 1
designateMdns:
replicas: 0
networkAttachments:
- designate
designateBackendbind9:
replicas: 0
replicas: 1
storageClass: local-storage
storageRequest: 10G
networkAttachments:
- designate
Original file line number Diff line number Diff line change
Expand Up @@ -409,16 +409,18 @@ spec:
designateCentral:
replicas: 1
designateWorker:
replicas: 0
replicas: 1
networkAttachments:
- designate
designateProducer:
replicas: 0
replicas: 1
designateMdns:
replicas: 0
networkAttachments:
- designate
designateBackendbind9:
replicas: 0
replicas: 1
storageClass: local-storage
storageRequest: 10G
networkAttachments:
- designate
Original file line number Diff line number Diff line change
Expand Up @@ -434,16 +434,18 @@ spec:
designateCentral:
replicas: 1
designateWorker:
replicas: 0
replicas: 1
networkAttachments:
- designate
designateProducer:
replicas: 0
replicas: 1
designateMdns:
replicas: 0
networkAttachments:
- designate
designateBackendbind9:
replicas: 0
replicas: 1
storageClass: local-storage
storageRequest: 10G
networkAttachments:
- designate
Original file line number Diff line number Diff line change
Expand Up @@ -412,16 +412,18 @@ spec:
designateCentral:
replicas: 1
designateWorker:
replicas: 0
replicas: 1
networkAttachments:
- designate
designateProducer:
replicas: 0
replicas: 1
designateMdns:
replicas: 0
networkAttachments:
- designate
designateBackendbind9:
replicas: 0
replicas: 1
storageClass: local-storage
storageRequest: 10G
networkAttachments:
- designate
8 changes: 4 additions & 4 deletions tests/kuttl/common/assert-sample-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ spec:
designateAPI:
replicas: 1
designateCentral:
replicas: 0 # backend needs to be configured
replicas: 1
designateWorker:
replicas: 0 # backend needs to be configured
replicas: 1
designateProducer:
replicas: 0 # backend needs to be configured
replicas: 1
designateBackendbind9:
replicas: 0 # backend needs to be configured
replicas: 1
barbican:
enabled: true
template:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ spec:
designateAPI:
replicas: 1
designateCentral:
replicas: 0 # backend needs to be configured
replicas: 1
designateWorker:
replicas: 0 # backend needs to be configured
replicas: 1
designateProducer:
replicas: 0 # backend needs to be configured
replicas: 1
designateBackendbind9:
replicas: 0 # backend needs to be configured
replicas: 1
barbican:
enabled: true
template:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,13 @@ spec:
designateAPI:
replicas: 1
designateCentral:
replicas: 0 # backend needs to be configured
replicas: 1
designateWorker:
replicas: 0 # backend needs to be configured
replicas: 1
designateProducer:
replicas: 0 # backend needs to be configured
replicas: 1
designateBackendbind9:
replicas: 0 # backend needs to be configured
replicas: 1
barbican:
enabled: true
template:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ spec:
designateAPI:
replicas: 1
designateCentral:
replicas: 0 # backend needs to be configured
replicas: 1
designateWorker:
replicas: 0 # backend needs to be configured
replicas: 1
designateProducer:
replicas: 0 # backend needs to be configured
replicas: 1
designateBackendbind9:
replicas: 0 # backend needs to be configured
replicas: 1
barbican:
enabled: true
template:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ spec:
designateAPI:
replicas: 1
designateCentral:
replicas: 0 # backend needs to be configured
replicas: 1
designateWorker:
replicas: 0 # backend needs to be configured
replicas: 1
designateProducer:
replicas: 0 # backend needs to be configured
replicas: 1
designateBackendbind9:
replicas: 0 # backend needs to be configured
replicas: 1
barbican:
enabled: true
template:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,13 @@ spec:
designateAPI:
replicas: 1
designateCentral:
replicas: 0 # backend needs to be configured
replicas: 1
designateWorker:
replicas: 0 # backend needs to be configured
replicas: 1
designateProducer:
replicas: 0 # backend needs to be configured
replicas: 1
designateBackendbind9:
replicas: 0 # backend needs to be configured
replicas: 1
barbican:
enabled: true
apiOverride:
Expand Down

0 comments on commit d7fbf74

Please sign in to comment.