Skip to content

Conversation

tjmoore4
Copy link
Contributor

@tjmoore4 tjmoore4 commented Sep 10, 2025

Checklist:

  • Have you added an explanation of what your changes do and why you'd like them to be included?
  • Have you updated or added documentation for the change, as applicable?
  • Have you tested your changes on all related environments with successful results, as applicable?
    • Have you added automated tests?

Type of Changes:

  • New feature
  • Bug fix
  • Documentation
  • Testing enhancement
  • Other

What is the current behavior (link to any open issues here)?
If an error occurs when applying a repo host volume, any existing status will be lost.

What is the new behavior (if this is a feature change)?

  • Breaking change (fix or feature that would cause existing functionality to change)

Update to ensure that the repo volume status is preserved in
cases where there is an error when applying the repo volume. When
there is an error, the status is now preserved until the underlying
issue is corrected.

Also, updates certain variables make the behavior of the volume auto-grow code
unclear. This updates variables and adds a comment to better
indicate the behavior in question.

Other Information:
Issue: PGO-2654

This update ensures that the repo volume status is preserved in
cases where there is an error when applying the repo volume. When
there is an error, the status is now preserved until the underlying
issue is corrected.

Issue: PGO-2654
Certain variables make the behavior of the volume auto-grow code
unclear. This updates variables and adds a comment to better
indicate the behavior in question.
@tjmoore4 tjmoore4 force-pushed the preserve-repo-vol-status branch from e2ddec3 to 4265e94 Compare September 11, 2025 15:58
@tjmoore4 tjmoore4 changed the title WIP: initial commit Preserve repo volume status when error occurs during apply Sep 11, 2025
@tjmoore4 tjmoore4 marked this pull request as ready for review September 11, 2025 16:28
if dpv, err := getDesiredVolumeSize(
// Determine the appropriate volume request based on what's set in the status.
// Note: request size set by reference.
if badDesiredVolumeRequest, err := getDesiredVolumeSize(
Copy link
Collaborator

Choose a reason for hiding this comment

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

why is the output here always "bad" ❓

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because that value is only ever returned if resource.ParseQuantity was unable to parse it. It's only use is for the error logging below.

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.

2 participants