openshift-knative / knative-eventing-operator Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
I received this error when I was trying out openshift-cloud-functions/demos/knative-kubecon the which installs Knative using openshift-cloud-functions/knative-operators
{"level":"info","ts":1557447197.0059896,"logger":"controller_install","msg":"Reconciling Install","Request.Namespace":"knative-eventing","Request.Name":"knative-eventing"}
{"level":"info","ts":1557447197.018882,"logger":"manifestival","msg":"Creating","name":"/addressable-resolver","type":"rbac.authorization.k8s.io/v1, Kind=ClusterRole"}
{"level":"error","ts":1557447197.0498443,"logger":"kubebuilder.controller","msg":"Reconciler error","controller":"install-controller","request":"knative-eventing/knative-eventing","error":"clusterroles.rbac.authorization.k8s.io \"addressable-resolver\" is forbidden: must have cluster-admin privileges to use the aggregationRule","stacktrace":"github.com/openshift-knative/knative-eventing-operator/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/home/matzew/go/src/github.com/openshift-knative/knative-eventing-operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/openshift-knative/knative-eventing-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/matzew/go/src/github.com/openshift-knative/knative-eventing-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:217\ngithub.com/openshift-knative/knative-eventing-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/home/matzew/go/src/github.com/openshift-knative/knative-eventing-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\ngithub.com/openshift-knative/knative-eventing-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/home/matzew/go/src/github.com/openshift-knative/knative-eventing-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/openshift-knative/knative-eventing-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/home/matzew/go/src/github.com/openshift-knative/knative-eventing-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\ngithub.com/openshift-knative/knative-eventing-operator/vendor/k8s.io/apimachinery/pkg/util/wait.Until\n\t/home/matzew/go/src/github.com/openshift-knative/knative-eventing-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
The problem is, knative-eventing-operator
cannot create the role addressable-resolver
.
Just to try it out: giving the cluster-admin role to service account fixed the problem.
kubectl create clusterrolebinding knative-eventing-operator-cluster-admin-binding --clusterrole=cluster-admin --serviceaccount=knative-eventing:knative-eventing-operator
My commands:
minishift profile set knative
minishift start --memory=12192 --cpus=4 --insecure-registry docker-registry.default.svc:5000 --disk-size=50g
oc login -u system:admin
git clone https://github.com/openshift-cloud-functions/demos.git
cd demos/knative-kubecon
git clone https://github.com/openshift-cloud-functions/knative-operators.git
./knative-operators/etc/scripts/install.sh
knative-eventing-operator
was stuck and the installer was timed out at some point.
cc @matzew
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.