Skip to content

Commit

Permalink
Add missing apiVersion in the referencegrant API docs (kubernetes-sig…
Browse files Browse the repository at this point in the history
…s#3135)

"apiVersion" is existing in other yaml examples under api-types/.
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
  • Loading branch information
spacewander authored and BobyMCbobs committed Jul 10, 2024
1 parent fea4c69 commit 8f208d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions site-src/api-types/referencegrant.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ namespace explicitly allows references to Services from HTTPRoutes in the `foo`
namespace.

```yaml
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: foo
Expand All @@ -57,6 +58,7 @@ spec:
- name: bar
namespace: bar
---
apiVersion: gateway.networking.k8s.io/v1beta1
kind: ReferenceGrant
metadata:
name: bar
Expand Down

0 comments on commit 8f208d5

Please sign in to comment.