@@ -13,7 +13,7 @@ import (
1313 "golang.org/x/xerrors"
1414)
1515
16- func newPushCmd (ct clients.ContainerTasks , kc clients.Kubernetes , ht clients.HTTP , log hclog.Logger ) * cobra.Command {
16+ func newPushCmd (ct clients.ContainerTasks , kc clients.Kubernetes , ht clients.HTTP , nc clients. Nomad , l hclog.Logger ) * cobra.Command {
1717 return & cobra.Command {
1818 Use : "push [image] [cluster]" ,
1919 Short : "Push a local Docker image to a cluster" ,
@@ -50,9 +50,9 @@ func newPushCmd(ct clients.ContainerTasks, kc clients.Kubernetes, ht clients.HTT
5050
5151 switch p .Info ().Type {
5252 case config .TypeK8sCluster :
53- return pushK8sCluster (image , p .(* config.K8sCluster ), ct , kc , ht , log )
53+ return pushK8sCluster (image , p .(* config.K8sCluster ), ct , kc , ht , l )
5454 case config .TypeNomadCluster :
55- return pushNomadCluster (image , p .(* config.NomadCluster ), ct , ht , log )
55+ return pushNomadCluster (image , p .(* config.NomadCluster ), ct , nc , l )
5656 }
5757
5858 return nil
@@ -80,7 +80,7 @@ func pushK8sCluster(image string, c *config.K8sCluster, ct clients.ContainerTask
8080 return nil
8181}
8282
83- func pushNomadCluster (image string , c * config.NomadCluster , ct clients.ContainerTasks , ht clients.HTTP , log hclog.Logger ) error {
83+ func pushNomadCluster (image string , c * config.NomadCluster , ct clients.ContainerTasks , ht clients.Nomad , log hclog.Logger ) error {
8484 cl := providers .NewNomadCluster (c , ct , ht , log )
8585
8686 // get the id of the cluster
0 commit comments