Source
yaml
id: namespace-sync-from-git
namespace: system
tasks:
- id: sync
type: io.kestra.plugin.git.NamespaceSync
namespace: system
sourceOfTruth: GIT
whenMissingInSource: DELETE
protectedNamespaces:
- system
url: https://github.com/example_org/example_repo
username: "{{ secret('GITHUB_USERNAME') }}"
password: "{{ secret('GITHUB_ACCESS_TOKEN') }}"
branch: main
gitDirectory: example_directory
triggers:
- id: every_15_minutes
type: io.kestra.plugin.core.trigger.Schedule
cron: "*/15 * * * *"
About this blueprint
Core
This flow will sync namespace resources between Git and Kestra every 15 minutes. It's a unidirectional sync from Git to Kestra.
We will be using NamespaceSync task to sync namespace resources like flows, files, and dashboards between Git and Kestra.
More Related Blueprints