Skip to content

Commit

Permalink
chore: Update kompat directories for importing (#4593)
Browse files Browse the repository at this point in the history
  • Loading branch information
engedaam authored Sep 8, 2023
1 parent 4a03adf commit 40a7ad1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions tools/kompat/main.go → tools/kompat/cmd/kompat/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ import (
"github.com/olekukonko/tablewriter"
"github.com/samber/lo"
"github.com/spf13/cobra"

"github.com/aws/karpenter/tools/kompat/pkg/kompat"
)

const (
Expand Down Expand Up @@ -60,14 +62,14 @@ var (
Args: cobra.ArbitraryArgs,
Run: func(cmd *cobra.Command, args []string) {
if rootOpts.Branch != "" {
DefaultGithubBranch = rootOpts.Branch
kompat.DefaultGithubBranch = rootOpts.Branch
}
kompatList, err := Parse(args...)
kompatList, err := kompat.Parse(args...)
if err != nil {
fmt.Printf("Unable to parse kompat file: %v\n", err)
os.Exit(1)
}
opts := Options{
opts := kompat.Options{
LastN: rootOpts.LastNVersions,
Version: rootOpts.K8sVersion,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package main
package kompat

import (
"bytes"
Expand Down

0 comments on commit 40a7ad1

Please sign in to comment.