-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-printable
- Loading branch information
Showing
9 changed files
with
703 additions
and
393 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright Envoy Gateway Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// The full text of the Apache license is available in the LICENSE file at | ||
// the root of the repo. | ||
|
||
package v1alpha1 | ||
|
||
// CompressorType defines the types of compressor library supported by Envoy Gateway. | ||
// | ||
// +kubebuilder:validation:Enum=Gzip | ||
type CompressorType string | ||
|
||
// GzipCompressor defines the config for the Gzip compressor. | ||
// The default values can be found here: | ||
// https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/compression/gzip/compressor/v3/gzip.proto#extension-envoy-compression-gzip-compressor | ||
type GzipCompressor struct { | ||
} | ||
|
||
// Compression defines the config of enabling compression. | ||
// This can help reduce the bandwidth at the expense of higher CPU. | ||
type Compression struct { | ||
// CompressorType defines the compressor type to use for compression. | ||
// | ||
// +required | ||
Type CompressorType `json:"type"` | ||
|
||
// The configuration for GZIP compressor. | ||
// | ||
// +optional | ||
Gzip *GzipCompressor `json:"gzip,omitempty"` | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.