Skip to content

Commit

Permalink
Flux CLI change to add provider field to GitRepository spec.
Browse files Browse the repository at this point in the history
- Add provider flag to `flux create source git` command with supported values: azure, generic.

- Unit tests validating the generated yaml and error conditions.

Signed-off-by: Dipti Pai <diptipai89@outlook.com>
  • Loading branch information
dipti-pai authored and darkowlzz committed Sep 26, 2024
1 parent 055d85f commit a4ef1f6
Show file tree
Hide file tree
Showing 5 changed files with 119 additions and 1 deletion.
14 changes: 13 additions & 1 deletion cmd/flux/create_source_git.go
25 changes: 25 additions & 0 deletions cmd/flux/create_source_git_test.go
12 changes: 12 additions & 0 deletions cmd/flux/testdata/create_source_git/source-git-provider-azure.yaml
57 changes: 57 additions & 0 deletions internal/flags/source_git_provider.go

0 comments on commit a4ef1f6

Please sign in to comment.