Skip to content

Commit

Permalink
Check if no kaniko cache config is given at all and do not set hostpath
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhoefling committed May 19, 2019
1 parent 333737e commit 7410a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/skaffold/build/cluster/sources/sources.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func podTemplate(clusterDetails *latest.ClusterDetails, artifact *latest.KanikoA
},
}

if artifact.Cache.HostPath != "" {
if artifact.Cache != nil && artifact.Cache.HostPath != "" {
volumeMount := v1.VolumeMount{
Name: constants.DefaultKanikoCacheDirName,
MountPath: constants.DefaultKanikoCacheDirMountPath,
Expand Down

0 comments on commit 7410a1a

Please sign in to comment.