-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…5616) * Implement new-style resource state handling, add post-create taint and post-update await. * Review comments Signed-off-by: Modular Magician <[email protected]>
- Loading branch information
1 parent
8b94581
commit 7aa263a
Showing
3 changed files
with
61 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:enhancement | ||
container: `google_container_cluster` will allow importing / updating / deleting clusters in error states and will wait for a stable state after updates. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package google | ||
|
||
// A StateType represents the specific type of resting state that a state value | ||
// is. | ||
type StateType int | ||
|
||
const ( | ||
UndefinedState StateType = iota | ||
// A special resting state, that generally requires special consideration | ||
// Interactive states like PENDING_PARTNER in interconnects are an example | ||
RestingState | ||
// An error state is a state that indicates that a resource is not working | ||
// correctly. If this is Create, it should be tainted by returning an error | ||
ErrorState | ||
// A ready resource is fully provisioned, and ready to accept traffic/work | ||
ReadyState | ||
) | ||
|
||
type RestingStates map[string]StateType |