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

fixes the issue where the mutation log does not get printed the first… #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

unmarshall
Copy link
Contributor

What this PR does / why we need it:
As part of #59 we added logic to take a cartesian product of NSRs. Along with that change we also added an ability to compute the delta change and print it to the logs for better diagnostics. However there was a gap left where the first time a change is done to a k8s resource (e.g. sts) where there are no existing node affinity policies defined and kupid injects the policies as defined in the clusterpodschedulingpolicies then it does not print that mutation in the logs.

Which issue(s) this PR fixes:
Fixes #60

Special notes for your reviewer:

Release note:

Will also log the first mutation done to NodeAffinity policies done to a resource where none existed.

@unmarshall unmarshall requested a review from a team as a code owner June 8, 2023 16:05
@gardener-robot-ci-3 gardener-robot-ci-3 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Jun 8, 2023
@gardener-robot gardener-robot added the needs/review Needs review label Jun 8, 2023
@gardener-robot-ci-1 gardener-robot-ci-1 added needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Jun 8, 2023
@gardener-robot gardener-robot added the size/xs Size of pull request is tiny (see gardener-robot robot/bots/size.py) label Jun 8, 2023
@ashwani2k
Copy link
Contributor

I tested this PR on a local-setup and it still doesn't show the logs for the first change on the STS. Only subsequent changes are logged.

@gardener-robot gardener-robot added the lifecycle/stale Nobody worked on this for 6 months (will further age) label Feb 19, 2024
@gardener-robot gardener-robot added lifecycle/rotten Nobody worked on this for 12 months (final aging stage) and removed lifecycle/stale Nobody worked on this for 6 months (will further age) labels Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Nobody worked on this for 12 months (final aging stage) needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/review Needs review size/xs Size of pull request is tiny (see gardener-robot robot/bots/size.py)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Log the first mutation done to affinity rules by kupid
5 participants