You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2019/08/13 14:35:34 UTC

[camel-k] 01/02: fix: Use restart policy OnFailure for Kaniko cache warmer

This is an automated email from the ASF dual-hosted git repository.

astefanutti pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit 47e60f50c5d8f42f04bad86aecb774e1fab78967
Author: James Netherton <ja...@gmail.com>
AuthorDate: Tue Aug 13 09:25:15 2019 +0100

    fix: Use restart policy OnFailure for Kaniko cache warmer
    
    fixes #736
    fixes #898
---
 pkg/controller/integrationplatform/kaniko_cache.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/controller/integrationplatform/kaniko_cache.go b/pkg/controller/integrationplatform/kaniko_cache.go
index 49958d1..6b7ba5f 100644
--- a/pkg/controller/integrationplatform/kaniko_cache.go
+++ b/pkg/controller/integrationplatform/kaniko_cache.go
@@ -83,7 +83,7 @@ func createKanikoCacheWarmerPod(ctx context.Context, client client.Client, platf
 					},
 				},
 			},
-			RestartPolicy: corev1.RestartPolicyNever,
+			RestartPolicy: corev1.RestartPolicyOnFailure,
 			Volumes: []corev1.Volume{
 				{
 					Name: "camel-k-builder",