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 28, 2024
1 parent eb10f6c commit 47aac11
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 47aac11

Please sign in to comment.