Skip to content

ADR for require no maintenance to keep bootstrapping cli up to date - #142

Draft
waleedhammam wants to merge 2 commits into
mainfrom
3706-cli-bootstrapping-maintainence
Draft

ADR for require no maintenance to keep bootstrapping cli up to date#142
waleedhammam wants to merge 2 commits into
mainfrom
3706-cli-bootstrapping-maintainence

Conversation

@waleedhammam

Copy link
Copy Markdown

ADR with suggested option for weaveworks/weave-gitops-enterprise#3706

@waleedhammam
waleedhammam requested a review from enekofb December 14, 2023 07:15
@waleedhammam
waleedhammam marked this pull request as draft December 14, 2023 07:16
@waleedhammam
waleedhammam requested a review from Samra10 December 14, 2023 07:16

@enekofb enekofb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it would be good to have some other alternatives considered like the one suggested in review


## Context

Currently, CLI bootstrapping creates and manages WGE values [here](https://github.com/weaveworks/weave-gitops-enterprise/blob/d27d52cf1053d194a40e7652a570d810db552613/pkg/bootstrap/steps/install_wge.go#L49-L124). This means any update / breaking change happens to WGE values

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as suggested during standup, i think it is worth considering other options. for example here there is a couple

a) refactoring the install wge step to the shape of terraform where we dont manage values. Something like consuming a helmrelease manifest as stated here. To generate and publish that manifest could be done as part of the release process (we have to do it as part of weaveworks/weave-gitops-enterprise#2213 )

b) how flux does it where flux v2.1.0 can only bootstrap flux for v2.1.0 so in this case refactoring install wge to just install the version that the cli belongs to. for example gitops-ee v0.38 only install v0.38, etc ...
see artifacts in https://github.com/fluxcd/flux2/releases/tag/v2.2.0 and https://github.com/fluxcd/flux2/blob/00c6ac81b9938e80a79c5b625b06cfb4f220c3db/pkg/manifestgen/install/manifests.go#L37

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for tf form like, we can use OCI repository to have WGE chart, this could be added to the release process
like this one
release workflow

@enekofb enekofb Dec 18, 2023

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you mean like publishing a oci repo with the different controller manifests, right? It sounds interesting over pull the indenpedent manifests. i also think that could also provide a more flexible / maintainable approach to install over existing helm dependency one

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