Skip to content

Commit b66ba1e

Browse files
committed
update based on reviews
1 parent 0e8335f commit b66ba1e

File tree

3 files changed

+31
-4
lines changed

3 files changed

+31
-4
lines changed

apis/v1alpha1/snippetsfilter_types.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ type Snippet struct {
4141
Value string `json:"value"`
4242
}
4343

44+
// SnippetsFilterList contains a list of Snippets.
45+
type SnippetsFilterList struct {
46+
metav1.TypeMeta `json:",inline"`
47+
metav1.ListMeta `json:"metadata,omitempty"`
48+
Items []Snippet `json:"items"`
49+
}
50+
4451
// SnippetsFilterStatus defines the state of SnippetsFilter.
4552
type SnippetsFilterStatus struct {
4653
// Conditions describes the state of the SnippetsFilter.
@@ -80,7 +87,7 @@ const (
8087

8188
// NginxContext represents the NGINX configuration context.
8289
//
83-
// +kubebuilder:validation:Enum=http;http;server;http.server;location;
90+
// +kubebuilder:validation:Enum=http;http.server;http.server.location;
8491
type NginxContext string
8592

8693
const (

apis/v1alpha1/zz_generated.deepcopy.go

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/gateway.nginx.org_snippetsfilters.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,8 @@ spec:
6363
into.
6464
enum:
6565
- http
66-
- http
67-
- server
6866
- http.server
69-
- location
67+
- http.server.location
7068
type: string
7169
value:
7270
description: Value is the NGINX configuration snippet.

0 commit comments

Comments
 (0)