Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup dapper and code #626

Merged
merged 4 commits into from
Dec 19, 2024
Merged

Cleanup dapper and code #626

merged 4 commits into from
Dec 19, 2024

Conversation

alexandreLamarre
Copy link
Contributor

@alexandreLamarre alexandreLamarre commented Dec 11, 2024

Part of : #561

@alexandreLamarre alexandreLamarre force-pushed the cleanup branch 2 times, most recently from 74f21a3 to 010f271 Compare December 13, 2024 19:21
scripts/package Outdated Show resolved Hide resolved
@alexandreLamarre alexandreLamarre force-pushed the cleanup branch 2 times, most recently from bbb058d to 26859b8 Compare December 16, 2024 16:11
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Eventually this file should be generated automatically... For now, I used helm template on only the rancher resource set template to create this.

Ideally this file generation should fit inside the go generate step, and so should the chart generation IMO, which I can follow up with in a separate PR

@alexandreLamarre alexandreLamarre marked this pull request as ready for review December 16, 2024 16:16
@alexandreLamarre alexandreLamarre requested a review from a team as a code owner December 16, 2024 16:16
"sync"
)

type Initializer struct {
Copy link
Member

Choose a reason for hiding this comment

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

Not sure I'm following everything going on here - but I think I get the gist.
A new mechanism to control global state related to controller config/settings.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

TLDR; its a synchronization primitive wrapper that ensures its closure is only set once, and anyone that shows interest in what it encapsulates must wait for it to be set. It was used a lot in opni

.vscode/launch.json Outdated Show resolved Hide resolved
Copy link
Member

@mallardduck mallardduck left a comment

Choose a reason for hiding this comment

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

err actually sed still an issue for the helm command:

+ sed -i -e 's/^version:.*/version: 26859b8/' -e 's/^appVersion:.*/appVersion: 26859b8/' -e 's/catalog.cattle.io\/upstream-version:.*/catalog.cattle.io\/upstream-version: 26859b8/' build/charts/rancher-backup/Chart.yaml
sed: -e: No such file or directory
make: *** [package-helm] Error 1

Current PR change set fixes this, GG!

@mallardduck mallardduck self-requested a review December 18, 2024 20:11
mallardduck
mallardduck previously approved these changes Dec 18, 2024
Copy link
Member

@mallardduck mallardduck left a comment

Choose a reason for hiding this comment

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

Seems the macos sed issue is resolve now.
Additionally I verified that make (default) will work for me too.

It did have some initial issues, but those were all local caused. Cleaning up the repo to remove old files from dist and build seemed to fix that.

@mallardduck mallardduck requested a review from jbiers December 18, 2024 22:18
Copy link
Member

@jbiers jbiers left a comment

Choose a reason for hiding this comment

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

LGTM

@jbiers jbiers self-requested a review December 19, 2024 15:36
jbiers
jbiers previously approved these changes Dec 19, 2024
Signed-off-by: Alexandre Lamarre <[email protected]>
exclude vscode specific configurations

Signed-off-by: Alexandre Lamarre <[email protected]>
@mallardduck mallardduck dismissed stale reviews from jbiers and themself via b95952b December 19, 2024 15:47
@mallardduck mallardduck merged commit bf3b29a into main Dec 19, 2024
7 checks passed
@alexandreLamarre alexandreLamarre deleted the cleanup branch January 3, 2025 20:37
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.

3 participants