Instantly share code, notes, and snippets.

View *shell*.txt
[jim@localhost operator-lifecycle-manager]$ oc get all
NAME READY STATUS RESTARTS AGE
pod/build-controller-5b84f95d5-kgrst 1/1 Running 0 14s
pod/build-webhook-796869d79b-r66j6 1/1 Running 0 14s
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/build-controller ClusterIP 172.30.221.22 <none> 9090/TCP 12s
service/build-webhook ClusterIP 172.30.34.151 <none> 443/TCP 12s
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
View *shell*.txt
[jim@localhost operator-lifecycle-manager]$ kubectl logs -f -n openshift-operator-lifecycle-manager catalog-operator-f8985998d-6tnsc
time="2018-10-16T20:16:31Z" level=info msg="Using in-cluster kube client config"
time="2018-10-16T20:16:31Z" level=info msg="Using in-cluster kube client config"
time="2018-10-16T20:16:31Z" level=info msg="connection established. cluster-version: v1.10.5"
time="2018-10-16T20:16:31Z" level=info msg="Operator ready"
time="2018-10-16T20:16:31Z" level=info msg="starting informers..."
time="2018-10-16T20:16:31Z" level=info msg="waiting for caches to sync..."
time="2018-10-16T20:16:31Z" level=info msg="openshift-operator-lifecycle-manager/rh-operators added"
time="2018-10-16T20:16:31Z" level=info msg="starting workers..."
time="2018-10-16T20:16:31Z" level=info msg="getting from queue" key=openshift-operator-lifecycle-manager/rh-operators queue=catsrc
View *shell*.txt
[jim@localhost operator-lifecycle-manager]$ oc logs -f -n openshift-operator-lifecycle-manager catalog-operator-6947c9c787-jl7sj
time="2018-10-16T19:33:41Z" level=info msg="Using in-cluster kube client config"
time="2018-10-16T19:33:41Z" level=info msg="Using in-cluster kube client config"
time="2018-10-16T19:33:41Z" level=info msg="connection established. cluster-version: v1.11.0+d4cacc0"
time="2018-10-16T19:33:41Z" level=info msg="Operator ready"
time="2018-10-16T19:33:41Z" level=info msg="starting informers..."
time="2018-10-16T19:33:41Z" level=info msg="waiting for caches to sync..."
time="2018-10-16T19:33:41Z" level=info msg="starting workers..."
time="2018-10-16T19:33:47Z" level=info msg="openshift-operator-lifecycle-manager/rh-operators added"
time="2018-10-16T19:33:47Z" level=info msg="getting from queue" key=openshift-operator-lifecycle-manager/rh-operators queue=catsrc
View *shell*.txt
apiVersion: v1
items:
- apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"operators.coreos.com/v1alpha1","kind":"ClusterServiceVersion","metadata":{"annotations":{},"name":"knative-build.v0.1.2","namespace":"knative-build"},"spec":{"customresourcedefinitions":{"owned":[{"description":"Create and run on-cluster processes to completion","displayName":"Build","kind":"Build","name":"builds.build.knative.dev","version":"v1alpha1"},{"description":"Encapsulates a configurable, reusable build process","displayName":"Build Template","kind":"BuildTemplate","name":"buildtemplates.build.knative.dev","version":"v1alpha1"}]},"description":"Kubernetes-native Build resource\n","displayName":"KnativeBuild","install":{"spec":{"deployments":[{"name":"build-controller","spec":{"replicas":1,"selector":{"matchLabels":{"app":"build-controller"}},"template":{"metadata":{"labels":{"app":"build-controller
View *shell*.txt
[jim@localhost operator-lifecycle-manager]$ oc create -f deploy/okd/manifests/latest/
namespace/openshift-operator-lifecycle-manager created
clusterrole.rbac.authorization.k8s.io/system:controller:operator-lifecycle-manager created
serviceaccount/olm-operator-serviceaccount created
clusterrolebinding.rbac.authorization.k8s.io/olm-operator-binding-openshift-operator-lifecycle-manager created
customresourcedefinition.apiextensions.k8s.io/clusterserviceversions.operators.coreos.com created
customresourcedefinition.apiextensions.k8s.io/installplans.operators.coreos.com created
customresourcedefinition.apiextensions.k8s.io/subscriptions.operators.coreos.com created
customresourcedefinition.apiextensions.k8s.io/catalogsources.operators.coreos.com created
configmap/rh-operators created
View *shell*.txt
time="2018-10-16T18:20:37Z" level=info msg="kube-system/system:controller:cloud-provider updated"
time="2018-10-16T18:20:37Z" level=info msg="kube-system/system:controller:token-cleaner updated"
time="2018-10-16T18:20:37Z" level=info msg="getting from queue" key="kube-system/system:controller:token-cleaner" queue=namespace
time="2018-10-16T18:20:37Z" level=info msg="kube-system/system::leader-locking-kube-controller-manager updated"
time="2018-10-16T18:20:37Z" level=info msg="kube-system/system::leader-locking-kube-scheduler updated"
time="2018-10-16T18:20:37Z" level=info msg="couldn't get from queue" key="kube-system/system:controller:token-cleaner" queue=namespace
time="2018-10-16T18:20:37Z" level=info msg="getting from queue" key="kube-system/system::leader-locking-kube-controller-manager" queue=namespace
time="2018-10-16T18:20:37Z" level=info msg="getting from queue" key="kube-system/system::leader-locking-kube-scheduler" queue=namespace
time="2018-10-16T18:20:37Z" level=info msg="couldn't get from queue"
View *shell*<2>.txt
{"level":"info","logger":"controller.build-controller","caller":"controller/controller.go:208","msg":"Successfully synced \"build-tests/name.contains.dots\"","knative.dev/controller":"controller","knative.dev/controller":"build-controller"}
{"level":"info","logger":"controller.build-controller","caller":"controller/controller.go:208","msg":"Successfully synced \"build-tests/no-steps\"","knative.dev/controller":"controller","knative.dev/controller":"build-controller"}
{"level":"info","logger":"controller.build-controller","caller":"controller/controller.go:208","msg":"Successfully synced \"build-tests/negative-timeout\"","knative.dev/controller":"controller","knative.dev/controller":"build-controller"}
{"level":"info","logger":"controller.build-controller","caller":"controller/controller.go:208","msg":"Successfully synced \"build-tests/too-long-timeout\"","knative.dev/controller":"controller","knative.dev/controller":"build-controller"}
{"level":"info","logger":"controller.build-controller","caller":"build/con
View *shell*.txt
[jim@localhost build]$ go test -v -tags=e2e -count=1 ./test/e2e/... -run ^TestInvalid
info logging/config.go:38 Successfully created the logger. {"knative.dev/jsonconfig": "{\n\t \"level\": \"info\",\n\t \"encoding\": \"console\",\n\t \"outputPaths\": [\"stdout\"],\n\t \"errorOutputPaths\": [\"stderr\"],\n\t \"encoderConfig\": {\n\t \"messageKey\": \"message\",\n\t\t\t\"levelKey\": \"level\",\n\t\t\t\"nameKey\": \"logger\",\n\t\t\t\"callerKey\": \"caller\",\n\t\t\t\"messageKey\": \"msg\",\n \"stacktraceKey\": \"stacktrace\",\n \"lineEnding\": \"\",\n \"levelEncoder\": \"\",\n \"timeEncoder\": \"\",\n \"durationEncoder\": \"\",\n \"callerEncoder\": \"\"\n\t }\n\t}"}
info logging/config.go:38 Logging level set to info
info TestSetup e2e/e2e.go:95 Created namespace "build-tests"
=== RUN TestInvalidBuild
--- FAIL: TestInvalidBuild (0.23s)
invalid_test.go:83: Expected error creating invalid build "name.contains.dots", got nil
invalid_test.go:83: Expected error creating in
View *shell*.txt
[jim@localhost serving]$ go test -v -tags=e2e -count=1 ./test/e2e --tag any-old-tag
info logging/config.go:38 Successfully created the logger. {"knative.dev/jsonconfig": "{\n\t \"level\": \"info\",\n\t \"encoding\": \"console\",\n\t \"outputPaths\": [\"stdout\"],\n\t \"errorOutputPaths\": [\"stderr\"],\n\t \"encoderConfig\": {\n\t \"messageKey\": \"message\",\n\t\t\t\"levelKey\": \"level\",\n\t\t\t\"nameKey\": \"logger\",\n\t\t\t\"callerKey\": \"caller\",\n\t\t\t\"messageKey\": \"msg\",\n \"stacktraceKey\": \"stacktrace\",\n \"lineEnding\": \"\",\n \"levelEncoder\": \"\",\n \"timeEncoder\": \"\",\n \"durationEncoder\": \"\",\n \"callerEncoder\": \"\"\n\t }\n\t}"}
info logging/config.go:38 Logging level set to info
=== RUN TestAutoscaleUpDownUp
info TestAutoscaleUpDownUp e2e/autoscale_test.go:151 Creating a new Route and Configuration
info TestAutoscaleUpDownUp test/crd.go:177 Seeding rand.Rand with 1539291108888725123
info TestAutoscaleUpDownUp test/util.go:29 resource
View *shell*.txt
[jim@localhost serving]$ go test -v -tags=e2e -count=1 ./test/e2e --tag any-old-tag -run ^TestBuildAndServe$
info logging/config.go:38 Successfully created the logger. {"knative.dev/jsonconfig": "{\n\t \"level\": \"info\",\n\t \"encoding\": \"console\",\n\t \"outputPaths\": [\"stdout\"],\n\t \"errorOutputPaths\": [\"stderr\"],\n\t \"encoderConfig\": {\n\t \"messageKey\": \"message\",\n\t\t\t\"levelKey\": \"level\",\n\t\t\t\"nameKey\": \"logger\",\n\t\t\t\"callerKey\": \"caller\",\n\t\t\t\"messageKey\": \"msg\",\n \"stacktraceKey\": \"stacktrace\",\n \"lineEnding\": \"\",\n \"levelEncoder\": \"\",\n \"timeEncoder\": \"\",\n \"durationEncoder\": \"\",\n \"callerEncoder\": \"\"\n\t }\n\t}"}
info logging/config.go:38 Logging level set to info
=== RUN TestBuildAndServe
info TestBuildAndServe e2e/build_test.go:129 Creating a new Route and Configuration with build
info TestBuildAndServe test/crd.go:177 Seeding rand.Rand with 1539290990565071498
info TestBuildAndServe e2e/buil