Skip to content

Commit

Permalink
Merge pull request #967 from robscott/cherrypick-909-964
Browse files Browse the repository at this point in the history
Cherrypick #909 and #964 into release-0.4
  • Loading branch information
k8s-ci-robot authored Dec 14, 2021
2 parents ff9883d + 2d00e06 commit dcd8db5
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apis/v1alpha2/gatewayclass_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
// +kubebuilder:resource:categories=gateway-api,scope=Cluster,shortName=gc
// +kubebuilder:subresource:status
// +kubebuilder:storageversion
// +kubebuilder:printcolumn:name="Controller",type=string,JSONPath=`.spec.controller`
// +kubebuilder:printcolumn:name="Controller",type=string,JSONPath=`.spec.controllerName`
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
// +kubebuilder:printcolumn:name="Description",type=string,JSONPath=`.spec.description`,priority=1

Expand Down
2 changes: 1 addition & 1 deletion apis/v1alpha2/referencepolicy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ type ReferencePolicyFrom struct {
// Namespace is the namespace of the referent.
//
// Support: Core
Namespace Namespace `json:"namespace,omitempty"`
Namespace Namespace `json:"namespace"`
}

// ReferencePolicyTo describes what Kinds are allowed as targets of the
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions hack/invalid-examples/v1alpha2/referencepolicy/missing-ns.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: gateway.networking.k8s.io/v1alpha2
kind: ReferencePolicy
metadata:
name: missing-ns
spec:
to:
- group: ""
kind: "Service"
from:
- group: "gateway.networking.k8s.io"
kind: "HTTPRoute"

0 comments on commit dcd8db5

Please sign in to comment.