Skip to content

Commit

Permalink
Merge pull request #4300 from orium/dsousa/FLPROD-1418-compression-zstd
Browse files Browse the repository at this point in the history
Added `zstd` to the list of compression algorithms for the `compress_response` action.
  • Loading branch information
jacobbednarz authored Oct 17, 2024
2 parents d0f5c00 + 5e59fbe commit f8e6ee0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .changelog/4300.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/cloudflare_ruleset: add support for `zstd` compression in the `compress_response` action
```
2 changes: 1 addition & 1 deletion docs/resources/ruleset.md
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ Optional:

Required:

- `name` (String) Name of the compression algorithm to use. Available values: `gzip`, `brotli`, `auto`, `default`, `none`
- `name` (String) Name of the compression algorithm to use. Available values: `zstd`, `gzip`, `brotli`, `auto`, `default`, `none`


<a id="nestedblock--rules--action_parameters--autominify"></a>
Expand Down
4 changes: 2 additions & 2 deletions internal/framework/service/rulesets/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,9 @@ func (r *RulesetResource) Schema(ctx context.Context, req resource.SchemaRequest
Attributes: map[string]schema.Attribute{
"name": schema.StringAttribute{
Required: true,
MarkdownDescription: fmt.Sprintf("Name of the compression algorithm to use. %s", utils.RenderAvailableDocumentationValuesStringSlice([]string{"gzip", "brotli", "auto", "default", "none"})),
MarkdownDescription: fmt.Sprintf("Name of the compression algorithm to use. %s", utils.RenderAvailableDocumentationValuesStringSlice([]string{"zstd", "gzip", "brotli", "auto", "default", "none"})),
Validators: []validator.String{
stringvalidator.OneOf("gzip", "brotli", "auto", "default", "none"),
stringvalidator.OneOf("zstd", "gzip", "brotli", "auto", "default", "none"),
},
},
},
Expand Down

0 comments on commit f8e6ee0

Please sign in to comment.