Skip to content

Commit

Permalink
add marker comment support for annotating cluster scopedness
Browse files Browse the repository at this point in the history
escape namespace keyword
  • Loading branch information
alexzielenski committed Apr 29, 2024
1 parent e438fe3 commit 440e1ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/integration/pkg/generated/openapi_generated.go

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

3 changes: 2 additions & 1 deletion test/integration/testdata/golden.v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1287,8 +1287,9 @@
"rule": "self == oldSelf"
},
{
"fieldPath": ".metadata.namespace",
"reason": "FieldValueRequired",
"rule": "self.metadata.namespace.size() \u003e 0"
"rule": "has(self.metadata.__namespace__) \u0026\u0026 self.metadata.__namespace__.size() \u003e 0"
}
]
},
Expand Down
3 changes: 2 additions & 1 deletion test/integration/testdata/golden.v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -1249,8 +1249,9 @@
"rule": "self == oldSelf"
},
{
"fieldPath": ".metadata.namespace",
"reason": "FieldValueRequired",
"rule": "self.metadata.namespace.size() \u003e 0"
"rule": "has(self.metadata.__namespace__) \u0026\u0026 self.metadata.__namespace__.size() \u003e 0"
}
]
},
Expand Down

0 comments on commit 440e1ca

Please sign in to comment.