Skip to content

Instantly share code, notes, and snippets.

@sub-mod
Created July 3, 2020 02:36
Show Gist options
  • Save sub-mod/141ea1a5a9ff8d3dd797996cc9104b7c to your computer and use it in GitHub Desktop.
Save sub-mod/141ea1a5a9ff8d3dd797996cc9104b7c to your computer and use it in GitHub Desktop.
Install openshift-pipelines-operator on OpenShift 4.4 using oc command

install openshift-pipelines-operator from CLI

Version: 1.0.1.

  • OpenShift-Pipelines: v0.11.3.
  • OpenShift-Pipelines-Triggers: v0.4.0.
  • OpenShift-Pipelines-ClusterTasks: v0.11.
$ oc get packagemanifests -n openshift-marketplace | grep pipeline
openshift-pipelines-operator                 Community Operators   32h
openshift-pipelines-operator-rh              Red Hat Operators     32h

$ oc describe packagemanifests openshift-pipelines-operator-rh -n openshift-marketplace | grep Channel
  Channels:
  Default Channel:  ocp-4.4

$ cat subscription.yml
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
  name: openshift-pipelines-operator-rh
  namespace: openshift-operators
spec:
  channel: ocp-4.4  
  name: openshift-pipelines-operator-rh
  source: redhat-operators
  sourceNamespace: openshift-marketplace

$ oc apply -f subscription.yml

$ oc get subscription --all-namespaces
NAMESPACE             NAME                              PACKAGE                           SOURCE             CHANNEL
openshift-operators   openshift-pipelines-operator-rh   openshift-pipelines-operator-rh   redhat-operators   ocp-4.4

$ oc get clusterserviceversion  -n openshift-operators
NAME                                  DISPLAY                        VERSION   REPLACES   PHASE
openshift-pipelines-operator.v1.0.1   OpenShift Pipelines Operator   1.0.1                Installing

$ oc get clusterserviceversion  -n openshift-operators
NAME                                  DISPLAY                        VERSION   REPLACES   PHASE
openshift-pipelines-operator.v1.0.1   OpenShift Pipelines Operator   1.0.1                Succeeded

$ oc describe subscription openshift-pipelines-operator-rh

$ oc get pods -n openshift-operators
NAME                                            READY   STATUS    RESTARTS   AGE
openshift-pipelines-operator-675b497d78-gqfv6   1/1     Running   0          8m51s

delete openshift-pipelines-operator from CLI

oc delete subscription openshift-pipelines-operator-rh -n openshift-operators
$ oc get subscription openshift-pipelines-operator-rh  -n openshift-operators -o yaml | grep currentCSV
  currentCSV: openshift-pipelines-operator.v1.0.1
oc delete clusterserviceversion openshift-pipelines-operator.v1.0.1 -n openshift-operators
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment