Heba Elayoty
36f5750042
Move path-segment validation to pkg content
...
This is where all the scrubbed validation helpers are going.
Note: This does NOT check for or too-long inputs, and changing it now
would be a breaking change.
Co-authored-by: Tim Hockin <thockin@google.com >
Signed-off-by: Heba Elayoty <heelayot@microsoft.com >
2026-01-13 13:27:41 -08:00
yongruilin
016e821718
run codegen
2026-01-06 20:18:06 +00:00
yongruilin
47fb373c31
run update-codegen.sh
2025-11-06 00:54:52 +00:00
pranshul gupta
dbb3941cfe
Declarative validation coverage for RoleRef.Name and Subject.Name in RoleBinding#
2025-10-21 11:51:20 +05:30
pranshul gupta
6ae916a577
rbac: Remove PolicyRule.Verbs from declarative validation migration
2025-10-17 23:18:49 +05:30
pranshul gupta
2ea3d3815c
feat(validation-gen): Add declarative validation support for rolebinding(v1,v1alpha1,v1beta1)
2025-10-17 23:18:49 +05:30
pranshul gupta
4e660cc05b
feat(validation-gen): Add declarative validation support for ClusterRole(v1,v1alpha1,v1beta1)
2025-10-17 23:11:26 +05:30
pranshul gupta
3f8a5219e2
Enable validation-gen on rbac/v1,v1alpha1,v1beta1
...
This enables generation but doesn't activate the strategy calling of declarative
2025-10-11 07:25:55 +05:30
Tim Hockin
e54719bb66
Use randfill, do API renames
2025-03-08 15:18:00 -08:00
Patrick Ohly
8a908e0c0b
remove import doc comments
...
The "// import <path>" comment has been superseded by Go modules.
We don't have to remove them, but doing so has some advantages:
- They are used inconsistently, which is confusing.
- We can then also remove the (currently broken) hack/update-vanity-imports.sh.
- Last but not least, it would be a first step towards avoiding the k8s.io domain.
This commit was generated with
sed -i -e 's;^package \(.*\) // import.*;package \1;' $(git grep -l '^package.*// import' | grep -v 'vendor/')
Everything was included, except for
package labels // import k8s.io/kubernetes/pkg/util/labels
because that package is marked as "read-only".
2024-12-02 16:59:34 +01:00
Joe Betz
2595aa1309
generate
2024-09-03 14:26:26 -04:00
Tim Hockin
d55b67b349
Clean up brace whitespace in **/validation_test.go
...
This was making my eyes bleed as I read over code.
I used the following in vim. I made them up on the fly, but they seemed
to pass manual inspection.
:g/},\n\s*{$/s//}, {/
:w
:g/{$\n\s*{$/s//{{/
:w
:g/^\(\s*\)},\n\1},$/s//}},/
:w
:g/^\(\s*\)},$\n\1}$/s//}}/
:w
2023-05-02 00:48:42 -07:00
Kubernetes Prow Robot
3125009dd1
Merge pull request #115487 from tongpu/docs/roleRef_immutable
...
Add a comment to document that roleRef is immutable
2023-04-25 03:36:27 -07:00
Kubernetes Prow Robot
56e17d6d67
Merge pull request #115168 from HirazawaUi/delte-pkg-apis-other-unused-functions
...
remove unused not api functions in the pkg/apis directory
2023-04-24 14:23:01 -07:00
Lukas Grossar
d76f5dae67
Add a comment to roleRef to document that it is immutable
2023-04-24 22:35:20 +02:00
Tim Hockin
29c0b73d64
Replace uses of diff.ObjectDiff with cmp.Diff
...
ObjectDiff is already a shim over cmp.Diff, so no actual output or
behavior changes
2023-04-12 08:46:12 -07:00
HirazawaUi
c50c19d13a
remove unused not api functions in the pkg/apis directory
2023-01-18 23:37:57 +08:00
Manjusaka
0843c4dfca
Add extra value validation for matchExpression field in LabelSelector
2022-11-07 20:48:21 -05:00
Shubham Kuchhal
b1994772ee
RBAC: Modify the Description for the apiGroup.
2022-06-14 13:31:09 +05:30
Davanum Srinivas
9405e9b55e
Check in OWNERS modified by update-yamlfmt.sh
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2021-12-09 21:31:26 -05:00
Mike Danese
acb85012ba
rbac: remove AttributeRestriction documentation
...
This field never made it past the alpha API.
2021-09-07 16:45:49 -07:00
Stephen Augustus
481cf6fbe7
generated: Run hack/update-gofmt.sh
...
Signed-off-by: Stephen Augustus <foo@auggie.dev >
2021-08-24 15:47:49 -04:00
Jordan Liggitt
87a4e082ac
Change defaulter-gen input to package path
2021-08-14 11:00:18 -04:00
卢振兴10069964
17889cc3ad
code cleanup:fix broken link in validation
2021-05-08 09:01:57 +08:00
Mike Danese
724e760721
clarify RBAC API documentation
...
(Resource|Verb)All are meaningless in the context of openapi spec. I saw
ResourceAll used in an RBAC policy.
Change-Id: I8ab5f230bed23be902f77cadee3fbcdec6b24064
2021-03-31 17:21:56 -07:00
Benjamin Elder
56e092e382
hack/update-bazel.sh
2021-02-28 15:17:29 -08:00
Taesun Lee
b873cbbed5
Fix: pkg/apis Typos in comments, function name, error message
...
poicy -> policy
varialbes -> variables
exeuction -> execution
Resaurces -> Resources
TestSetDefaulEndpointsProtocol -> TestSetDefaultEndpointsProtocol
TestSetDefaulServiceTargetPort -> TestSetDefaultServiceTargetPort
TestSetDefaulServiceExternalTraffic -> TestSetDefaultServiceExternalTraffic
2020-02-24 00:11:00 +09:00
Kobayashi Daisuke
fee0d43d23
fix golint error in pkg/apis/rbac
2020-01-10 11:22:05 +09:00
wojtekt
7b6bcdf780
Autogenerated code
2019-10-24 20:21:00 +02:00
Chao Xu
369314959c
generated
2019-05-24 18:14:53 -07:00
yue9944882
71a58de48b
clean up genclient tags for hub types
2019-04-24 16:53:21 +08:00
Nikhita Raghunath
8a6449d16f
Update deepcopy files with fixed distinction between 1st and 2nd comment block
...
Ref: https://github.com/kubernetes/kubernetes/pull/71027
2019-04-05 01:03:12 +05:30
Kubernetes Prow Robot
808f2cf0ef
Merge pull request #72525 from justinsb/owners_should_not_be_executable
...
Remove executable file permission from OWNERS files
2019-02-14 23:55:45 -08:00
Roy Lenferink
b43c04452f
Updated OWNERS files to include link to docs
2019-02-04 22:33:12 +01:00
Justin SB
dd19b923b7
Remove executable file permission from OWNERS files
2019-01-11 16:42:59 -08:00
Jordan Liggitt
9ae79f9653
authorizers subproject approvers/reviewers
2018-11-06 00:57:38 -05:00
Eric Chiang
766f5875bf
Remove ericchiang from OWNERS files
...
Kept myself in the OpenID Connect ones for now.
2018-10-11 18:11:15 -07:00
Jingyi Hu
61117761cd
*: Remove comment tags in GoDoc
...
Adding blank line between comment tag and package name in doc.go. So
that the comment tags such as '+k8s:deepcopy-gen=package' do not show up
in GoDoc.
2018-09-13 20:27:32 -07:00
Clayton Coleman
ef561ba8b5
generated: Avoid use of reflect.Call in conversion code paths
2018-07-17 23:02:16 -04:00
tanshanshan
d300706683
fixdup
2018-07-14 14:13:28 +08:00
Dr. Stefan Schimanski
f8de7cea40
Update generated files
2018-06-29 20:36:17 +02:00
Jeff Grafton
23ceebac22
Run hack/update-bazel.sh
2018-06-22 16:22:57 -07:00
Jeff Grafton
a725660640
Update to gazelle 0.12.0 and run hack/update-bazel.sh
2018-06-22 16:22:18 -07:00
Dr. Stefan Schimanski
1208437f84
Update generated files
2018-06-13 12:35:13 +02:00
David Eads
ff743c7f4f
generated
2018-05-22 08:17:05 -04:00
David Eads
092714ea0f
switch rbac to external
2018-05-22 08:17:05 -04:00
David Eads
c5445d3c56
simplify api registration
2018-05-08 18:33:50 -04:00
David Eads
7b4f97aca3
generated
2018-05-08 18:32:44 -04:00
WanLinghao
aec3d55c32
add UT test to PolicyRuleBuilder in file
...
./pkg/apis/rbac/helpers_test.go
2018-05-02 11:38:25 +08:00
David Eads
8ae62517da
remove rootscopedkinds from groupmeta
2018-05-01 13:08:23 -04:00