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

Feature request: consider sub commands like export, import, and copy #34

Open
brightzheng100 opened this issue May 30, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@brightzheng100
Copy link

I was looking for a tool that could help me easily analyze, export all artifacts from a helm, together with all images used, and then import to a desired (private) registry. This is a very common use case when we work with airgapped env.

Unfortunately, I couldn't find one that could best fit into such simple use case.
So I built an incomplete tool for fun: https://github.com/brightzheng100/helm-packager, which is a toy tool and is far away from complete.

I think your tool is a good starting point and I'd suggest to have sub commands, instead of a giant command with configuration file.

For example:

# 1. To export the Helm Charts and their sub Charts to be a local gz file
helmper export [-c <config file>] [-f <exported gz file>] [--dry-run]

# 2. To import the exported gz file to a registry
helmper import [-c <config file>] [-f <exported gz file>] [--dry-run]

# 3. Copy the Helm Charts and their sub Charts to the desired registry -- this is what current helmper does
# But with the --dry-run flag, we can analyze the Helm Charts and their sub Charts without coping the actual artifacts 
helmper copy [-c <config file>] [--dry-run]
@ChristofferNissen
Copy link
Owner

If you specify

import:
  enabled: false

Helmper will do a dry-run.

The import and export was on my hidden list, so thanks for adding an issue tracking it 👍

@ChristofferNissen ChristofferNissen added the enhancement New feature or request label Jun 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants