|
18 | 18 | # has reached the `Established=True` condition (CRD storage is up and |
19 | 19 | # the apiserver will accept CRs of those kinds). |
20 | 20 | # |
21 | | -# Scope: this component bundles BOTH the chart's |
22 | | -# agentgateway.dev/v1alpha1 CRDs AND the vendored Gateway API + |
23 | | -# Inference Extension manifests under |
24 | | -# recipes/components/agentgateway-crds/manifests/. The asserts below |
25 | | -# cover the vendored set (deterministic from in-tree files). The |
26 | | -# chart's own CRDs are described in |
27 | | -# recipes/components/agentgateway-crds/values.yaml as |
28 | | -# {AgentgatewayBackend, AgentgatewayPolicy, AgentgatewayParameters} |
29 | | -# under agentgateway.dev/v1alpha1; their plural metadata.name values |
30 | | -# are not vendored in-tree at v2.2.1 and should be added here once |
31 | | -# verified against a real cluster install (live-run is the load-bearing |
32 | | -# step). See #1221. |
| 21 | +# Scope: this component bundles BOTH the chart's agentgateway.dev/v1alpha1 |
| 22 | +# CRDs and the vendored Gateway API + Inference Extension manifests under |
| 23 | +# recipes/components/agentgateway-crds/manifests/. |
33 | 24 | apiVersion: chainsaw.kyverno.io/v1alpha1 |
34 | 25 | kind: Test |
35 | 26 | metadata: |
|
88 | 79 | status: |
89 | 80 | (conditions[?type == 'Established']): |
90 | 81 | - status: "True" |
| 82 | + - name: validate-agentgateway-crds-established |
| 83 | + # agentgateway.dev/v1alpha1 CRDs installed by the agentgateway-crds |
| 84 | + # Helm chart. |
| 85 | + try: |
| 86 | + - assert: |
| 87 | + resource: |
| 88 | + apiVersion: apiextensions.k8s.io/v1 |
| 89 | + kind: CustomResourceDefinition |
| 90 | + metadata: |
| 91 | + name: agentgatewaybackends.agentgateway.dev |
| 92 | + status: |
| 93 | + (conditions[?type == 'Established']): |
| 94 | + - status: "True" |
| 95 | + - assert: |
| 96 | + resource: |
| 97 | + apiVersion: apiextensions.k8s.io/v1 |
| 98 | + kind: CustomResourceDefinition |
| 99 | + metadata: |
| 100 | + name: agentgatewayparameters.agentgateway.dev |
| 101 | + status: |
| 102 | + (conditions[?type == 'Established']): |
| 103 | + - status: "True" |
| 104 | + - assert: |
| 105 | + resource: |
| 106 | + apiVersion: apiextensions.k8s.io/v1 |
| 107 | + kind: CustomResourceDefinition |
| 108 | + metadata: |
| 109 | + name: agentgatewaypolicies.agentgateway.dev |
| 110 | + status: |
| 111 | + (conditions[?type == 'Established']): |
| 112 | + - status: "True" |
91 | 113 | - name: validate-inference-extension-crds-established |
92 | 114 | # Gateway API Inference Extension CRDs vendored under |
93 | 115 | # manifests/inference-extension-crds.yaml. |
|
0 commit comments