You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by GitBox <gi...@apache.org> on 2019/06/04 13:46:37 UTC

[GitHub] [camel-k] maschmid opened a new issue #722: examples/knative broken on OpenShift knative 0.6.0, must not set the field(s): spec.runLatest.configuration.revisionTemplate.spec.container.env[11].valueFrom.fieldRef

maschmid opened a new issue #722: examples/knative broken on OpenShift knative 0.6.0, must not set the field(s): spec.runLatest.configuration.revisionTemplate.spec.container.env[11].valueFrom.fieldRef
URL: https://github.com/apache/camel-k/issues/722
 
 
   Attempting to run camelk 0.3.3 examples/knative demo on OpenShift 4.1.rc9 with knative serving & eventing 0.6.0 (installed from operatorhub),
   
   fails with the following Reconciler error in the camel-k-operator
   
   ```
   {"level":"info","ts":1559655631.553665,"logger":"camel-k.controller.integration","msg":"Reconciling Integration","request-namespace":"myproject","request-name":"printer"}
   {"level":"info","ts":1559655631.5537536,"logger":"camel-k.controller.integration","msg":"Invoking action deploy","request-namespace":"myproject","request-name":"printer","api-version":"camel.apache.org/v1alpha1","kind":"Integration","ns":"myproject","name":"printer"}
   {"level":"info","ts":1559655631.5538898,"logger":"camel-k.trait","msg":"Apply trait: camel"}
   {"level":"info","ts":1559655631.555041,"logger":"camel-k.trait","msg":"Apply trait: gc"}
   {"level":"info","ts":1559655631.5555255,"logger":"camel-k.trait","msg":"Apply trait: knative"}
   {"level":"info","ts":1559655631.5555818,"logger":"camel-k.trait","msg":"Apply trait: environment"}
   {"level":"info","ts":1559655631.5555944,"logger":"camel-k.trait","msg":"Apply trait: deployer"}
   {"level":"info","ts":1559655631.5559294,"logger":"camel-k.trait","msg":"Apply trait: knative-service"}
   {"level":"info","ts":1559655631.5559826,"logger":"camel-k.trait","msg":"Apply trait: container"}
   {"level":"info","ts":1559655631.5559938,"logger":"camel-k.trait","msg":"Apply trait: classpath"}
   {"level":"info","ts":1559655631.5560288,"logger":"camel-k.trait","msg":"Apply trait: istio"}
   {"level":"info","ts":1559655631.5560393,"logger":"camel-k.trait","msg":"Apply trait: owner"}
   {"level":"error","ts":1559655631.5794945,"logger":"kubebuilder.controller","msg":"Reconciler error","controller":"integration-controller","request":"myproject/printer","error":"could not create or replace resource printer: Internal error occurred: admission webhook \"webhook.serving.knative.dev\" denied the request: mutation failed: must not set the field(s): spec.runLatest.configuration.revisionTemplate.spec.container.env[11].valueFrom.fieldRef, spec.runLatest.configuration.revisionTemplate.spec.container.env[12].valueFrom.fieldRef","errorVerbose":"Internal error occurred: admission webhook \"webhook.serving.knative.dev\" denied the request: mutation failed: must not set the field(s): spec.runLatest.configuration.revisionTemplate.spec.container.env[11].valueFrom.fieldRef, spec.runLatest.configuration.revisionTemplate.spec.container.env[12].valueFrom.fieldRef\ncould not create or replace resource printer\ngithub.com/apache/camel-k/pkg/util/kubernetes.ReplaceResource\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/pkg/util/kubernetes/replace.go:66\ngithub.com/apache/camel-k/pkg/util/kubernetes.ReplaceResources\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/pkg/util/kubernetes/replace.go:37\ngithub.com/apache/camel-k/pkg/controller/integration.(*deployAction).Handle\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/pkg/controller/integration/deploy.go:67\ngithub.com/apache/camel-k/pkg/controller/integration.(*ReconcileIntegration).Reconcile\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/pkg/controller/integration/integration_controller.go:151\ngithub.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215\ngithub.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.Until\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:2361","stacktrace":"github.com/apache/camel-k/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:217\ngithub.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\ngithub.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait.Until\n\t/home/nferraro/gopaths/camel-k/src/github.com/apache/camel-k/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services