namespacesyncnamespacesync
namespacesyncCertified

yaml
type: "io.kestra.plugin.git.namespacesync"
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
Defaultfalse
DefaultFAIL
Possible Values
SKIPWARNFAIL
SubTypestring
Default["system"]
DefaultKESTRA
Possible Values
GITKESTRA
DefaultDELETE
Possible Values
DELETEKEEPFAIL
Formaturi