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

Activate Kaniko caching and warm the platform base image #479

Merged
merged 2 commits into from Feb 22, 2019
Merged

Activate Kaniko caching and warm the platform base image #479

merged 2 commits into from Feb 22, 2019

Conversation

astefanutti
Copy link
Member

@astefanutti astefanutti commented Feb 21, 2019

We may want to add a configuration parameter on the platform that would control the cache activation.

if target.Spec.Build.PublishStrategy == v1alpha1.IntegrationPlatformBuildPublishStrategyKaniko {
// create and warm the Kaniko cache into the Camel K builder volume
action.L.Info("Warming Kaniko cache...")
err = warmKanikoCache(ctx, action.client, target)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wondering if this warming up could be translate into an additional phase and the warmKanikoCache done in a separate co-routine to avoid blocking the reconcile loop

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, totally make sense! Let me rework that part.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@astefanutti astefanutti merged commit 4081a0f into apache:master Feb 22, 2019
@astefanutti astefanutti deleted the issue-196 branch February 22, 2019 14:34
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.

None yet

3 participants