Created
March 4, 2020 12:27
-
-
Save praveenkumar/7cc4a6e984131861438cef59d3552034 to your computer and use it in GitHub Desktop.
Doc gist for cvo changes
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
$ oc get clusterversion -oyaml | |
apiVersion: v1 | |
items: | |
- apiVersion: config.openshift.io/v1 | |
kind: ClusterVersion | |
metadata: | |
creationTimestamp: "2020-02-29T17:11:09Z" | |
generation: 4 | |
name: version | |
resourceVersion: "616039" | |
selfLink: /apis/config.openshift.io/v1/clusterversions/version | |
uid: fefe1f50-96b8-4fc4-9563-592d50878275 | |
spec: | |
channel: stable-4.3 | |
clusterID: 3b183f62-d39a-49ad-b9c5-e8e029563f5c | |
overrides: | |
- group: apps/v1 | |
kind: Deployment | |
name: cluster-monitoring-operator | |
namespace: openshift-monitoring | |
unmanaged: true | |
- group: apps/v1 | |
kind: Deployment | |
name: machine-config-operator | |
namespace: openshift-machine-config-operator | |
unmanaged: true | |
- group: apps/v1 | |
kind: Deployment | |
name: etcd-quorum-guard | |
namespace: openshift-machine-config-operator | |
unmanaged: true | |
- group: apps/v1 | |
kind: Deployment | |
name: machine-api-operator | |
namespace: openshift-machine-api | |
unmanaged: true | |
- group: apps/v1 | |
kind: Deployment | |
name: cluster-autoscaler-operator | |
namespace: openshift-machine-api | |
unmanaged: true | |
- group: apps/v1 | |
kind: Deployment | |
name: insights-operator | |
namespace: openshift-insights | |
unmanaged: true | |
- group: apps/v1 | |
kind: Deployment | |
name: prometheus-k8s | |
namespace: openshift-cloud-credential-operator | |
unmanaged: true | |
upstream: https://api.openshift.com/api/upgrades_info/v1/graph | |
status: | |
availableUpdates: null | |
conditions: | |
- lastTransitionTime: "2020-02-29T17:56:24Z" | |
message: Done applying 4.3.1 | |
status: "True" | |
type: Available | |
- lastTransitionTime: "2020-02-29T17:44:39Z" | |
status: "False" | |
type: Failing | |
- lastTransitionTime: "2020-02-29T17:59:39Z" | |
message: Cluster version is 4.3.1 | |
status: "False" | |
type: Progressing | |
- lastTransitionTime: "2020-03-04T10:15:49Z" | |
status: "True" | |
type: RetrievedUpdates | |
- lastTransitionTime: "2020-02-29T17:58:47Z" | |
message: Disabling ownership via cluster version overrides prevents upgrades. | |
Please remove overrides before continuing. | |
reason: ClusterVersionOverridesSet | |
status: "False" | |
type: Upgradeable | |
desired: | |
force: false | |
image: quay.io/openshift-release-dev/ocp-release@sha256:ea7ac3ad42169b39fce07e5e53403a028644810bee9a212e7456074894df40f3 | |
version: 4.3.1 | |
history: | |
- completionTime: "2020-02-29T17:56:24Z" | |
image: quay.io/openshift-release-dev/ocp-release@sha256:ea7ac3ad42169b39fce07e5e53403a028644810bee9a212e7456074894df40f3 | |
startedTime: "2020-02-29T17:11:09Z" | |
state: Completed | |
verified: false | |
version: 4.3.1 | |
observedGeneration: 4 | |
versionHash: 7VzR42wcDZ4= | |
kind: List | |
metadata: | |
resourceVersion: "" | |
selfLink: "" |
$ oc get clusterversion version -ojsonpath='{range .spec.overrides[*]}{.name}{"\n"}{end}'
cluster-monitoring-operator
machine-config-operator
etcd-quorum-guard
machine-api-operator
cluster-autoscaler-operator
insights-operator
prometheus-k8s
$ oc patch clusterversion/version --type='json' -p '[{"op":"remove", "path":"/spec/overrides/<unmanaged-operator-index>"}]' --dry-run -oyaml
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To enable any of those operator you need to edit the
clusterversion
resource usingoc edit clusterversion
and then remove the respective overrides group block. Ex. if we want to enable monitioring then following block should be removed from theclusterversion