kubernetes: Admission does not populate object name on create
The admission attributes given to admission plugins do not populate object name on create.
This means that admission plugins must do attr.GetObject().(*api.MyType).Name themselves.
Since the object is available, the name in the admission attributes should be populated if available.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 28 (20 by maintainers)
the name attribute is only set in admission when it is actually set in the object. generateName is used to populate name after the mutating admission phase, before the validating admission phase