Component library
The component provides a component library (lib/gateway-api.libsonnet) with helper functions for other components which deploy Gateway API resources.
The library is available to other components when this component is included in the cluster’s applications.
Helper functions
GatewayClass(name)
|
Creates a |
Gateway(name)
|
Creates a |
HTTPRoute(name)
|
Creates an |
ReferenceGrant(name)
|
Creates a |
Each helper takes the resource name as its only argument and returns a partial resource containing apiVersion, kind and metadata.
Merge metadata and spec into the result as needed.
The returned resources carry the argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true annotation, so that ArgoCD doesn’t fail a consumer’s sync when the Gateway API CRDs aren’t installed yet.