generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 490
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace ObjectReference, TypedLocalObjectReference
Define well focused reference types and use them instead of ObjectReference and TypedLocalObjectReference, which should be avoided for all the reasons described in the ObjectReference godoc[1]. 1. https://github.com/kubernetes/api/blob/6e59bf7a52c237aadf4cc1f905c66b5f178c30b9/core/v1/types.go#L4985-L4996 * api/v1alpha1/gateway_types.go (GatewaySpec): Replace TypedLocalObjectReference with RouteObjectReference. (Listener): Replace TypedLocalObjectReference with ListenerExtensionObjectReference. (ListenerTLS): Replace TypedLocalObjectReference with CertificateObjectReference. (LocalObjectReference): New type. Identify an API object within a known namespace. (CertificateObjectReference): New type alias for LocalObjectReference. Identify a certificate object. (ListenerExtensionObjectReference): New type alias for LocalObjectReference. Identify a listener extension object. (RouteObjectReference): New type alias for LocalObjectReference. Identify a route object. * api/v1alpha1/gatewayclass_types.go (GatewayClassSpec): Replace ObjectReference with GatewayClassParametersObjectReference. (GatewayClassParametersObjectReference): New type alias for LocalObjectReference. Identify a parameters object for a GatewayClass object. * api/v1alpha1/httproute_types.go (HTTPRouteHost): Replace TypedLocalObjectReference with RouteHostExtensionObjectReference. (HTTPRouteMatch): Replace TypedLocalObjectReference with RouteMatchExtensionObjectReference. (RouteMatchExtensionObjectReference): New type alias for LocalObjectReference. Identify a route-match extension object. (HTTPRouteFilter): Replace TypedLocalObjectReference with RouteFilterExtensionObjectReference. (RouteFilterExtensionObjectReference): New type alias for LocalObjectReference. Identify a route-filter extension object. (HTTPHeaderFilter): Replace TypedLocalObjectReference with RouteActionTargetObjectReference and RouteActionExtensionObjectReference. (RouteActionTargetObjectReference): New type alias for LocalObjectReference. Identify a target object for a route action. (RouteActionExtensionObjectReference): New type alias for LocalObjectReference. Identify a route-action extension object. (RouteHostExtensionObjectReference): New type alias for LocalObjectReference. Identify a route-host extension object. (HTTPRouteStatus): Replace ObjectReference with GatewayObjectReference. (GatewayObjectReference): New type. Identify a Gateway object. * api/v1alpha1/zz_generated.deepcopy.go: * config/crd/bases/networking.x.k8s.io_gatewayclasses.yaml: * config/crd/bases/networking.x.k8s.io_gateways.yaml: * config/crd/bases/networking.x.k8s.io_httproutes.yaml: Regenerate.
- Loading branch information
Showing
7 changed files
with
507 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.