Git Product home page Git Product logo

cdi-operator's Introduction

cdi-operator

Operator that manages CDI (containerized-data-importer)

Quick Start

Prerequisites

  • Docker (used for creating container images, etc.) with access for the current user
  • a Kubernetes/OpenShift/Minikube/Minishift instance

Build a local docker image for the operator

make build

Launch the Operator in the local Openshift Cluster

make deploy

Check operator logs

oc logs -f $(oc get pods --selector name=cdi-operator --output=name)

Check for CDI related pods in kube-system ns

oc get pod -o name --namespace=kube-system | grep cdi

cdi-operator's People

Contributors

irosenzw avatar rmohr avatar tiraboschi avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cdi-operator's Issues

npe whe starting

I get an npe at the start of this operator. This happen after an unclean installation and resistallation of kubevirt. it;s unclear to what makes it fail, but the npe is probably a bug:

E0722 00:00:59.557730 1 runtime.go:78] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
goroutine 1188 [running]:
k8s.io/apimachinery/pkg/util/runtime.logPanic({0x1add6c0?, 0x2fbab00})
/remote-source/app/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:74 +0x86
k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0x0, 0x0, 0x0?})
/remote-source/app/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:48 +0x75
panic({0x1add6c0, 0x2fbab00})
/usr/lib/golang/src/runtime/panic.go:884 +0x212
kubevirt.io/containerized-data-importer/pkg/operator/controller.(*ReconcileCDI).watchCDICRD.func1({0x211b758?, 0xc004289240?})
/remote-source/app/pkg/operator/controller/cruft.go:289 +0x94
sigs.k8s.io/controller-runtime/pkg/handler.(*enqueueRequestsFromMapFunc).mapAndEnqueue(0x427d7d7b3a2273?, {0x210eb98, 0xc00078a520}, {0x211b758?, 0xc004289240?}, 0x386b2e6e6f697461?)
/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/handler/enqueue_mapped.go:80 +0x4c
sigs.k8s.io/controller-runtime/pkg/handler.(*enqueueRequestsFromMapFunc).Create(0xc00051e108?, {{0x211b758?, 0xc004289240?}}, {0x210eb98, 0xc00078a520})
/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/handler/enqueue_mapped.go:57 +0xd2
sigs.k8s.io/controller-runtime/pkg/source/internal.EventHandler.OnAdd({{0x2105548, 0xc00051e108}, {0x210eb98, 0xc00078a520}, {0x0, 0x0, 0x0}}, {0x1d50820?, 0xc004289240})
/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/source/internal/eventsource.go:63 +0x248
k8s.io/client-go/tools/cache.(*processorListener).run.func1()
/remote-source/app/vendor/k8s.io/client-go/tools/cache/shared_informer.go:787 +0x134
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0x0?)
/remote-source/app/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:155 +0x3e
k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc0005aef38?, {0x20e71e0, 0xc004127200}, 0x1, 0xc004da0240)
/remote-source/app/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:156 +0xb6
k8s.io/apimachinery/pkg/util/wait.JitterUntil(0x0?, 0x3b9aca00, 0x0, 0x0?, 0x0?)
/remote-source/app/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133 +0x89
k8s.io/apimachinery/pkg/util/wait.Until(...)
/remote-source/app/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:90
k8s.io/client-go/tools/cache.(*processorListener).run(0xc000b3f780?)
/remote-source/app/vendor/k8s.io/client-go/tools/cache/shared_informer.go:781 +0x6b
k8s.io/apimachinery/pkg/util/wait.(*Group).Start.func1()
/remote-source/app/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:73 +0x5a
created by k8s.io/apimachinery/pkg/util/wait.(*Group).Start
/remote-source/app/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:71 +0x85
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x18bd394]

Please add a readme

For new users seeing this repository for the first time, its very hard to understand what its about or how to use or contribute to it.

  • Add a welcome / what this is about section
  • Add a how to install / use etc
  • Add a how to contribute section

if by the time this get implemented we have a working CI, it would be nice to add the CI status to the readme as well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.