Skip to content

ksail workload create source git

Create or update a GitRepository source using Flux APIs
Usage:
ksail workload create source git [name] [flags]
Examples:
# Create a source from a public Git repository master branch
ksail workload create source git podinfo \
--url=https://github.com/stefanprodan/podinfo \
--branch=master
# Create a source for a Git repository pinned to specific git tag
ksail workload create source git podinfo \
--url=https://github.com/stefanprodan/podinfo \
--tag="3.2.3"
# Create a source from a Git repository using SSH authentication
ksail workload create source git podinfo \
--url=ssh://git@github.com/stefanprodan/podinfo \
--branch=master \
--secret-ref=git-credentials
# Create a source that only accepts SSH- or OpenPGP-signed commits from trusted keys
ksail workload create source git podinfo \
--url=https://github.com/stefanprodan/podinfo \
--branch=master \
--verify-secret-ref=git-signing-keys
Flags:
--branch string git branch
--commit string git commit
--export[=true|false] export in YAML format to stdout
--interval duration source sync interval (default 1m0s)
-n, --namespace string the namespace scope for this operation (default "flux-system")
--secret-ref string the name of an existing secret containing SSH or basic credentials
--tag string git tag
--tag-semver string git tag semver range
--url string git address, e.g. ssh://git@host/org/repository
--verify-mode string Git object to verify: HEAD, Tag or TagAndHEAD (default HEAD; requires --verify-secret-ref)
--verify-secret-ref string verify the signature of the checked-out commit (or tag) against the public keys in this existing secret (SSH keys under *.sshpub keys, OpenPGP keys under *.asc)
Global Flags:
--benchmark[=true|false] Show per-activity benchmark output
--config string Path to config file (default: ksail.yaml found via directory traversal)
--experimental[=true|false] Enable experimental (unstable) commands and features