mirror of
https://github.com/fluxcd/flux2.git
synced 2025-11-02 18:58:33 +08:00
[RFC-007] Flux cmd support for GitHub provider: This commit includes the following changes -
- Add flux create secret githubapp command that accepts and validates the inputs to create a github app secret with options to export the secret yaml or create the secret directly in the Kubernetes cluster - Add tests for flux create secret githubapp command - Add flux create source git command that accepts and validates the inputs to create a gitrepository source with for github provider with options to export the source yaml or create the github gitrepository source directly in the Kubernetes cluster. - Add tests for flux create source git command for github provider. Signed-off-by: Dipti Pai <diptipai89@outlook.com>
This commit is contained in:
14
cmd/flux/testdata/create_source_git/source-git-provider-github.yaml
vendored
Normal file
14
cmd/flux/testdata/create_source_git/source-git-provider-github.yaml
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
---
|
||||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: GitRepository
|
||||
metadata:
|
||||
name: podinfo
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1m0s
|
||||
provider: github
|
||||
ref:
|
||||
branch: test
|
||||
secretRef:
|
||||
name: appinfo
|
||||
url: https://github.com/stefanprodan/podinfo
|
||||
Reference in New Issue
Block a user