-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add annotations to custom attributes on summary pages for routes and templates #262
Add annotations to custom attributes on summary pages for routes and templates #262
Conversation
Should this be pushed down to the kubernetes layer? Or is this a specific feature of OpenShift? |
Additionally, I'm not sure smashing together annotations and attributes makes sense, but I like the idea of at least putting them under a separate key. Annotations are pure metadata whereas labels have a functional usage in kubernetes (that is, they are the other half of selectors). So, my original thought was separate modeling, even though technically they are just more key/value pairs at the raw data level. @agrare Would like your thoughts here. |
Routes and ContainerTemplates don't exist in kubernetes so that's why these parsers are here in the Openshift Parser Subclass |
Labels / Selectors / AdditionalAttributes are all CustomAttributes with a different "section", see https://github.com/ManageIQ/manageiq-providers-kubernetes/pull/530/files#r1657929376 So I don't think this is "smashing" together annotations and attributes since they are kept separate unless I'm missing something. |
Ohh I see - I thought labels were just top level, but if they are all sectioned out, then this is great. |
Yeah I did a double-take when I saw It might be better if custom_attributes took a section argument instead of one big hash that is splits up internally but that could be a nice follow-up after these changes. |
46ee5cd
to
2416231
Compare
2416231
to
ad5ff80
Compare
Checked commit liu-samuel@ad5ff80 with ruby 3.1.5, rubocop 1.56.3, haml-lint 0.51.0, and yamllint |
Relevant PRs:
Providers-Kubernetes: ManageIQ/manageiq-providers-kubernetes#530
UI-Classic: ManageIQ/manageiq-ui-classic#9214
Core ManageIQ: ManageIQ/manageiq#23074
Cross-Repo Tests:
ManageIQ/manageiq-cross_repo-tests#879
All passing except for known failing test cases in core ManageIQ