Skip to content

Commit 1deb7bc

Browse files
authored
Merge pull request #964 from robscott/reference-policy-fix
Fixing bug where namespace could be unspecified in ReferencePolicy
2 parents 9a916f7 + 07a5f2a commit 1deb7bc

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

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/experimental/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.

config/crd/stable/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)