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

Change status to ReadyToUse to true for VolumeSnapshot #752

Merged
merged 7 commits into from Sep 11, 2020

Conversation

bathina2
Copy link
Contributor

@bathina2 bathina2 commented Sep 8, 2020

Change Overview

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • πŸ› Bugfix
  • 🌻 Feature
  • πŸ—ΊοΈ Documentation
  • πŸ€– Test

Issues

  • #XXX

Test Plan

  • πŸ’ͺ Manual
  • ⚑ Unit test
  • πŸ’š E2E

@bathina2 bathina2 changed the title changes to test hack Change status to ReadyToUse to true for VolumeSnapshot Sep 9, 2020
}
status["readyToUse"] = true
us.Object["status"] = status
if _, err := sna.dynCli.Resource(v1alpha1.VolSnapGVR).Namespace(namespace).UpdateStatus(ctx, us, metav1.UpdateOptions{}); err != nil {
Copy link

Choose a reason for hiding this comment

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

Can we use Patch here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I dont think you can patch a status. That why UpdateStatus does a PUT internally to replace the whole object

Copy link

Choose a reason for hiding this comment

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

Got it - sounds good.

Merge branch 'master' of https://github.com/kanisterio/kanister into hack_to_set_status
Copy link

@vkamra vkamra left a comment

Choose a reason for hiding this comment

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

LGTM - Unit test needed.

@bathina2 bathina2 marked this pull request as ready for review September 11, 2020 00:48
@bathina2 bathina2 added the kueue label Sep 11, 2020
@mergify mergify bot merged commit eeaeb71 into master Sep 11, 2020
@mergify mergify bot deleted the hack_to_set_status branch September 11, 2020 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants