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

Import prometheus chart source code from stable repo with git history #3

Closed
scottrigby opened this issue Aug 16, 2020 · 1 comment
Closed

Comments

@scottrigby
Copy link
Member

scottrigby commented Aug 16, 2020

Quick how-to, to increase the bus factor:

  1. Bring down the stable charts code

    git clone git@github.com:helm/charts.git prometheus-helm-charts/
    cd prometheus-helm-charts/
    
  2. Filter only prometheus charts and rename stable dir to charts while retaining direct commit history all in one go, with git-filter-repo

    brew install git-filter-repo
    git filter-repo --path-glob 'stable/prometheus*' --path-rename stable/:charts/
    
  3. If you want to adopt main instead of master branch naming, do it now. See Change master branch to main #6

    git checkout -b main
    git branch -D master
    
  4. Set the remote and push. See Transfer ownership and rename scottrigby/prometheus-helm-charts to prometheus-community/helm-charts #11 for context

    git remote add origin git@github.com:scottrigby/prometheus-helm-charts.git
    git push -u origin main
    
@scottrigby
Copy link
Member Author

Done ✅

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

No branches or pull requests

1 participant