Skip to content

Commit 748dbad

Browse files
committed
feat: added --skip-defaults flag in dump command
1 parent 44fc561 commit 748dbad

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

cmd/gateway_dump.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,8 @@ configure Kong.`,
254254
false, "allow deck to dump consumer-group policy overrides.\n"+
255255
"This allows policy overrides to work with Kong GW versions >= 3.4\n"+
256256
"Warning: do not mix with consumer-group scoped plugins")
257+
dumpCmd.Flags().BoolVar(&dumpConfig.SkipDefaults, "skip-defaults",
258+
false, "skip exporting default values.")
257259
dumpCmd.Flags().BoolVar(&dumpConfig.SanitizeContent, "sanitize",
258260
false, "dumps a sanitized version of the gateway configuration.\n"+
259261
"This feature hashes passwords, keys and other sensitive details.")

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ require (
1414
github.com/fatih/color v1.18.0
1515
github.com/google/go-cmp v0.7.0
1616
github.com/kong/go-apiops v0.2.0
17-
github.com/kong/go-database-reconciler v1.28.1
17+
github.com/kong/go-database-reconciler v1.28.2-0.20251024083411-2edbe032367e
1818
github.com/kong/go-kong v0.69.0
1919
github.com/mitchellh/go-homedir v1.1.0
2020
github.com/spf13/cobra v1.9.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ github.com/klauspost/cpuid/v2 v2.2.5 h1:0E5MSMDEoAulmXNFquVs//DdoomxaoTY1kUhbc/q
244244
github.com/klauspost/cpuid/v2 v2.2.5/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws=
245245
github.com/kong/go-apiops v0.2.0 h1:QzHmEvl12vr3lxayTuY40dFuQpPECHTvopsILpwuLdE=
246246
github.com/kong/go-apiops v0.2.0/go.mod h1:yPwbl3P2eQinVGAEA0d3legaYmzPJ+WtJf9fSeGF4b8=
247-
github.com/kong/go-database-reconciler v1.28.1 h1:C8K4lVPqPXWg8+YPRb4pFnvtU7++rMtMY6BgqGPr4h0=
248-
github.com/kong/go-database-reconciler v1.28.1/go.mod h1:DnqxRK/TH8HugJca1cw2n1NCApaNgpzEZhXUzITU0Ro=
247+
github.com/kong/go-database-reconciler v1.28.2-0.20251024083411-2edbe032367e h1:OgzKqbdJKGT0eSZ/8dyIF9yaL9sC4y/uA9F27ZGpVmM=
248+
github.com/kong/go-database-reconciler v1.28.2-0.20251024083411-2edbe032367e/go.mod h1:DnqxRK/TH8HugJca1cw2n1NCApaNgpzEZhXUzITU0Ro=
249249
github.com/kong/go-kong v0.69.0 h1:1LHU3y+i23X+RxxXT/bKml5bsxeUfKTfWFa3RK85cSU=
250250
github.com/kong/go-kong v0.69.0/go.mod h1:J0vGB3wsZ2i99zly1zTRe3v7rOKpkhQZRwbcTFP76qM=
251251
github.com/kong/go-slugify v1.0.0 h1:vCFAyf2sdoSlBtLcrmDWUFn0ohlpKiKvQfXZkO5vSKY=

0 commit comments

Comments
 (0)