Skip to content

Conversation

@aljesusg
Copy link
Contributor

Downstream we will add the following override in pkg/config/config_default_overrides.go:

ToolsetKialiName: "ossm"

This allows the toolset to return "ossm" from GetName() instead of "kiali".
think this approach works better than passing internalk8s.Openshift into GetName() the way GetTools() does, since it keeps things simpler, requires fewer modifications, and is overall lighter.

Also, each tool already checks whether the environment is OpenShift (following the same pattern as the core toolset). We expect users to run OpenShift with OSSM, not upstream Istio, so this behavior is consistent with that assumption.

Screenshot From 2025-11-26 11-14-04

cc @manusa WDYT?

@aljesusg
Copy link
Contributor Author

aljesusg commented Nov 26, 2025

Mmm I need to add some tests to verify that naming is not going to affect to the toml configuration

Ok the other hand I am thinking to use the config to tools naming too.

@aljesusg aljesusg changed the title feat(kiali): Possibility of renaming Kiali in the downstream distribution WIP feat(kiali): Possibility of renaming Kiali in the downstream distribution Nov 26, 2025
@manusa
Copy link
Member

manusa commented Dec 1, 2025

I'm not sure that config is the right place to put this, it also complicates things a little.
Additionally, it provides the "feature" for users to configure the Kiali toolset prefix which is something we might not want to support.

I'm not sure if you want/can to follow a similar pattern like for config but scoped in your toolset:

  • pkg/toolsets/kiali/toolset.go
  • pkg/toolsets/kiali/toolset_default.go
  • pkg/toolsets/kiali/toolset_overrides.go

Also, in relation to #521, all defaults could be moved here.

With regards to downstream.
Ideally, if we manage to create a sufficiently decoupled upstream project, the downstream merge scripts could be created to always accept the upstream changes except for the files that only exist downstream or the xxx_overrides.go (downstream preferred).

/cc @Cali0707 @nader-ziada

…tion

Signed-off-by: Alberto Gutierrez <aljesusg@gmail.com>
@aljesusg
Copy link
Contributor Author

aljesusg commented Dec 1, 2025

Done! Thanks !

@aljesusg aljesusg changed the title WIP feat(kiali): Possibility of renaming Kiali in the downstream distribution feat(kiali): Possibility of renaming Kiali in the downstream distribution Dec 1, 2025
@manusa manusa self-requested a review December 2, 2025 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants