Skip to content

Conversation

@alaye-ms
Copy link
Collaborator

This just adds a passthrough for the already made CNPG node affinity field.

Signed-off-by: Alexander Laye <alaye@microsoft.com>
@xgerman
Copy link
Collaborator

xgerman commented Dec 15, 2025

Can you add this to our docs as well


// Affinity/Anti-affinity rules for Pods (cnpg passthrough)
// +optional
Affinity cnpgv1.AffinityConfiguration `json:"affinity,omitempty"`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good for now. Affinity is a very k8s specific placement term and we are putting it on the high level. Going forward, we need to group these configs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose CNPG level scheduling through the DocumentDB object

3 participants