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

Cannot deploy an integration using configmap/secret key filtering #3543

Closed
essobedo opened this issue Aug 12, 2022 · 1 comment · Fixed by #3544
Closed

Cannot deploy an integration using configmap/secret key filtering #3543

essobedo opened this issue Aug 12, 2022 · 1 comment · Fixed by #3544
Assignees

Comments

@essobedo
Copy link
Contributor

If we try to run the integration corresponding to the example proposed in this article, we end up with an error of following type:

{
   "level":"error",
   "ts":1659538587.1773164,
   "logger":"controller.integration-controller",
   "msg":"Reconciler error",
   "reconciler group":"camel.apache.org",
   "reconciler kind":"Integration",
   "name":"config-secret-key-route",
   "namespace":"default",
   "error":
   "error executing post actions: error during apply resource: default/config-secret-key-route: Deployment.apps \"config-secret-key-route\" is invalid: [spec.template.spec.volumes[2].secret.items[0].path: Required value, spec.template.spec.containers[0].volumeMounts[2].name: Not found: \"my-sec-multi\"]",
   "errorVerbose":
   "error during apply resource: default/config-secret-key-route: Deployment.apps \"config-secret-key-route\" is invalid: [spec.template.spec.volumes[2].secret.items[0].path: Required value, spec.template.spec.containers[0].volumeMounts[2].name: Not found: \"my-sec-multi\"]
    error executing post actions\ngithub.com/apache/camel-k/pkg/trait.Apply
      github.com/apache/camel-k/pkg/trait/trait.go:55
      github.com/apache/camel-k/pkg/controller/integration.(*monitorAction).Handle
      github.com/apache/camel-k/pkg/controller/integration/monitor.go:118
      github.com/apache/camel-k/pkg/controller/integration.(*reconcileIntegration).Reconcile
      github.com/apache/camel-k/pkg/controller/integration/integration_controller.go:309
      github.com/apache/camel-k/pkg/util/monitoring.(*instrumentedReconciler).Reconcile
      github.com/apache/camel-k/pkg/util/monitoring/controller.go:70
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile
      sigs.k8s.io/controller-runtime@v0.10.3/pkg/internal/controller/controller.go:114
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
      sigs.k8s.io/controller-runtime@v0.10.3/pkg/internal/controller/controller.go:311
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
      sigs.k8s.io/controller-runtime@v0.10.3/pkg/internal/controller/controller.go:266
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
      sigs.k8s.io/controller-runtime@v0.10.3/pkg/internal/controller/controller.go:227
      runtime.goexit\n\truntime/asm_amd64.s:1371",
   "stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.10.3/pkg/internal/controller/controller.go:227"
}
@essobedo
Copy link
Contributor Author

The corresponding PR #3544

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant