-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate allowed annotations to Kubernetes recommended syntax #7781
Comments
Hey @saschagrunert, Can I work on this issue if it's not urgent? As a beginner with cri-o, I may need some days to fix this issue. |
@amitamrutiya2210, yes, but let's wait for consensus with other @cri-o/cri-o-maintainers first before starting to work on this topic. |
yeah for this one I'd be fine just adding ones that are within style guidelines, marking the others as deprecated. I don't think we need a config field like we did for the metrics. |
/help |
@kwilczynski: Please ensure the request meets the requirements listed here. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hello everyone, I'd like to take a shot at resolving this issue. |
Related: There is a review comment there that might be useful. |
To deprecate the current annotation, we need to declare new variables with updated annotations. I'm seeking suggestions on the variable naming convention for both deprecated and new annotations. Here's an approach I've considered for naming the variables: // UsernsMode is the user namespace mode to use
// Deprecated: in favor of UsernsModeAnnotationV2
UsernsModeAnnotation = "io.kubernetes.cri-o.userns-mode"
// New: UsernsMode is the user namespace mode to use
UsernsModeAnnotationV2 = "userns-mode.kubernetes.crio-o.io" This approach is what I've thought of to address this issue. I welcome any suggestions or insights you may have regarding this approach. Your input would be greatly appreciated. Note: Utilizing this approach would require adding a significant amount of code to ensure functionality is available for both the new and deprecated versions. |
/assign saschagrunert |
CRI-O is not following Kubernetes conventions for annotations. See https://kubernetes.io/docs/reference/labels-annotations-taints/ for what actual Kubernetes annotations look like. This means we could either migrate to the new style or solve the issue for future annotations by enforcing conventions (using docs?).
Refers to: #7779, kubernetes/website#45121 (comment)
Migrating the annotations will require a conversion as well as deprecation phase. We did the same some time ago for our metrics, which are still in deprecation:
cri-o/server/metrics/metrics.go
Lines 70 to 83 in 7d47844
The text was updated successfully, but these errors were encountered: