Angelin01 / Angelin01/pod-director

Support for affinity

Aberta
#10 2 comentários 0 reações 0 responsáveis Ver no GitHub
feature
Linguagem predominante
Rust
Estrelas
3
Forks
0
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

# Support for affinity

Add support for `affinity` injection.

This will include the configuration format for the node selectors.

Out of the three main things we will modify, affinity is probably the hardest to implement as we have `nodeAffinity`,
`podAffinity` and `podAntiAffinity`, all of which our user could configure. Consult the [Kubernetes Reference][1] for
more detail.

All the affinity types use node selector terms, either in pure form or array form. As such, we can probably reuse the
validation code for the `nodeSelector` and `toleration` features, and they should be implemented earlier.

TODO: List all the possible cases we need to test for.

As a suggestion, we can probably ignore `podAffinity` and `podAntiAffinity` for the time being, as the use cases for "making pods in this namespace run in the same/different nodes than these other pods" are waaay less frequent/likely than our simple initial case of "making pods in this namespace run in these nodes".

[1]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#affinity-v1-core

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.