Skip to content

Instantly share code, notes, and snippets.

@oglok
Last active June 16, 2020 14:16
Show Gist options
  • Save oglok/d0209258877c92f74719e23910e73c80 to your computer and use it in GitHub Desktop.
Save oglok/d0209258877c92f74719e23910e73c80 to your computer and use it in GitHub Desktop.

Namespace

apiVersion: v1
kind: Namespace
metadata:
  creationTimestamp: null
  name: openshift-cnv
spec: {}
status: {}

Operator Source (not necessary in OCP)

apiVersion: operators.coreos.com/v1
kind: OperatorSource
metadata:
  name: "redhat-operators"
  namespace: "openshift-marketplace"
spec:
  type: appregistry
  endpoint: https://quay.io/cnr
  registryNamespace: "redhat-operators"
  displayName: "redhat-operators"
  publisher: "Kubevirt"

Operator Group

apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
  name: "openshift-cnv-group"
  namespace: "openshift-cnv"
spec:
  targetNamespaces:
  - "openshift-cnv"

Subscription

apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
  name: hco-operatorhub
  namespace: "openshift-cnv"
spec:
  source: "redhat-operators"
  sourceNamespace: "openshift-marketplace"
  name: kubevirt-hyperconverged
  startingCSV: "kubevirt-hyperconverged-operator.v2.3.0"
  channel: "2.3"
  installPlanApproval: "Automatic"

Custom Resource

apiVersion: hco.kubevirt.io/v1alpha1
kind: HyperConverged
metadata:
  name: kubevirt-hyperconverged
  namespace: "openshift-cnv"
spec:
  BareMetalPlatform: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment