Skip to content

Commit 423c95e

Browse files
committed
Fix: Collect Relevant CRD objects based on versions for NGF
gateway.nginx.org/v1alpha1 is supported by these resource types: * ClientSettingsPolicy * NginxGateway * ObservabilityPolicy * SnippetsFilter * UpstreamSettingsPolicy gateway.nginx.org/v1alpha2 is supported by these resource types: * NginxProxy * ObservabilityPolicy
1 parent 15c3932 commit 423c95e

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

pkg/crds/crd.go

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,30 @@ func GetNGFCRDList() []Crd {
9898
Version: "v1alpha1",
9999
},
100100
{
101-
Resource: "nginxproxies",
101+
Resource: "observabilitypolicies",
102102
Group: "gateway.nginx.org",
103103
Version: "v1alpha1",
104104
},
105105
{
106-
Resource: "observabilitypolicies",
106+
Resource: "snippetsfilters",
107+
Group: "gateway.nginx.org",
108+
Version: "v1alpha1",
109+
},
110+
{
111+
Resource: "upstreamsettingspolicies",
107112
Group: "gateway.nginx.org",
108113
Version: "v1alpha1",
109114
},
115+
{
116+
Resource: "nginxproxies",
117+
Group: "gateway.nginx.org",
118+
Version: "v1alpha2",
119+
},
120+
{
121+
Resource: "observabilitypolicies",
122+
Group: "gateway.nginx.org",
123+
Version: "v1alpha2",
124+
},
110125
}
111126
return crdList
112127
}

0 commit comments

Comments
 (0)