-
Notifications
You must be signed in to change notification settings - Fork 457
OCPEDGE-2416: Add oc adm transition topology command for SNO to HA transitions #2295
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md | ||
| # This file just uses aliases defined in OWNERS_ALIASES. | ||
|
|
||
| approvers: | ||
| - openshift-edge-approvers | ||
| reviewers: | ||
| - openshift-edge-reviewers |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| package transition | ||
|
|
||
| import ( | ||
| configv1 "github.com/openshift/api/config/v1" | ||
| ) | ||
|
|
||
| // Kubernetes and OpenShift resource names | ||
| const ( | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't need to store them in a separate file. This can be moved under transition.go |
||
| // InfrastructureResourceName is the name of the cluster-scoped Infrastructure resource | ||
| InfrastructureResourceName = "cluster" | ||
|
|
||
| // EtcdOperatorResourceName is the name of the cluster-scoped Etcd operator resource | ||
| EtcdOperatorResourceName = "cluster" | ||
|
|
||
| // EtcdNamespace is the namespace where etcd resources are located | ||
| EtcdNamespace = "openshift-etcd" | ||
|
|
||
| // EtcdEndpointsConfigMapName is the name of the ConfigMap containing etcd endpoints | ||
| EtcdEndpointsConfigMapName = "etcd-endpoints" | ||
| ) | ||
|
|
||
| // ClusterOperator condition types | ||
| const ( | ||
| // ClusterOperatorAvailable indicates the operand is available | ||
| ClusterOperatorAvailable configv1.ClusterStatusConditionType = configv1.OperatorAvailable | ||
|
|
||
| // ClusterOperatorProgressing indicates the operand is being updated | ||
| ClusterOperatorProgressing configv1.ClusterStatusConditionType = configv1.OperatorProgressing | ||
|
|
||
| // ClusterOperatorDegraded indicates the operand is degraded | ||
| ClusterOperatorDegraded configv1.ClusterStatusConditionType = configv1.OperatorDegraded | ||
| ) | ||
|
|
||
| // Etcd operator condition types | ||
| const ( | ||
| // EtcdMembersAvailableCondition indicates etcd has quorum | ||
| EtcdMembersAvailableCondition = "EtcdMembersAvailable" | ||
| ) | ||
|
|
||
| // Cluster-config-operator (CCO) resource and condition types | ||
| const ( | ||
| // ClusterConfigOperatorResourceName is the name of the cluster-scoped Config resource | ||
| ClusterConfigOperatorResourceName = "cluster" | ||
|
|
||
| // TopologyTransitionControllerProgressingCondition indicates topology transition is in progress | ||
| TopologyTransitionControllerProgressingCondition = "TopologyTransitionControllerProgressing" | ||
|
|
||
| // TopologyTransitionControllerUpgradeableCondition indicates if cluster can be upgraded during transition | ||
| TopologyTransitionControllerUpgradeableCondition = "TopologyTransitionControllerUpgradeable" | ||
|
|
||
| // TopologyTransitionPreflightCheckFailedReason indicates preflight validation failed | ||
| TopologyTransitionPreflightCheckFailedReason = "PreflightCheckFailed" | ||
|
|
||
| // TopologyTransitionUnsupportedTransitionReason indicates the requested transition is not supported | ||
| TopologyTransitionUnsupportedTransitionReason = "UnsupportedTransition" | ||
| ) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We probably do not need this file. Upper one should also cover here. |
||
| # This file just uses aliases defined in OWNERS_ALIASES. | ||
|
|
||
| approvers: | ||
| - openshift-edge-approvers | ||
| reviewers: | ||
| - openshift-edge-reviewers | ||
Uh oh!
There was an error while loading. Please reload this page.