Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add affinity to jobTemplate #2753

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
cd22fe6
add affinity to jobTemplate
Nov 25, 2024
72cac3f
Refactor test checkFunc condition (#2599)
vankichi Sep 10, 2024
edd828a
automatically generate workflows (#2595)
smorihira Sep 10, 2024
65e58e1
Bugfix NGT flush logic (#2598)
hlts2 Sep 11, 2024
a7b808c
fix: make command name (#2610)
hlts2 Sep 11, 2024
06e5393
Fix broken links in the document files (#2611)
vankichi Sep 11, 2024
d6f22d8
docs: add smorihira as a contributor for tool, and code (#2601)
allcontributors[bot] Sep 12, 2024
a2eddfd
add check context cancel (#2596)
kmrmt Sep 12, 2024
b29228b
Add UpdateTimestamp API (#2605)
kpango Sep 12, 2024
5877cdd
[Bugfix] agent service test (#2620)
kpango Sep 13, 2024
098ee75
[create-pull-request] automated change (#2623)
vdaas-ci Sep 13, 2024
703b06a
feat: add usearch (#2608)
iammytoo Sep 13, 2024
353cd55
docs: add iammytoo as a contributor for code, and research (#2625)
allcontributors[bot] Sep 13, 2024
86f1416
feat: KVS API template for storing vector metadata (#2624)
kpango Sep 13, 2024
f206a80
implement richer error model (#2589)
kmrmt Sep 17, 2024
1298adb
[create-pull-request] automated change (#2629)
vdaas-ci Sep 17, 2024
1052167
Add option to disable dns resolve (#2634)
hlts2 Sep 24, 2024
52c395a
Bugfix ingress route settings (#2636)
hlts2 Sep 24, 2024
04ebe9c
refactor(gateway): delete unused file (#2644)
highpon Sep 27, 2024
81873fb
docs: add highpon as a contributor for test (#2645)
allcontributors[bot] Sep 27, 2024
124695a
Refctor for release v1.7.14 (#2639)
kpango Sep 30, 2024
639d99c
Implement deadlink checker for vald web (#2643)
vankichi Sep 30, 2024
456f50f
:robot: Update license headers / Format Go codes and YAML files (#2660)
vdaas-ci Sep 30, 2024
bce0aea
Refactor grpc/status.withDetails function for performance (#2664)
kpango Oct 2, 2024
e9b08b2
Refactor use Absolute path for Makefile (#2670)
kpango Oct 4, 2024
50b459c
fix: fix slice init length (#2672)
cuishuang Oct 4, 2024
f8f49d7
Refactor internal/net/grpc/client.go (#2674)
kpango Oct 4, 2024
21ded1f
[create-pull-request] automated change (#2677)
vdaas-ci Oct 8, 2024
928e356
modify ParseError to FromError for agent handler (#2667)
datelier Oct 8, 2024
3622010
Fix gRPC error handling for mirror-gateway handler (#2665)
hlts2 Oct 8, 2024
a521daa
Fix gRPC error msg handling for lb-gateway handler (#2663)
vankichi Oct 8, 2024
0107660
fix: increase limit (#2683)
hlts2 Oct 8, 2024
4cba830
Fix gRPC error handling for gateway/filter handler (#2669)
kmrmt Oct 9, 2024
9e5673a
Add New gRPC Options and Add Reconnect Logic for connection Pool (#2685)
kpango Oct 10, 2024
835a933
Buf CLI migrate to v2 (#2691)
kmrmt Oct 11, 2024
22ef15b
Add CPU_INFO_FLAGS for Apple Silicon (#2694)
kpango Oct 11, 2024
72e2fee
Add String sorted topologicalSort (#2696)
kpango Oct 11, 2024
a7a0b37
:bookmark: :robot: Release v1.7.14 (#2700) (#2701)
vdaas-ci Oct 11, 2024
6b81ebc
:arrow_up: update versions/BUF_VERSION (#2703)
vankichi Oct 16, 2024
be10fd9
add example-client docker image (#2705)
vankichi Oct 21, 2024
91ea485
Fix typo in batch job (#2708)
highpon Oct 22, 2024
59c3ca3
:pencil: Remove clj link (#2710)
vankichi Oct 24, 2024
628a814
[create-pull-request] automated change (#2706)
vdaas-ci Oct 24, 2024
636b12b
:green_heart: Multi-PF build for example-client (#2713)
vankichi Oct 24, 2024
0725574
Add auto deps version update workflow (#2707)
vankichi Oct 24, 2024
6d3c6cf
Fix bind DOCKER_OPTS option (#2718)
vankichi Oct 25, 2024
8964ae3
:bug: Fix typo (#2720)
vankichi Oct 25, 2024
b620eb8
feat: Implement delete expired index job (#2702)
highpon Oct 26, 2024
9bf080a
:robot: Update license headers / Format Go codes and YAML files (#2723)
vdaas-ci Oct 27, 2024
a2fc123
docs: add highpon as a contributor for code (#2721)
allcontributors[bot] Oct 28, 2024
966b788
Update README.md (#2724)
kpango Oct 28, 2024
c0224ed
fix not found error (#2726)
datelier Oct 30, 2024
924fd95
Fix installation command for arm64 (#2729)
vankichi Nov 1, 2024
5db9a0a
fix rust-analyzer (#2731)
datelier Nov 5, 2024
799f050
[BUGFIX] resolve agent GetGraphStatistics API double-free error probl…
kpango Nov 11, 2024
53f7a9c
Add QUIC support (#1771)
kpango Nov 13, 2024
7b302a7
:bug: Fix update deps workflow: buf is not found (#2737)
vankichi Nov 13, 2024
180dc73
refactor dockerfiles and update gitattributes (#2743)
kpango Nov 14, 2024
cb79098
:green_heart: use ci-container for update deps cron job (#2744)
vankichi Nov 15, 2024
5bcbef2
update ubuntu version for devcontainer (#2736)
vankichi Nov 18, 2024
53e5851
Apply suggestions from code review
takuyaymd Nov 25, 2024
95412f9
update by make command
takuyaymd Nov 25, 2024
db48cd5
Merge branch 'main' into feature/manager-index/add-affinities-to-job
takuyaymd Dec 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
159 changes: 159 additions & 0 deletions charts/vald-helm-operator/crds/valdrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8406,6 +8406,51 @@ spec:
corrector:
type: object
properties:
affinity:
type: object
properties:
nodeAffinity:
type: object
properties:
preferredDuringSchedulingIgnoredDuringExecution:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
requiredDuringSchedulingIgnoredDuringExecution:
type: object
properties:
nodeSelectorTerms:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
podAffinity:
type: object
properties:
preferredDuringSchedulingIgnoredDuringExecution:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
requiredDuringSchedulingIgnoredDuringExecution:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
podAntiAffinity:
type: object
properties:
preferredDuringSchedulingIgnoredDuringExecution:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
requiredDuringSchedulingIgnoredDuringExecution:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
agent_namespace:
type: string
discoverer:
Expand Down Expand Up @@ -9037,6 +9082,9 @@ spec:
type: string
node_name:
type: string
nodeSelector:
type: object
x-kubernetes-preserve-unknown-fields: true
observability:
type: object
properties:
Expand Down Expand Up @@ -9714,6 +9762,11 @@ spec:
minimum: 1
suspend:
type: boolean
tolerations:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
ttlSecondsAfterFinished:
type: integer
version:
Expand All @@ -9722,6 +9775,51 @@ spec:
creator:
type: object
properties:
affinity:
type: object
properties:
nodeAffinity:
type: object
properties:
preferredDuringSchedulingIgnoredDuringExecution:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
requiredDuringSchedulingIgnoredDuringExecution:
type: object
properties:
nodeSelectorTerms:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
podAffinity:
type: object
properties:
preferredDuringSchedulingIgnoredDuringExecution:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
requiredDuringSchedulingIgnoredDuringExecution:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
podAntiAffinity:
type: object
properties:
preferredDuringSchedulingIgnoredDuringExecution:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
requiredDuringSchedulingIgnoredDuringExecution:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
agent_namespace:
type: string
concurrency:
Expand Down Expand Up @@ -10157,6 +10255,9 @@ spec:
type: string
node_name:
type: string
nodeSelector:
type: object
x-kubernetes-preserve-unknown-fields: true
observability:
type: object
properties:
Expand Down Expand Up @@ -10835,6 +10936,11 @@ spec:
type: array
items:
type: string
tolerations:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
ttlSecondsAfterFinished:
type: integer
version:
Expand Down Expand Up @@ -13012,6 +13118,51 @@ spec:
saver:
type: object
properties:
affinity:
type: object
properties:
nodeAffinity:
type: object
properties:
preferredDuringSchedulingIgnoredDuringExecution:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
requiredDuringSchedulingIgnoredDuringExecution:
type: object
properties:
nodeSelectorTerms:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
podAffinity:
type: object
properties:
preferredDuringSchedulingIgnoredDuringExecution:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
requiredDuringSchedulingIgnoredDuringExecution:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
podAntiAffinity:
type: object
properties:
preferredDuringSchedulingIgnoredDuringExecution:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
requiredDuringSchedulingIgnoredDuringExecution:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
agent_namespace:
type: string
concurrency:
Expand Down Expand Up @@ -13445,6 +13596,9 @@ spec:
type: string
node_name:
type: string
nodeSelector:
type: object
x-kubernetes-preserve-unknown-fields: true
observability:
type: object
properties:
Expand Down Expand Up @@ -14123,6 +14277,11 @@ spec:
type: array
items:
type: string
tolerations:
type: array
items:
type: object
x-kubernetes-preserve-unknown-fields: true
ttlSecondsAfterFinished:
type: integer
version:
Expand Down
12 changes: 12 additions & 0 deletions charts/vald/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,10 @@ spec:
{{- toYaml .Job.securityContext | nindent 12 }}
{{- end }}
{{- end }}
{{- if .Job.affinity }}
affinity:
{{- include "vald.affinity" .Job.affinity | nindent 8 }}
takuyaymd marked this conversation as resolved.
Show resolved Hide resolved
{{- end }}
containers:
- name: {{ .Job.name }}
image: "{{ .Job.image.repository }}:{{ default .default.Values.defaults.image.tag .Job.image.tag }}"
Expand Down Expand Up @@ -929,6 +933,14 @@ spec:
configMap:
defaultMode: 420
name: {{ .Job.name }}-config
{{- if .Job.nodeSelector }}
nodeSelector:
{{- toYaml .Job.nodeSelector | nindent 8 }}
{{- end }}
{{- if .Job.tolerations }}
tolerations:
{{- toYaml .Job.tolerations | nindent 8 }}
{{- end }}
{{- if .Job.serviceAccount }}
serviceAccountName: {{ .Job.serviceAccount.name }}
{{- end }}
Expand Down
Loading