Skip to content

Commit

Permalink
Merge pull request #2335 from tejal29/refactor
Browse files Browse the repository at this point in the history
Move default labeller to deploy since it used in deployer.
  • Loading branch information
tejal29 authored Jun 26, 2019
2 parents c40a02b + 6fd1d7a commit 970e278
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package runner
package deploy

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package runner
package deploy

import (
"testing"
Expand Down
4 changes: 2 additions & 2 deletions pkg/skaffold/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ type SkaffoldRunner struct {
cache *cache.Cache
runCtx *runcontext.RunContext
labellers []deploy.Labeller
defaultLabeller *DefaultLabeller
defaultLabeller *deploy.DefaultLabeller
builds []build.Artifact
hasBuilt bool
hasDeployed bool
Expand Down Expand Up @@ -104,7 +104,7 @@ func NewForConfig(opts *config.SkaffoldOptions, cfg *latest.SkaffoldConfig) (*Sk
return nil, errors.Wrap(err, "parsing deploy config")
}

defaultLabeller := NewLabeller("")
defaultLabeller := deploy.NewLabeller("")
labellers := []deploy.Labeller{opts, builder, deployer, tagger, defaultLabeller}

builder, tester, deployer = WithTimings(builder, tester, deployer, opts.CacheArtifacts)
Expand Down

0 comments on commit 970e278

Please sign in to comment.