Skip to content

Commit

Permalink
Run go fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Rüegg <simon@rueggs.ch>
  • Loading branch information
srueg committed Mar 31, 2020
1 parent f146359 commit 5b46477
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cmd/orphans_test.go
Expand Up @@ -140,7 +140,7 @@ func Test_validateOrphanCommandInput(t *testing.T) {
input: args{
args: []string{"namespace/image"},
config: cfg.Configuration{
Orphan:cfg.OrphanConfig{
Orphan: cfg.OrphanConfig{
OrphanDeletionRegex: "*/g",
},
},
Expand Down
8 changes: 4 additions & 4 deletions cmd/root.go
@@ -1,14 +1,15 @@
package cmd

import (
"io/ioutil"
"os"
"strings"

"github.com/appuio/seiso/cfg"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"
"io/ioutil"
"os"
"strings"
)

var (
Expand All @@ -31,7 +32,6 @@ func init() {
rootCmd.PersistentFlags().BoolP("log.verbose", "v", config.Log.Verbose, "Shorthand for --log.level debug")
rootCmd.PersistentFlags().BoolP("log.batch", "b", config.Log.Batch, "Use Batch mode (disables logging, prints deleted images only)")
cobra.OnInitialize(initRootConfig)

}

func initRootConfig() {
Expand Down
1 change: 1 addition & 0 deletions main.go
Expand Up @@ -2,6 +2,7 @@ package main

import (
"fmt"

"github.com/appuio/seiso/cmd"
log "github.com/sirupsen/logrus"
)
Expand Down
2 changes: 0 additions & 2 deletions pkg/cleanup/imagetags.go
Expand Up @@ -134,8 +134,6 @@ func FilterActiveImageTags(namespace string, imageName string, imageStreamTags [
return nil, fmt.Errorf("could not retrieve active image tags from %v/%v': %w", namespace, imageName, err)
}



log.WithField("activeTags", activeImageStreamTags).Debug("Found currently active image tags")
return GetInactiveImageTags(&activeImageStreamTags, matchingTags), nil
}

0 comments on commit 5b46477

Please sign in to comment.