Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added zstd to the list of compression algorithms for the compress_response action. #4300

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading