Skip to content

Commit dcd8db5

Browse files
authored
Merge pull request #967 from robscott/cherrypick-909-964
Cherrypick #909 and #964 into release-0.4
2 parents ff9883d + 2d00e06 commit dcd8db5

File tree

5 files changed

+15
-3
lines changed

5 files changed

+15
-3
lines changed

apis/v1alpha2/gatewayclass_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
// +kubebuilder:resource:categories=gateway-api,scope=Cluster,shortName=gc
2727
// +kubebuilder:subresource:status
2828
// +kubebuilder:storageversion
29-
// +kubebuilder:printcolumn:name="Controller",type=string,JSONPath=`.spec.controller`
29+
// +kubebuilder:printcolumn:name="Controller",type=string,JSONPath=`.spec.controllerName`
3030
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
3131
// +kubebuilder:printcolumn:name="Description",type=string,JSONPath=`.spec.description`,priority=1
3232

apis/v1alpha2/referencepolicy_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ type ReferencePolicyFrom struct {
104104
// Namespace is the namespace of the referent.
105105
//
106106
// Support: Core
107-
Namespace Namespace `json:"namespace,omitempty"`
107+
Namespace Namespace `json:"namespace"`
108108
}
109109

110110
// ReferencePolicyTo describes what Kinds are allowed as targets of the

config/crd/v1alpha2/gateway.networking.k8s.io_gatewayclasses.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/v1alpha2/gateway.networking.k8s.io_referencepolicies.yaml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: gateway.networking.k8s.io/v1alpha2
2+
kind: ReferencePolicy
3+
metadata:
4+
name: missing-ns
5+
spec:
6+
to:
7+
- group: ""
8+
kind: "Service"
9+
from:
10+
- group: "gateway.networking.k8s.io"
11+
kind: "HTTPRoute"

0 commit comments

Comments
 (0)