github.com/wmuizelaar/kpt@v0.0.0-20221018115725-bd564717b2ed/docs/sync/prototype-controller.md (about) 1 ## RemoteRootSync controller 2 3 Create some example repositories / packages: 4 5 ```sh 6 # Create artifact-registry repos etc 7 make apply-dev-config 8 # Push a sample hello-world app 9 make -C config/samples/apps/hello-server push-image 10 # Create a package for the sample hello-world app 11 ./scripts/create-deployment-package.sh 12 ``` 13 14 To test out remoterootsync self-applying: 15 16 ```sh 17 # Grant more RBAC permissions than are normally needed (equivalent to admin permissions) 18 kubectl apply -f controllers/remoterootsync/config/samples/hack-self-apply-rbac.yaml 19 20 # Apply the RemoteRootSyncSet 21 cat controllers/remoterootsync/config/samples/hack-self-apply.yaml \ 22 | sed -e s/example-google-project-id/${GCP_PROJECT_ID}/g | kubectl apply -f - 23 ```