integr8ly / integration-controller Goto Github PK
View Code? Open in Web Editor NEWpoc for managing integrations
poc for managing integrations
make setup install run
#@echo Installing operator-sdk cli
#cd vendor/github.com/operator-framework/operator-sdk/commands/operator-sdk/ && go install .
Installing dep
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5110 100 5110 0 0 5110 0 0:00:01 --:--:-- 0:00:01 13663
ARCH = amd64
OS = darwin
Will install into /Users/dabou/Code/go-workspace/bin
Fetching https://github.com/golang/dep/releases/latest..
Release Tag = v0.5.0
Fetching https://github.com/golang/dep/releases/tag/v0.5.0..
Fetching https://github.com/golang/dep/releases/download/v0.5.0/dep-darwin-amd64..
Setting executable permissions.
Moving executable to /Users/dabou/Code/go-workspace/bin/dep
Installing errcheck
setup complete run make build deploy to build and deploy the operator to a local cluster
kubectl create -f deploy/crd.yaml
customresourcedefinition "integrations.integreatly.org" created
oc new-project integration-services
Now using project "integration-services" on server "https://192.168.65.24:8443".
You can add applications to this project with the 'new-app' command. For example, try:
oc new-app centos/ruby-22-centos7~https://github.com/openshift/ruby-ex.git
to build a new example application in Ruby.
kubectl create --insecure-skip-tls-verify -f deploy/rbac.yaml -n integration-services
role "integration-controller" created
rolebinding "ns-integration-controller" created
operator-sdk up local --namespace=integration-services --operator-flags="--resync=20 --log-level=debug"
ERRO[0000] failed to initialize service object for operator metrics: OPERATOR_NAME must be set
INFO[0000] Go Version: go1.10.2
INFO[0000] Go OS/Arch: darwin/amd64
INFO[0000] operator-sdk Version: 0.0.6
INFO[0000] config: insecure requests to services with self signed certs are enabled: false
INFO[0000] config: EnMasse namespace is set to enmasse
INFO[0000] config: fuse namespace is set to integration-services
INFO[0000] config: resync interval is set to20
INFO[0000] consig: loglevel debug
panic: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory
goroutine 1 [running]:
main.main()
/Users/dabou/Code/go-workspace/src/github.com/integr8ly/integration-controller/cmd/integration-controller/main.go:123 +0xd03
exit status 2
Error: failed to run operator locally: exit status 1
make: *** [run] Error 1
I suspect that the error is related to this message panic: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory
Do we need any specific version of openshift to install it ? Can we use minishift ?
Why do you use kubectl
within the makefile instead of oc as kubectl
is perhaps not installed locally ?
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.