gkebackup backupplan: Add State and StateReason fields#8227
Conversation
|
Hello! I am a robot who works on Magic Modules PRs. I've detected that you're a community contributor. @shuyama1, a repository maintainer, has been assigned to assist you and help review your changes. ❓ First time contributing? Click here for more detailsYour assigned reviewer will help review your code by:
You can help make sure that review is quick by running local tests and ensuring they're passing in between each push you make to your PR's branch. Also, try to leave a comment with each push you make, as pushes generally don't generate emails. If your reviewer doesn't get back to you within a week after your most recent change, please feel free to leave a comment on the issue asking them to take a look! In the absence of a dedicated review dashboard most maintainers manage their pending reviews through email, and those will sometimes get lost in their inbox. |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 2 files changed, 30 insertions(+)) |
Tests analyticsTotal tests: Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccComputeNetworkEndpoints_networkEndpointsBasic|TestAccComputeFirewallPolicyRule_multipleRules |
|
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
shuyama1
left a comment
There was a problem hiding this comment.
Mostly looks good. left a question inline and pre-validation failed due to
Error: 272:70 [trailing-spaces] trailing spaces
| description: | | ||
| The number of Kubernetes Pods backed up in the last successful Backup created via this BackupPlan. | ||
| - !ruby/object:Api::Type::String | ||
| name: state |
There was a problem hiding this comment.
Do we think these fields will be useful to Terraform users? Would you mind sharing the API documentation of these fields or what are the possible values for state? as I imagine we would always get state: READY for successful resource creation/update, otherwise we would end up with errors and might not write these fields to terraform state.
There was a problem hiding this comment.
Public facing documentation isn't complete for api change. This is the description of the fields
STATE_UNSPECIFIED: Default first value for Enums.
CLUSTER_PENDING: Waiting for cluster state to be RUNNING.
PROVISIONING: The BackupPlan is in the process of being created.
READY: BackupPlan is ready to schedule backups
FAILED: BackupPlan creation has failed.
DEACTIVATED: The BackupPlan has been deactivated.
DELETING: The BackupPlan is in the process of being deleted.
Note that CLUSTER_PENDING state can potentially take a significant amount of time (30-40 min) depending on how the agent is being installed. State Reason during FAILED state can be helpful for customers to understand where the failure occurred (especially since the operation can take 30-40 min), and how to fix it
There was a problem hiding this comment.
@shuyama1 let me know if you think this isn't a useful field for terraform users
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 2 files changed, 30 insertions(+)) |
Tests analyticsTotal tests: Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccComputeFirewallPolicyRule_multipleRules |
|
Tests failed during RECORDING mode: Please fix these to complete your PR |
| The number of Kubernetes Pods backed up in the last successful Backup created via this BackupPlan. | ||
| - !ruby/object:Api::Type::String | ||
| name: state | ||
| output: True |
There was a problem hiding this comment.
| output: True | |
| output: true |
only nitpick - for consistency.
| The State of the BackupPlan. | ||
| - !ruby/object:Api::Type::String | ||
| name: stateReason | ||
| output: True |
There was a problem hiding this comment.
| output: True | |
| output: true |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 2 files changed, 30 insertions(+)) |
Tests analyticsTotal tests: Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccContainerAwsNodePool_BetaBasicHandWritten|TestAccComputeFirewallPolicyRule_multipleRules |
|
|
new read only state and state_reason fields were added to gkebackup backupplan resource in api. we are adding these read only fields to terraform
If this PR is for Terraform, I acknowledge that I have:
make testandmake lintin the generated providers to ensure it passes unit and linter tests.Release Note Template for Downstream PRs (will be copied)