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 support for sparse checkout to GitRepository API #1707

Open
stefanprodan opened this issue Jan 24, 2025 · 0 comments
Open

Add support for sparse checkout to GitRepository API #1707

stefanprodan opened this issue Jan 24, 2025 · 0 comments
Labels
area/git Git related issues and pull requests enhancement New feature or request

Comments

@stefanprodan
Copy link
Member

With the implementation of sparse checkout in fluxcd/pkg/git we can add this as an opt-in feature to the GitRepository API.

To enable sparse checkout, users will have to specify a list of directories under .spec.sparseCheckout e.g.

apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
  name: podinfo
  namespace: default
spec:
  interval: 5m
  url: https://github.com/stefanprodan/podinfo
  ref:
    branch: master
  sparseCheckout:
    - ./charts
    - ./kustomize
@stefanprodan stefanprodan added area/git Git related issues and pull requests enhancement New feature or request labels Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/git Git related issues and pull requests enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant