-
Notifications
You must be signed in to change notification settings - Fork 3
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
delete outdated helm charts when pulling new helm charts #486
base: main
Are you sure you want to change the base?
Conversation
cmd/local-artifact-mirror/pull.go
Outdated
return fmt.Errorf("unable to read directory: %w", err) | ||
} | ||
for _, f := range files { | ||
if !contains(newFiles, f.Name()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use https://pkg.go.dev/slices#Contains instead ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
I don't want to merge this until the 'pull' code is actually exercised in CI |
…anup-outdated-helm-chart-files
This PR has been released (on staging) and is available for download with a embedded-cluster-smoke-test-staging-app license ID. Online Installer:
Airgap Installer (may take a few minutes before the airgap bundle is built):
Happy debugging! |
No description provided.