Skip to content

Commit bf7c9f9

Browse files
authored
[Feature] Add Affinity to GroupSpec (#534)
1 parent 2b86360 commit bf7c9f9

File tree

12 files changed

+1168
-150
lines changed

12 files changed

+1168
-150
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Change Log
22

33
## [master](https://github.com/arangodb/kube-arangodb/tree/master) (N/A)
4+
- Added Customizable Affinity settings for ArangoDB Member Pods
45
- Added possibility to override default images used by ArangoDeployment
56
- Added possibility to set probes on all groups
67
- Added Image Discovery type in ArangoDeployment spec

pkg/apis/deployment/v1/server_group_spec.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ type ServerGroupSpec struct {
7070
VolumeClaimTemplate *v1.PersistentVolumeClaim `json:"volumeClaimTemplate,omitempty"`
7171
// VolumeResizeMode specified resize mode for pvc
7272
VolumeResizeMode *PVCResizeMode `json:"pvcResizeMode,omitempty"`
73+
// AntiAffinity specified additional antiAffinity settings in ArangoDB Pod definitions
74+
AntiAffinity *v1.PodAntiAffinity `json:"antiAffinity,omitempty"`
75+
// Affinity specified additional affinity settings in ArangoDB Pod definitions
76+
Affinity *v1.PodAffinity `json:"affinity,omitempty"`
77+
// NodeAffinity specified additional nodeAffinity settings in ArangoDB Pod definitions
78+
NodeAffinity *v1.NodeAffinity `json:"nodeAffinity,omitempty"`
7379
// Sidecars specifies a list of additional containers to be started
7480
Sidecars []v1.Container `json:"sidecars,omitempty"`
7581
// SecurityContext specifies security context for group

pkg/apis/deployment/v1/zz_generated.deepcopy.go

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

0 commit comments

Comments
 (0)