Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Check enablement from values part as well #727

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

richardwxn
Copy link
Contributor

@richardwxn richardwxn commented Dec 30, 2019

should help resolve istio/istio#19799

@richardwxn richardwxn requested a review from a team as a code owner December 30, 2019 16:18
@istio-testing istio-testing added do-not-merge/work-in-progress Block merging of a PR because it isn't ready yet. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Dec 30, 2019
@googlebot googlebot added the cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. label Dec 30, 2019
@richardwxn richardwxn changed the title [WIP] Check enablement from values part as well Check enablement from values part as well Dec 31, 2019
@istio-testing istio-testing removed the do-not-merge/work-in-progress Block merging of a PR because it isn't ready yet. label Dec 31, 2019
@@ -103,6 +103,22 @@ var (
KialiComponentName: ThirdPartyFeatureName,
TracingComponentName: ThirdPartyFeatureName,
}
// ComponentNameToHelmComponentPath defines mapping from component name to helm component root path.
Copy link
Contributor

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?

Copy link
Contributor Author

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?

Copy link
Contributor

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.

Copy link
Contributor Author

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.

@ostromart
Copy link
Contributor

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.

@ostromart ostromart added the do-not-merge Block automatic merging of a PR. label Jan 8, 2020
@richardwxn richardwxn removed the do-not-merge Block automatic merging of a PR. label Jan 14, 2020
@richardwxn richardwxn added the do-not-merge/work-in-progress Block merging of a PR because it isn't ready yet. label Jan 14, 2020
@ostromart
Copy link
Contributor

@richardwxn please move this over to istio/istio since istio/operator has now been merged there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. do-not-merge/work-in-progress Block merging of a PR because it isn't ready yet. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gateway component not enabled by .values
4 participants