Skip to content

Commit 0ee4498

Browse files
souravbiswassantotamalsaha
authored andcommitted
Add PodPlacementPolicy
Signed-off-by: souravbiswassanto <[email protected]>
1 parent 7a5ece0 commit 0ee4498

File tree

6 files changed

+500
-1
lines changed

6 files changed

+500
-1
lines changed

apis/kubedb/v1/openapi_generated.go

Lines changed: 106 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/kubedb/v1/postgres_types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,10 @@ type ReadReplicaSpec struct {
243243
StorageType StorageType `json:"storageType,omitempty"`
244244
// Storage to specify how storage shall be used.
245245
Storage *core.PersistentVolumeClaimSpec `json:"storage,omitempty"`
246+
// PodPlacementPolicy is the reference of the podPlacementPolicy
247+
// +kubebuilder:default={name:"default"}
248+
// +optional
249+
PodPlacementPolicy *core.LocalObjectReference `json:"podPlacementPolicy,omitempty"`
246250
}
247251

248252
// PostgreLeaderElectionConfig contains essential attributes of leader election.

apis/kubedb/v1/zz_generated.deepcopy.go

Lines changed: 53 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/kubedb/v1alpha2/zz_generated.conversion.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crds/gitops.kubedb.com_postgreses.yaml

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4851,6 +4851,174 @@ spec:
48514851
type: array
48524852
type: object
48534853
type: object
4854+
readReaplicas:
4855+
items:
4856+
properties:
4857+
name:
4858+
type: string
4859+
nodeSelector:
4860+
additionalProperties:
4861+
type: string
4862+
type: object
4863+
x-kubernetes-map-type: atomic
4864+
podPlacementPolicy:
4865+
default:
4866+
name: default
4867+
properties:
4868+
name:
4869+
default: ""
4870+
type: string
4871+
type: object
4872+
x-kubernetes-map-type: atomic
4873+
replicas:
4874+
format: int32
4875+
type: integer
4876+
resources:
4877+
properties:
4878+
claims:
4879+
items:
4880+
properties:
4881+
name:
4882+
type: string
4883+
request:
4884+
type: string
4885+
required:
4886+
- name
4887+
type: object
4888+
type: array
4889+
x-kubernetes-list-map-keys:
4890+
- name
4891+
x-kubernetes-list-type: map
4892+
limits:
4893+
additionalProperties:
4894+
anyOf:
4895+
- type: integer
4896+
- type: string
4897+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
4898+
x-kubernetes-int-or-string: true
4899+
type: object
4900+
requests:
4901+
additionalProperties:
4902+
anyOf:
4903+
- type: integer
4904+
- type: string
4905+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
4906+
x-kubernetes-int-or-string: true
4907+
type: object
4908+
type: object
4909+
storage:
4910+
properties:
4911+
accessModes:
4912+
items:
4913+
type: string
4914+
type: array
4915+
x-kubernetes-list-type: atomic
4916+
dataSource:
4917+
properties:
4918+
apiGroup:
4919+
type: string
4920+
kind:
4921+
type: string
4922+
name:
4923+
type: string
4924+
required:
4925+
- kind
4926+
- name
4927+
type: object
4928+
x-kubernetes-map-type: atomic
4929+
dataSourceRef:
4930+
properties:
4931+
apiGroup:
4932+
type: string
4933+
kind:
4934+
type: string
4935+
name:
4936+
type: string
4937+
namespace:
4938+
type: string
4939+
required:
4940+
- kind
4941+
- name
4942+
type: object
4943+
resources:
4944+
properties:
4945+
limits:
4946+
additionalProperties:
4947+
anyOf:
4948+
- type: integer
4949+
- type: string
4950+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
4951+
x-kubernetes-int-or-string: true
4952+
type: object
4953+
requests:
4954+
additionalProperties:
4955+
anyOf:
4956+
- type: integer
4957+
- type: string
4958+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
4959+
x-kubernetes-int-or-string: true
4960+
type: object
4961+
type: object
4962+
selector:
4963+
properties:
4964+
matchExpressions:
4965+
items:
4966+
properties:
4967+
key:
4968+
type: string
4969+
operator:
4970+
type: string
4971+
values:
4972+
items:
4973+
type: string
4974+
type: array
4975+
x-kubernetes-list-type: atomic
4976+
required:
4977+
- key
4978+
- operator
4979+
type: object
4980+
type: array
4981+
x-kubernetes-list-type: atomic
4982+
matchLabels:
4983+
additionalProperties:
4984+
type: string
4985+
type: object
4986+
type: object
4987+
x-kubernetes-map-type: atomic
4988+
storageClassName:
4989+
type: string
4990+
volumeAttributesClassName:
4991+
type: string
4992+
volumeMode:
4993+
type: string
4994+
volumeName:
4995+
type: string
4996+
type: object
4997+
storageType:
4998+
enum:
4999+
- Durable
5000+
- Ephemeral
5001+
type: string
5002+
tolerations:
5003+
items:
5004+
properties:
5005+
effect:
5006+
type: string
5007+
key:
5008+
type: string
5009+
operator:
5010+
type: string
5011+
tolerationSeconds:
5012+
format: int64
5013+
type: integer
5014+
value:
5015+
type: string
5016+
type: object
5017+
type: array
5018+
required:
5019+
- name
5020+
type: object
5021+
type: array
48545022
remoteReplica:
48555023
properties:
48565024
sourceRef:

0 commit comments

Comments
 (0)