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

Add --ignore-path to flux create source #2763

Closed
stefanprodan opened this issue May 24, 2022 · 1 comment · Fixed by #2767
Closed

Add --ignore-path to flux create source #2763

stefanprodan opened this issue May 24, 2022 · 1 comment · Fixed by #2767
Labels
good first issue Good for newcomers

Comments

@stefanprodan
Copy link
Member

stefanprodan commented May 24, 2022

We need to add a new arg (string array) to flux create source git and flux create source bucket that populates the ignore spec filed, each arg would add a new line to the ignore value e.g.:

flux create source git podinfo \
--url=https://github.com/stefanprodan/podinfo \
--branch=master \
--ignore-path=".git/" \
--ignore-path=".github/" \
--export

The above command will generate:

apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: GitRepository
metadata:
  name: podinfo
  namespace: flux-system
spec:
  interval: 5m
  url: https://github.com/stefanprodan/podinfo
  ref:
    branch: master
  ignore: |
    .git/
    .github/
@takirala
Copy link
Contributor

Addressed in #2767

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants