Cleanup `ComponentSettings` struct and `LocalConfigProvider` interface
/kind task /area refactoring
This is a follow-up to a discussion in #5852
Would it be possible to clean up the code by removing both
NameandAppNamefields from theComponentSettingsstruct? I guess this will require cleaning up further things, like removing theGetApplicationandGetNamemethods from theLocalConfigProviderinterface as well..Maybe I've missed something, but I think that this way, we would be sure no one can use that information (I've tested this PR against an existing project that already has component and app names in its
env.yamlfiles, but then from the code perspective, there is currently nothing in this PR preventing from loading and using such information).
Originally posted by @rm3l in https://github.com/redhat-developer/odo/pull/5852#pullrequestreview-1052758059