
namespacesync
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
cloneSubmodulesbooleanstring
dryRunbooleanstring
Default
falsegitConfigobject
gitDirectorystring
onInvalidSyntaxstring
Default
FAILPossible Values
SKIPWARNFAILpassphrasestring
passwordstring
privateKeystring
protectedNamespacesarray
SubTypestring
Default
["system"]sourceOfTruthstring
Default
KESTRAPossible Values
GITKESTRAurlstring
usernamestring
whenMissingInSourcestring
Default
DELETEPossible Values
DELETEKEEPFAILOutputs
commitIdstring
commitURLstring
diffstring
Format
uri