add sparse checkout to cli

Signed-off-by: Brock Alberry <brock.alberry@cse-cst.gc.ca>
This commit is contained in:
Brock Alberry
2025-06-04 10:11:24 -04:00
committed by Brock Alberry
parent 99e6791f4b
commit 06e3047a2f
3 changed files with 26 additions and 20 deletions

View File

@ -87,7 +87,7 @@ func (r *reconciler) conditionFunc() (bool, error) {
}
func TestCreateSourceGitExport(t *testing.T) {
var command = "create source git podinfo --url=https://github.com/stefanprodan/podinfo --branch=master --ignore-paths .cosign,non-existent-dir/ -n default --interval 1m --export --timeout=" + testTimeout.String()
var command = "create source git podinfo --url=https://github.com/stefanprodan/podinfo --branch=master --sparse-checkout-paths .cosign,non-existent-dir/ --ignore-paths .cosign,non-existent-dir/ -n default --interval 1m --export --timeout=" + testTimeout.String()
cases := []struct {
name string