diff --git a/.changes/unreleased/Breaking-20250623-180015.yaml b/.changes/unreleased/Breaking-20250623-180015.yaml new file mode 100644 index 00000000000..85bb02441c0 --- /dev/null +++ b/.changes/unreleased/Breaking-20250623-180015.yaml @@ -0,0 +1,7 @@ +kind: Breaking +body: | + Changed incorrect `sweep` option name to `sweepSize` +time: 2025-06-23T18:00:15.18961196+01:00 +custom: + Author: jedevc + PR: "10560" diff --git a/docs/static/reference/engine.schema.json b/docs/static/reference/engine.schema.json index cb604b6690e..3583f004030 100644 --- a/docs/static/reference/engine.schema.json +++ b/docs/static/reference/engine.schema.json @@ -79,7 +79,7 @@ "$ref": "#/$defs/DiskSpace", "description": "MinFreeSpace is the target amount of free disk space the garbage collector will attempt to leave. However, it will never let the available space fall below ReservedSpace." }, - "sweep": { + "sweepSize": { "$ref": "#/$defs/DiskSpace", "description": "SweepSize is the minimum amount of space to sweep during a single gc pass. Either an absolute number of bytes, or a percentage of the \"allowed space\" between reserved and max." }, @@ -123,7 +123,7 @@ "$ref": "#/$defs/DiskSpace", "description": "MinFreeSpace is the target amount of free disk space the garbage collector will attempt to leave. However, it will never let the available space fall below ReservedSpace." }, - "sweep": { + "sweepSize": { "$ref": "#/$defs/DiskSpace", "description": "SweepSize is the minimum amount of space to sweep during a single gc pass. Either an absolute number of bytes, or a percentage of the \"allowed space\" between reserved and max." } diff --git a/engine/config/config.go b/engine/config/config.go index 930a03d2736..25b0b84abce 100644 --- a/engine/config/config.go +++ b/engine/config/config.go @@ -127,7 +127,7 @@ type GCSpace struct { // SweepSize is the minimum amount of space to sweep during a single gc pass. // Either an absolute number of bytes, or a percentage of the "allowed // space" between reserved and max. - SweepSize DiskSpace `json:"sweep,omitempty"` + SweepSize DiskSpace `json:"sweepSize,omitempty"` } func (space *GCSpace) IsUnset() bool {