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
cloneSubmodules booleanstring
dryRun booleanstring
Default
falsegitConfig object
gitDirectory string
onInvalidSyntax string
Default
FAILPossible Values
SKIPWARNFAILpassphrase string
password string
privateKey string
protectedNamespaces array
SubTypestring
Default
["system"]sourceOfTruth string
Default
KESTRAPossible Values
GITKESTRAurl string
username string
whenMissingInSource string
Default
DELETEPossible Values
DELETEKEEPFAILOutputs
commitId string
commitURL string
diff string
Format
uri