-
Notifications
You must be signed in to change notification settings - Fork 81
Check enablement from values part as well #727
base: master
Are you sure you want to change the base?
Conversation
@@ -103,6 +103,22 @@ var ( | |||
KialiComponentName: ThirdPartyFeatureName, | |||
TracingComponentName: ThirdPartyFeatureName, | |||
} | |||
// ComponentNameToHelmComponentPath defines mapping from component name to helm component root path. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be fairly easy to create this programmatically, maybe when you create a translator/reverse translator?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is that the checkenablement part does not depend on translator so I don’t want to get this mapping from the translator, not sure whether there is better way possibly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It probably should depend on it, or actually should go into Translator. Name is a very low level pkg and shouldn't know anything about things like helm so anyway this function probably doesn't belong there now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ostromart translation is the process to convert between operator spec and helm values spec, however to get enablement values or some other paths from one of them does not reply on the other, right? I think it is ok to put them in names now as it does not need a process of translation. I add a TODO to refactor this part later but hope to get this merged soon to fix related bugs first.
Let's hold off merging this till #713 goes in - I'm concerned I may break something in this change if I merge into that PR. |
4d0fd12
to
22db95f
Compare
@richardwxn please move this over to istio/istio since istio/operator has now been merged there. |
should help resolve istio/istio#19799