https://github.com/metal-stack/syncrd
Synchronize instances of Custom Resource Definition between the source and destination cluster.
https://github.com/metal-stack/syncrd
Last synced: 11 months ago
JSON representation
Synchronize instances of Custom Resource Definition between the source and destination cluster.
- Host: GitHub
- URL: https://github.com/metal-stack/syncrd
- Owner: metal-stack
- Created: 2021-05-03T15:13:43.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-21T18:54:02.000Z (about 4 years ago)
- Last Synced: 2025-01-11T11:18:00.120Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 163 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# syncrd
Synchronize instances of *Custom Resource Definition* between the source and destination cluster.
## Build & Run Binary
```bash
# Build the binary. Here the default values are also given.
# The definition of `ClusterwideNetworkPolicy` can be found be in `github.com/metal-stack/firewall-controller/api/v1`.
# Modify these four variables to suit your repository.
make \
REPO_URL=github.com/metal-stack/firewall-controller \
REPO_VERSION=latest \
SUB_PATH=api/v1 \
CRD_KIND=ClusterwideNetworkPolicy
# Run the binary. Make sure the valid paths to the source and destination clusters are given.
bin/syncrd --source /tmp/source --dest /tmp/dest
```
## Build & Run Docker Image
```bash
# Build the image. As above, the default values are also given.
make docker-build \
REPO_URL=github.com/metal-stack/firewall-controller \
REPO_VERSION=latest \
SUB_PATH=api/v1 \
CRD_KIND=ClusterwideNetworkPolicy
# Run the image. As above, make sure `/tmp/source` and `/tmp/dest` are valid paths.
docker run -v /tmp/source:/source:ro -v /tmp/dest:/dest:ro --network host ghcr.io/metal-stack/syncrd:latest
```