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

Sort the integration configurations before returning #1825

Merged
merged 1 commit into from
Nov 24, 2020

Conversation

kaczyns
Copy link
Contributor

@kaczyns kaczyns commented Nov 23, 2020

Fixes #1824

The list of spec.configurations in the Integration ends up as volumes and volumeMounts in the Knative service. The ordering of these is determined by this package: https://github.com/scylladb/go-set
There is no ordering implied here, which is perfectly fine, except that Knative sees the order of the volumes and volume mounts as a change worthy of a new revision. When there are many configmaps and secrets in the integration, the number of additional revisions is quite large (50-60, sometimes more) and a new pod is generated for each one. Sorting the list before returning it ensures the ordering is consistent, and Knative will only generate a single revision.

Release Note

NONE

@astefanutti astefanutti merged commit 280b623 into apache:master Nov 24, 2020
@astefanutti
Copy link
Member

Thanks!

@nicolaferraro nicolaferraro mentioned this pull request Dec 22, 2020
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 this pull request may close these issues.

Multiple knative revisions created when integration has multiple spec.configuration items
4 participants