mirror of
https://github.com/fluxcd/flux2.git
synced 2025-10-29 23:37:47 +08:00
Add support for create source git with --commit and --ref-name flags
Signed-off-by: Santosh Kaluskar <dtshbl@gmail.com>
This commit is contained in:
12
cmd/flux/testdata/create_source_git/source-git-branch-commit.yaml
vendored
Normal file
12
cmd/flux/testdata/create_source_git/source-git-branch-commit.yaml
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
---
|
||||
apiVersion: source.toolkit.fluxcd.io/v1beta2
|
||||
kind: GitRepository
|
||||
metadata:
|
||||
name: podinfo
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1m0s
|
||||
ref:
|
||||
branch: main
|
||||
commit: c88a2f41
|
||||
url: https://github.com/stefanprodan/podinfo
|
||||
11
cmd/flux/testdata/create_source_git/source-git-branch.yaml
vendored
Normal file
11
cmd/flux/testdata/create_source_git/source-git-branch.yaml
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
apiVersion: source.toolkit.fluxcd.io/v1beta2
|
||||
kind: GitRepository
|
||||
metadata:
|
||||
name: podinfo
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1m0s
|
||||
ref:
|
||||
branch: test
|
||||
url: https://github.com/stefanprodan/podinfo
|
||||
11
cmd/flux/testdata/create_source_git/source-git-commit.yaml
vendored
Normal file
11
cmd/flux/testdata/create_source_git/source-git-commit.yaml
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
apiVersion: source.toolkit.fluxcd.io/v1beta2
|
||||
kind: GitRepository
|
||||
metadata:
|
||||
name: podinfo
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1m0s
|
||||
ref:
|
||||
commit: c88a2f41
|
||||
url: https://github.com/stefanprodan/podinfo
|
||||
11
cmd/flux/testdata/create_source_git/source-git-refname.yaml
vendored
Normal file
11
cmd/flux/testdata/create_source_git/source-git-refname.yaml
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
apiVersion: source.toolkit.fluxcd.io/v1beta2
|
||||
kind: GitRepository
|
||||
metadata:
|
||||
name: podinfo
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1m0s
|
||||
ref:
|
||||
name: refs/heads/main
|
||||
url: https://github.com/stefanprodan/podinfo
|
||||
11
cmd/flux/testdata/create_source_git/source-git-semver.yaml
vendored
Normal file
11
cmd/flux/testdata/create_source_git/source-git-semver.yaml
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
apiVersion: source.toolkit.fluxcd.io/v1beta2
|
||||
kind: GitRepository
|
||||
metadata:
|
||||
name: podinfo
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1m0s
|
||||
ref:
|
||||
semver: v1.01
|
||||
url: https://github.com/stefanprodan/podinfo
|
||||
11
cmd/flux/testdata/create_source_git/source-git-tag.yaml
vendored
Normal file
11
cmd/flux/testdata/create_source_git/source-git-tag.yaml
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
apiVersion: source.toolkit.fluxcd.io/v1beta2
|
||||
kind: GitRepository
|
||||
metadata:
|
||||
name: podinfo
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1m0s
|
||||
ref:
|
||||
tag: test
|
||||
url: https://github.com/stefanprodan/podinfo
|
||||
Reference in New Issue
Block a user