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

fix(controller): Set the rollout replica field to the previous revision replica count. Fixes #3689 #4036

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jamsesso
Copy link

@jamsesso jamsesso commented Jan 9, 2025

Fixes #3689

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
  • The title of the PR is (a) conventional with a list of types and scopes found here, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
  • I've signed my commits with DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My builds are green. Try syncing with master if they are not.
  • My organization is added to USERS.md.

Signed-off-by: Sam Jesso <[email protected]>
Signed-off-by: Sam Jesso <[email protected]>
Signed-off-by: Sam Jesso <[email protected]>
Signed-off-by: Sam Jesso <[email protected]>
Copy link

sonarqubecloud bot commented Jan 9, 2025

r.Spec.Replicas = &rollout.Status.Replicas
} else {
logCtx.Info("Defaulting .spec.replicas to 1")
r.Spec.Replicas = ptr.To(defaults.DefaultReplicas)
Copy link
Author

Choose a reason for hiding this comment

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

I think there is a lingering bug here, still. I believe that, even in this case, we should not set this to a static value of 1 - that seems to break the configuration value of minPodsPerReplicaSet. While not necessarily related to the bug, I wanted to point this logic out to the maintainers for comment.

Copy link
Contributor

github-actions bot commented Jan 9, 2025

Published E2E Test Results

  4 files    4 suites   3h 35m 9s ⏱️
114 tests  62 ✅  7 💤 45 ❌
391 runs  321 ✅ 25 💤 45 ❌

For more details on these failures, see this check.

Results for commit 8eb148f.

Copy link
Contributor

github-actions bot commented Jan 9, 2025

Published Unit Test Results

2 294 tests   2 294 ✅  2m 59s ⏱️
  128 suites      0 💤
    1 files        0 ❌

Results for commit 8eb148f.

@jamsesso
Copy link
Author

My e2e tests on K8s 1.28 failed, all with an ImagePullBackoff error. This is unrelated, but I don't have permissions (?) to re-run the job to get to green.

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.

If spec.replicas is not defined, should default to the current value
1 participant