NamespaceSync
yaml
type: "io.kestra.plugin.git.namespacesync"
Examples
yaml
id: git_namespace_sync
namespace: system
tasks:
- id: sync
type: io.kestra.plugin.git.NamespaceSync
namespace: system
sourceOfTruth: GIT
whenMissingInSource: DELETE
protectedNamespaces:
- system
url: https://github.com/fdelbrayelle/plugin-git-qa
username: fdelbrayelle
password: "{{ secret('GITHUB_ACCESS_TOKEN') }}"
branch: main
gitDirectory: kestra
yaml
id: kestra_namespace_sync
namespace: system
tasks:
- id: sync
type: io.kestra.plugin.git.NamespaceSync
namespace: system
sourceOfTruth: KESTRA
whenMissingInSource: KEEP
protectedNamespaces:
- system
url: https://github.com/fdelbrayelle/plugin-git-qa
username: fdelbrayelle
password: "{{ secret('GITHUB_ACCESS_TOKEN') }}"
branch: dev
# gitDirectory omitted -> repository root
onInvalidSyntax: WARN
# dryRun omitted
Properties
branch *Requiredstring
namespace *Requiredstring
cloneSubmodules booleanstring
dryRun booleanstring
Default
false
gitConfig object
gitDirectory string
onInvalidSyntax string
Default
FAIL
Possible Values
SKIP
WARN
FAIL
passphrase string
password string
privateKey string
protectedNamespaces array
SubType string
Default
["system"]
sourceOfTruth string
Default
KESTRA
Possible Values
GIT
KESTRA
url string
username string
whenMissingInSource string
Default
DELETE
Possible Values
DELETE
KEEP
FAIL
Outputs
commitId string
commitURL string
diff string
Format
uri