Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 #722

Closed
maschmid opened this issue Jun 4, 2019 · 0 comments · Fixed by #724
Assignees
Labels
area/knative Related to Knative
Milestone

Comments

@maschmid
Copy link

maschmid commented Jun 4, 2019

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 to deploy the "printer" integration 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"}
@nicolaferraro nicolaferraro added this to the 0.3.4 milestone Jun 4, 2019
@nicolaferraro nicolaferraro added the area/knative Related to Knative label Jun 4, 2019
nicolaferraro added a commit to nicolaferraro/camel-k that referenced this issue Jun 4, 2019
@nicolaferraro nicolaferraro self-assigned this Jun 4, 2019
nicolaferraro added a commit to nicolaferraro/camel-k that referenced this issue Jun 5, 2019
ipolyzos pushed a commit to ipolyzos/camel-k that referenced this issue Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/knative Related to Knative
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants