Skip to content

WIP: test ci clustermesh: cli: output cluster values to dict#40960

Closed
MrFreezeex wants to merge 4 commits intocilium:mainfrom
MrFreezeex:pr/mrfreezeex/cli-output-dict-cond-relax
Closed

WIP: test ci clustermesh: cli: output cluster values to dict#40960
MrFreezeex wants to merge 4 commits intocilium:mainfrom
MrFreezeex:pr/mrfreezeex/cli-output-dict-cond-relax

Conversation

@MrFreezeex
Copy link
Copy Markdown
Member

No description provided.

@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Aug 5, 2025
@github-actions github-actions bot added cilium-cli This PR contains changes related with cilium-cli cilium-cli-exclusive This PR only impacts cilium-cli binary labels Aug 5, 2025
@MrFreezeex MrFreezeex added dont-merge/preview-only Only for preview or testing, don't merge it. and removed cilium-cli This PR contains changes related with cilium-cli cilium-cli-exclusive This PR only impacts cilium-cli binary labels Aug 5, 2025
@MrFreezeex
Copy link
Copy Markdown
Member Author

/test

@MrFreezeex MrFreezeex force-pushed the pr/mrfreezeex/cli-output-dict-cond-relax branch from 3e72b6c to 439433f Compare August 5, 2025 23:12
@MrFreezeex
Copy link
Copy Markdown
Member Author

/test

@MrFreezeex MrFreezeex force-pushed the pr/mrfreezeex/cli-output-dict-cond-relax branch from 439433f to 25af2ba Compare August 5, 2025 23:36
@MrFreezeex
Copy link
Copy Markdown
Member Author

/test

@MrFreezeex MrFreezeex force-pushed the pr/mrfreezeex/cli-output-dict-cond-relax branch 3 times, most recently from dd8af94 to 04448c9 Compare August 6, 2025 10:17
@MrFreezeex
Copy link
Copy Markdown
Member Author

/test

MrFreezeex and others added 4 commits August 6, 2025 13:43
This commit adds support for setting ReuseValues to false in the
helmUpgrade function. This is helpful to prepare for outputting
`clustermesh.config.clusters` to a dict in the CLI and prevent
uncontrolled deep merged if we were using ReuseValues.

Since we now only need the clusters map and not the "full" values this
commit rename a lot of code to replace most usage of "values" by
"clusters".

Signed-off-by: Arthur Outhenin-Chalandre <git@mrfreezeex.fr>
Output `clustermesh.config.clusters` to a dict if the cluster is running
at least Cilium 1.20. We are choosing 1.20 since the dict format is
supported from Cilium 1.19 and we do that in one additional minor
version to allow users to downgrade and reusing the same values.

Signed-off-by: Arthur Outhenin-Chalandre <git@mrfreezeex.fr>
Signed-off-by: Arthur Outhenin-Chalandre <git@mrfreezeex.fr>
This commit add initial support in Helm to pass a dict of clusters
instead of a list of clusters.

This fits more to our actual usage as each name are unique and a dict
can enforce that by design. It will also allows users to split their
clusters in multiple helm values files as a dict allow for deep-merging
helm values while you cannot do that with a list.

This also adds a enabled subkey in the clusters list which might allow
for further flexibility to optionally declare but disable one cluster
when merging Helm values together.

This is only the initial support and don't include the CLI support.

Signed-off-by: Arthur Outhenin-Chalandre <arthur@cri.epita.fr>
@MrFreezeex MrFreezeex force-pushed the pr/mrfreezeex/cli-output-dict-cond-relax branch from 04448c9 to 62fc0f4 Compare August 6, 2025 11:43
@MrFreezeex
Copy link
Copy Markdown
Member Author

/test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. dont-merge/preview-only Only for preview or testing, don't merge it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant