Skip to content

Commit

Permalink
disable konnect for now
Browse files Browse the repository at this point in the history
  • Loading branch information
flrgh committed May 15, 2024
1 parent f81d840 commit f88707c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions cmd/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,11 @@ func syncMain(ctx context.Context, filenames []string, dry bool, parallelism,
}
}

dumpConfig.IsFilterChainsSupported, err = determineFilterChainSupport(ctx, kongClient)
if err != nil {
return err
if mode != modeKonnect {
dumpConfig.IsFilterChainsSupported, err = determineFilterChainSupport(ctx, kongClient)
if err != nil {
return err
}
}

dumpConfig.SelectorTags, err = determineSelectorTag(*targetContent, dumpConfig)
Expand Down
8 changes: 5 additions & 3 deletions cmd/gateway_dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ func executeDump(cmd *cobra.Command, _ []string) error {
return err
}

dumpConfig.IsFilterChainsSupported, err = determineFilterChainSupport(ctx, wsClient)
if err != nil {
return err
if !inKonnectMode(nil) {
dumpConfig.IsFilterChainsSupported, err = determineFilterChainSupport(ctx, wsClient)
if err != nil {
return err
}
}

format := file.Format(strings.ToUpper(dumpCmdStateFormat))
Expand Down

0 comments on commit f88707c

Please sign in to comment.