Created
July 29, 2019 19:53
-
-
Save chuckha/07a7cd2956b6711f8cef09bc0f341e4c to your computer and use it in GitHub Desktop.
Cluster API Tiltfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define the name of the gcr project | |
project = str(local('gcloud config get-value project')).strip() | |
# Watch capdctl (depends on https://github.com/kubernetes-sigs/cluster-api-provider-docker/pull/124) merging | |
read_file(str(local('which capdctl')).rstrip('\n')) | |
# A command that generates YAML for your system | |
k8s_yaml(local('capdctl platform -capi-image gcr.io/kubernetes1-226021/cluster-api-controller-amd64:dev -bp-image gcr.io/kubernetes1-226021/cluster-api-bootstrap-provider-kubeadm:dev -bp-ref master')) | |
# docker_build commands for each image used in the above YAML that you want tilt to be aware of | |
# Note: You very likely do not have your directories structured like I do. Change the second argument. | |
docker_build('gcr.io/' + project + '/cluster-api-controller-amd64', '../../go/src/sigs.k8s.io/cluster-api') | |
docker_build('gcr.io/' + project + '/cluster-api-bootstrap-provider-kubeadm', '../cluster-api-bootstrap-provider-kubeadm') | |
docker_build('gcr.io/' + project +'/manager', '.') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment