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

NR-238698: Issue fix - GcpMachinePoolMachine Status not populating correct ProvisioningState and LatestModelApplied fields #21

Open
wants to merge 3 commits into
base: nr-main
Choose a base branch
from

Conversation

sachin-shankar
Copy link

Refactored the way we populate the GcpMachinePoolMachine object status to ensure it reflects the correct Provisioning State and Image Model status.

…rrect ProvisioningState and LatestModelApplied fields

Refactored the way we populate the GcpMachinePoolMachine object status to ensure it reflects the correct Provisioning State and Image Model status.
// Failed ...
Failed ProvisioningState = "Failed"
// Succeeded ...
// Provisioning - resources are allocated for the VM. The VM is not running yet

Choose a reason for hiding this comment

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

Choose a reason for hiding this comment

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

then we only have to add de-provisioning there if we want that represented.

Copy link
Author

Choose a reason for hiding this comment

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

I had initially considered that. However, GCP follows a different convention when it comes to the instance state unlike Azure and AWS. I think it would be best to align with the physical state for better readability.

https://cloud.google.com/compute/docs/instances/instance-life-cycle

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