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 UnitUpgradeStep, improve add_step #219

Merged
merged 3 commits into from
Jan 24, 2024

Conversation

rgildein
Copy link
Contributor

Add UnitUpgradeStep and is_unit_upgrade_step, also use sub_steps as property to prevent defining it as not list of BaseStep's. Raising TypeError in add_step if object is not based on BaseStep.

Add UnitUpgradeStep and is_unit_upgrade_step, also use sub_steps as
property to prevent defining it as not list of BaseStep's.
Raising TypeError in add_step if object is not based on BaseStep.
@rgildein rgildein added the enhancement New feature or request label Jan 16, 2024
@rgildein rgildein self-assigned this Jan 16, 2024
@rgildein rgildein requested a review from a team as a code owner January 16, 2024 18:15
Copy link
Member

@gabrielcocenza gabrielcocenza left a comment

Choose a reason for hiding this comment

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

Generally LGTM. I have some small comments that are non-blockers

It's not totally clear to me the impact of those changes in the big picture, but I can see that the introduction of unit upgrade step might be necessary.

cou/steps/__init__.py Outdated Show resolved Hide resolved
cou/steps/__init__.py Show resolved Hide resolved
Copy link
Contributor

@agileshaw agileshaw left a comment

Choose a reason for hiding this comment

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

Some docstring changes suggested in line. Otherwise looks good.

cou/steps/__init__.py Outdated Show resolved Hide resolved
cou/steps/__init__.py Outdated Show resolved Hide resolved
cou/steps/__init__.py Outdated Show resolved Hide resolved
cou/steps/__init__.py Show resolved Hide resolved
@rgildein rgildein merged commit 4ec068f into canonical:dev/data-plane Jan 24, 2024
1 check passed
@rgildein rgildein deleted the feature/unit-ugrade-step branch January 24, 2024 11:37
rgildein added a commit to rgildein/charmed-openstack-upgrader that referenced this pull request Feb 7, 2024
Add UnitUpgradeStep and is_unit_upgrade_step, also use sub_steps as
property to prevent defining it as not list of BaseStep's. Raising
TypeError in add_step if object is not based on BaseStep.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants