This repository serves as a reasonable template for Kubernetes controller-runtime based projects.
-
Generate a new repository from the template and clone the new repository locally.
-
Change the go module path
modulePath="example.com/myorg/myrepo" find . -type f -exec sed -i "s|github.com/joelanford/project-template|$modulePath|g" {} \;
-
Change the container image repository
imageOrg="registry.example.com/myorg" find . -type f -exec sed -i "s|quay.io/joelanford|${imageOrg}|g" {} \;