Skip to content

Playground for demonstrating KubeVirt in OLM

Notifications You must be signed in to change notification settings

lveyde/kubevirt-olm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubevirt-olm

Playground for demonstrating KubeVirt in OLM

Want to try?

  1. Build (and push) a container image yourself (like: docker build -t docker.io/djzager/kubevirt-operators:$(git rev-parse --short HEAD) -f Dockerfile . and docker push docker.io/djzager/kubevirt-operators:$(git rev-parse --short HEAD)) OR choose from lveyde or djzager that have already been built.
  2. Update the kubevirt-operator.catalogsource.yaml with your container image of choice. Want to know more about the base container image? check this out
  3. kubectl create -f kubevirt-operator.catalogsource.yaml at this point you should be able to see the kubevirt and cdi operators in the UI under Operator Management. You should also see a pod started for a kubevirt-operators image started up in the openshift-operator-lifecycle-manager namespace.
  4. (Non-Step, just notes) At this stage, we are making use of features specifically provided by the grpc type catalogsource. This has the caveat that we'll need to "Subscribe" to our operator in the kubevirt namespace to align with the ServiceAccount that we reference here and here. With the added benefit of allowing us to aggregate roles, like here.
  5. In order to be able to subscribe to our operator in the kubevirt namespace we must first kubectl create namespace kubevirt and kubectl create -f kubevirt-operator.operatorgroup.yaml.
  6. Now we should be able to make a subscription to our operator in the kubevirt throught the UI or by creating a subscription object. (Maybe want to add a subscription to this project for reference)

Some references

  1. Information about the operator-registry image that the kubevirt-operators image is based on https://github.com/operator-framework/operator-registry/
  2. Information about how to build a CSV https://github.com/operator-framework/operator-lifecycle-manager/blob/master/Documentation/design/building-your-csv.md
  3. The community operators project https://github.com/operator-framework/community-operators/

About

Playground for demonstrating KubeVirt in OLM

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 100.0%