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

Add option to check for deprecated stacks in pre-start rake task #3894

Merged
merged 11 commits into from
Jul 31, 2024

Conversation

xandroc
Copy link
Contributor

@xandroc xandroc commented Jul 22, 2024

  • Add optional check to ensure operators can upgrade without hanging dependencies to old or unwanted stacks

  • Links to any other associated PRs

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

Copy link
Contributor

@joaopapereira joaopapereira left a comment

Choose a reason for hiding this comment

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

LGTM, some minor nit's

spec/unit/lib/cloud_controller/check_stacks_spec.rb Outdated Show resolved Hide resolved
spec/unit/lib/cloud_controller/check_stacks_spec.rb Outdated Show resolved Hide resolved
}
end

describe 'the deprecated stack is in the db' do
Copy link
Contributor

@Samze Samze Jul 26, 2024

Choose a reason for hiding this comment

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

question Do we need these describes for the db behaviour? Looking at the code, if the deprecated stack is in the stacks list we don't even check the DB. We return early here https://github.com/cloudfoundry/cloud_controller_ng/pull/3894/files#diff-b51e853460880f38ea614d45c335bfdaa98ebf81f6166ce4c13ffab95bfbf871R23

end
end

describe 'the deprecated stack is not in the db' do
Copy link
Contributor

Choose a reason for hiding this comment

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

lib/tasks/stack_check.rake Outdated Show resolved Hide resolved
config/stacks.yml Outdated Show resolved Hide resolved
Copy link
Member

@tcdowney tcdowney left a comment

Choose a reason for hiding this comment

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

LGTM

@Samze Samze merged commit 6b76837 into cloudfoundry:main Jul 31, 2024
8 checks passed
ari-wg-gitbot added a commit to cloudfoundry/capi-release that referenced this pull request Jul 31, 2024
Changes in cloud_controller_ng:

- Add option to check for deprecated stacks in pre-start rake task
    PR: cloudfoundry/cloud_controller_ng#3894
    Author: Alex Rocha <[email protected]>
    Author: João Pereira <[email protected]>
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.

4 participants