Skip to content

Commit

Permalink
Remove unused types from pkg/apis/crd/v1alpha1 (#6850)
Browse files Browse the repository at this point in the history
Some L7 types were not removed when NetworkPolicy CRDs were promoted to
v1beta1.

Signed-off-by: Antonin Bas <[email protected]>
  • Loading branch information
antoninbas authored Dec 10, 2024
1 parent d732a12 commit 893b801
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 83 deletions.
25 changes: 0 additions & 25 deletions pkg/apis/crd/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,31 +195,6 @@ type BundleServerAuthConfiguration struct {
AuthSecret *v1.SecretReference `json:"authSecret"`
}

type L7Protocol struct {
HTTP *HTTPProtocol `json:"http,omitempty"`
TLS *TLSProtocol `json:"tls,omitempty"`
}

// HTTPProtocol matches HTTP requests with specific host, method, and path. All fields could be used alone or together.
// If all fields are not provided, it matches all HTTP requests.
type HTTPProtocol struct {
// Host represents the hostname present in the URI or the HTTP Host header to match.
// It does not contain the port associated with the host.
Host string `json:"host,omitempty"`
// Method represents the HTTP method to match.
// It could be GET, POST, PUT, HEAD, DELETE, TRACE, OPTIONS, CONNECT and PATCH.
Method string `json:"method,omitempty"`
// Path represents the URI path to match (Ex. "/index.html", "/admin").
Path string `json:"path,omitempty"`
}

// TLSProtocol matches TLS handshake packets with specific SNI. If the field is not provided, this
// matches all TLS handshake packets.
type TLSProtocol struct {
// SNI (Server Name Indication) indicates the server domain name in the TLS/SSL hello message.
SNI string `json:"sni,omitempty"`
}

// +genclient
// +genclient:nonNamespaced
// +genclient:noStatus
Expand Down
58 changes: 0 additions & 58 deletions pkg/apis/crd/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 893b801

Please sign in to comment.