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

Only override pod affinity #56

Merged
merged 1 commit into from
Sep 10, 2024
Merged

Only override pod affinity #56

merged 1 commit into from
Sep 10, 2024

Conversation

bkneis
Copy link
Contributor

@bkneis bkneis commented Sep 10, 2024

This PR fixes #54 by first checking the affinity and only initialising if it doesn't exist. If an existing node affinity is present (but not a pod affinity) such as the problematic use case, it only overrides the pod affinity.

I tested the PR by building the provider locally and deploying the simple example workspace to a local kind cluster

Copy link
Member

@pascalbreuninger pascalbreuninger left a comment

Choose a reason for hiding this comment

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

LGTM

@pascalbreuninger pascalbreuninger merged commit f65d783 into main Sep 10, 2024
1 check passed
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.

Affinity configuration gets accidentally overwritten
2 participants