-
Notifications
You must be signed in to change notification settings - Fork 68
📖 Update ClusterExtensionRevision API docs #2350
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
Open
perdasilva
wants to merge
1
commit into
operator-framework:main
Choose a base branch
from
perdasilva:cer-docs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -24,42 +24,121 @@ import ( | |||||
| const ( | ||||||
| ClusterExtensionRevisionKind = "ClusterExtensionRevision" | ||||||
|
|
||||||
| // Condition Types | ||||||
| // ClusterExtensionRevisionTypeAvailable is the condition type that represents whether the | ||||||
| // ClusterExtensionRevision is available and has been successfully rolled out. | ||||||
| ClusterExtensionRevisionTypeAvailable = "Available" | ||||||
|
|
||||||
| // ClusterExtensionRevisionTypeSucceeded is the condition type that represents whether the | ||||||
| // ClusterExtensionRevision rollout has succeeded at least once. | ||||||
| ClusterExtensionRevisionTypeSucceeded = "Succeeded" | ||||||
|
|
||||||
| // Condition Reasons | ||||||
| ClusterExtensionRevisionReasonAvailable = "Available" | ||||||
| ClusterExtensionRevisionReasonReconcileFailure = "ReconcileFailure" | ||||||
| // ClusterExtensionRevisionReasonAvailable is set when the revision is available | ||||||
| // and passes all probes after a successful rollout. | ||||||
| // Condition: Available, Status: True | ||||||
| ClusterExtensionRevisionReasonAvailable = "Available" | ||||||
|
|
||||||
| // ClusterExtensionRevisionReasonReconcileFailure is set when the ClusterExtensionRevision | ||||||
| // encounters a general reconciliation failure, such as errors ensuring finalizers or | ||||||
| // establishing watches. | ||||||
| // Condition: Available, Status: False | ||||||
| ClusterExtensionRevisionReasonReconcileFailure = "ReconcileFailure" | ||||||
|
|
||||||
| // ClusterExtensionRevisionReasonRevisionValidationFailure is set when the revision | ||||||
| // fails preflight validation checks at the revision level. | ||||||
| // Condition: Available, Status: False | ||||||
| ClusterExtensionRevisionReasonRevisionValidationFailure = "RevisionValidationFailure" | ||||||
| ClusterExtensionRevisionReasonPhaseValidationError = "PhaseValidationError" | ||||||
| ClusterExtensionRevisionReasonObjectCollisions = "ObjectCollisions" | ||||||
| ClusterExtensionRevisionReasonRolloutSuccess = "RolloutSuccess" | ||||||
| ClusterExtensionRevisionReasonProbeFailure = "ProbeFailure" | ||||||
| ClusterExtensionRevisionReasonIncomplete = "Incomplete" | ||||||
| ClusterExtensionRevisionReasonProgressing = "Progressing" | ||||||
| ClusterExtensionRevisionReasonArchived = "Archived" | ||||||
| ClusterExtensionRevisionReasonMigrated = "Migrated" | ||||||
|
|
||||||
| // ClusterExtensionRevisionReasonPhaseValidationError is set when a phase within | ||||||
| // the revision fails preflight validation checks. | ||||||
| // Condition: Available, Status: False | ||||||
| ClusterExtensionRevisionReasonPhaseValidationError = "PhaseValidationError" | ||||||
|
|
||||||
| // ClusterExtensionRevisionReasonObjectCollisions is set when objects in the revision | ||||||
| // collide with existing objects on the cluster that cannot be adopted based on | ||||||
| // the configured collision protection policy. | ||||||
| // Condition: Available, Status: False | ||||||
| ClusterExtensionRevisionReasonObjectCollisions = "ObjectCollisions" | ||||||
|
|
||||||
| // ClusterExtensionRevisionReasonRolloutSuccess is set when the revision has | ||||||
| // successfully completed its rollout for the first time. | ||||||
| // Condition: Succeeded, Status: True | ||||||
| ClusterExtensionRevisionReasonRolloutSuccess = "RolloutSuccess" | ||||||
|
|
||||||
| // ClusterExtensionRevisionReasonProbeFailure is set when one or more objects | ||||||
| // in the revision fail their readiness probes during rollout. | ||||||
| // Condition: Available, Status: False | ||||||
| ClusterExtensionRevisionReasonProbeFailure = "ProbeFailure" | ||||||
|
|
||||||
| // ClusterExtensionRevisionReasonIncomplete is set when the revision rollout | ||||||
| // has not completed but no specific probe failures have been detected. | ||||||
| // Condition: Available, Status: False | ||||||
| ClusterExtensionRevisionReasonIncomplete = "Incomplete" | ||||||
|
|
||||||
| // ClusterExtensionRevisionReasonProgressing is set when the revision rollout | ||||||
| // is actively making progress and is in transition. | ||||||
| // Condition: Progressing, Status: True | ||||||
| ClusterExtensionRevisionReasonProgressing = "Progressing" | ||||||
|
|
||||||
| // ClusterExtensionRevisionReasonArchived is set when the revision has been | ||||||
| // archived and its objects have been torn down. | ||||||
| // Condition: Available, Status: Unknown | ||||||
| ClusterExtensionRevisionReasonArchived = "Archived" | ||||||
|
|
||||||
| // ClusterExtensionRevisionReasonMigrated is set when the revision was | ||||||
| // migrated from an existing Helm release to a ClusterExtensionRevision. | ||||||
| // Condition: Available, Status: Unknown | ||||||
| ClusterExtensionRevisionReasonMigrated = "Migrated" | ||||||
| ) | ||||||
|
|
||||||
| // ClusterExtensionRevisionSpec defines the desired state of ClusterExtensionRevision. | ||||||
| // | ||||||
| // A ClusterExtensionRevision represents a specific immutable snapshot of the objects | ||||||
| // to be installed for a ClusterExtension. Each revision is rolled out in phases, | ||||||
| // with objects organized by their Group-Kind into well-known phases such as namespaces, | ||||||
| // rbac, crds, and deploy. | ||||||
| type ClusterExtensionRevisionSpec struct { | ||||||
| // Specifies the lifecycle state of the ClusterExtensionRevision. | ||||||
| // The lifecycleState field specifies the lifecycle state of the ClusterExtensionRevision. | ||||||
| // | ||||||
| // When set to "Active" (the default), the revision is actively managed and reconciled. | ||||||
| // When set to "Paused", reconciliation is disabled but status updates continue. | ||||||
| // When set to "Archived", the revision is torn down and scaled to zero. | ||||||
| // The revision is removed from the owner list of all objects previously under management. | ||||||
| // All objects that did not transition to a succeeding revision are deleted. | ||||||
| // | ||||||
| // Once a revision is set to "Archived", it cannot be un-archived. | ||||||
| // | ||||||
| // +kubebuilder:default="Active" | ||||||
| // +kubebuilder:validation:Enum=Active;Paused;Archived | ||||||
| // +kubebuilder:validation:XValidation:rule="oldSelf == 'Active' || oldSelf == 'Paused' || oldSelf == 'Archived' && oldSelf == self", message="can not un-archive" | ||||||
|
||||||
| // +kubebuilder:validation:XValidation:rule="oldSelf == 'Active' || oldSelf == 'Paused' || oldSelf == 'Archived' && oldSelf == self", message="can not un-archive" | |
| // +kubebuilder:validation:XValidation:rule="oldSelf == 'Active' || oldSelf == 'Paused' || oldSelf == 'Archived' && oldSelf == self", message="cannot un-archive" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.