mirror of
https://github.com/fluxcd/flux2.git
synced 2026-04-16 00:35:43 +00:00
Flux CLI change to add provider field to GitRepository spec.
- 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>
This commit is contained in:
parent
055d85fc18
commit
a4ef1f6992
5 changed files with 119 additions and 1 deletions
12
cmd/flux/testdata/create_source_git/source-git-provider-azure.yaml
vendored
Normal file
12
cmd/flux/testdata/create_source_git/source-git-provider-azure.yaml
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: GitRepository
|
||||
metadata:
|
||||
name: podinfo
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1m0s
|
||||
provider: azure
|
||||
ref:
|
||||
branch: test
|
||||
url: https://dev.azure.com/foo/bar/_git/podinfo
|
||||
12
cmd/flux/testdata/create_source_git/source-git-provider-generic.yaml
vendored
Normal file
12
cmd/flux/testdata/create_source_git/source-git-provider-generic.yaml
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: GitRepository
|
||||
metadata:
|
||||
name: podinfo
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1m0s
|
||||
provider: generic
|
||||
ref:
|
||||
branch: test
|
||||
url: https://github.com/stefanprodan/podinfo
|
||||
Loading…
Add table
Add a link
Reference in a new issue