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

Multiple knative revisions created when integration has multiple spec.configuration items #1824

Closed
kaczyns opened this issue Nov 23, 2020 · 0 comments · Fixed by #1825
Closed

Comments

@kaczyns
Copy link
Contributor

kaczyns commented Nov 23, 2020

If I have an integration that contains this:

spec:
  configuration:
  - type: property
    value: camel.component.kafka.heartbeatIntervalMs=5000
  - type: configmap
    value: scm-config
  - type: configmap
    value: outbound-config
  - type: secret
    value: kafka-secrets
  - type: secret
    value: scm-integrations-ca-keystore

note that there are two configmaps and two secrets. When using the Knative profile, the Knative Service that is generated contains volume mounts and volumes for each configmap and secret. When the camel-k operator reconciles this integration multiple times, the order that the volumes and volume mounts appear in the Service is different. Knative will create a new Revision each time the order changes. Reconcile can happen frequently and it is not unusual to have 50-60 revisions (and therefore also pods) concurrently. The problem is worse when there are more configmaps and secrets.

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