1 /* 2 Copyright 2020 The Kubernetes Authors. 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 package v1alpha2 18 19 import v1 "sigs.k8s.io/gateway-api/apis/v1" 20 21 // LocalObjectReference identifies an API object within the namespace of the 22 // referrer. 23 // The API object must be valid in the cluster; the Group and Kind must 24 // be registered in the cluster for this reference to be valid. 25 // 26 // References to objects with invalid Group and Kind are not valid, and must 27 // be rejected by the implementation, with appropriate Conditions set 28 // on the containing object. 29 // +k8s:deepcopy-gen=false 30 type LocalObjectReference = v1.LocalObjectReference 31 32 // SecretObjectReference identifies an API object including its namespace, 33 // defaulting to Secret. 34 // 35 // The API object must be valid in the cluster; the Group and Kind must 36 // be registered in the cluster for this reference to be valid. 37 // 38 // References to objects with invalid Group and Kind are not valid, and must 39 // be rejected by the implementation, with appropriate Conditions set 40 // on the containing object. 41 // +k8s:deepcopy-gen=false 42 type SecretObjectReference = v1.SecretObjectReference 43 44 // BackendObjectReference defines how an ObjectReference that is 45 // specific to BackendRef. It includes a few additional fields and features 46 // than a regular ObjectReference. 47 // 48 // Note that when a namespace different than the local namespace is specified, a 49 // ReferenceGrant object is required in the referent namespace to allow that 50 // namespace's owner to accept the reference. See the ReferenceGrant 51 // documentation for details. 52 // 53 // The API object must be valid in the cluster; the Group and Kind must 54 // be registered in the cluster for this reference to be valid. 55 // 56 // References to objects with invalid Group and Kind are not valid, and must 57 // be rejected by the implementation, with appropriate Conditions set 58 // on the containing object. 59 // +k8s:deepcopy-gen=false 60 type BackendObjectReference = v1.BackendObjectReference 61