@@ -108,12 +108,10 @@ push: push-controller-image push-agones-sdk-image
108108install : ALWAYS_PULL_SIDECAR := true
109109install : IMAGE_PULL_POLICY := "Always"
110110install : ensure-build-image
111- cp $(build_path ) /install.yaml $(build_path ) /.install.yaml
112- sed -i -e ' s!$${REGISTRY}!$(REGISTRY)!g' $(build_path ) /.install.yaml
113- sed -i -e ' s!$${VERSION}!$(VERSION)!g' $(build_path ) /.install.yaml
114- sed -i -e ' s!$${IMAGE_PULL_POLICY}!$(IMAGE_PULL_POLICY)!g' $(build_path ) /.install.yaml
115- sed -i -e ' s!$${ALWAYS_PULL_SIDECAR}!$(ALWAYS_PULL_SIDECAR)!g' $(build_path ) /.install.yaml
116- docker run --rm $(common_mounts ) $(DOCKER_RUN_ARGS ) $(build_tag ) kubectl apply -f $(mount_path ) /build/.install.yaml
111+ docker run --rm $(common_mounts ) $(DOCKER_RUN_ARGS ) $(build_tag ) \
112+ helm upgrade --install --namespace=default \
113+ --set image.tag=$(VERSION ) ,image.registry=$(REGISTRY ) ,image.controller.pullPolicy=$(IMAGE_PULL_POLICY ) ,image.sdk.alwaysPull=$(ALWAYS_PULL_SIDECAR ) \
114+ agones $(mount_path ) /install/helm/agones/
117115
118116# Build a static binary for the gameserver controller
119117build-controller-binary : ensure-build-image
@@ -244,9 +242,11 @@ gcloud-init: ensure-build-config
244242
245243# Creates and authenticates a small, 3 node GKE cluster to work against
246244gcloud-test-cluster : ensure-build-image
247- docker run --rm -it $(common_mounts ) $(build_tag ) gcloud \
245+ docker run --rm -it $(common_mounts ) $(DOCKER_RUN_ARGS ) $( build_tag ) gcloud \
248246 deployment-manager deployments create test-cluster --config=$(mount_path ) /build/gke-test-cluster/deployment.yml
249247 $(MAKE ) gcloud-auth-cluster
248+ docker run --rm -it $(common_mounts ) $(DOCKER_RUN_ARGS ) $(build_tag ) kubectl apply -f $(mount_path ) /build/helm.yaml
249+ docker run --rm $(common_mounts ) $(DOCKER_RUN_ARGS ) $(build_tag ) helm init --service-account helm
250250
251251# Pulls down authentication information for kubectl against a cluster, name can be specified through CLUSTER_NAME
252252# (defaults to 'test-cluster')
@@ -284,7 +284,7 @@ clean-gcloud-config:
284284# Use MINIKUBE_DRIVER variable to change the VM driver
285285# (defaults virtualbox for Linux and macOS, hyperv for windows) if you so desire.
286286minikube-test-cluster : minikube-agones-profile
287- $(MINIKUBE ) start --kubernetes-version v1.9.0 --vm-driver $(MINIKUBE_DRIVER ) \
287+ $(MINIKUBE ) start --kubernetes-version v1.9.4 --vm-driver $(MINIKUBE_DRIVER ) \
288288 --extra-config=apiserver.Admission.PluginNames=NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,DefaultTolerationSeconds,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota \
289289 --extra-config=apiserver.Authorization.Mode=RBAC
290290 # wait until the master is up
@@ -296,6 +296,7 @@ minikube-test-cluster: minikube-agones-profile
296296 # this is needed for kubernetes component to work correctly while RBAC is enabled
297297 -docker run --rm $(common_mounts ) --network=host -v $(minikube_cert_mount ) $(DOCKER_RUN_ARGS ) $(build_tag ) \
298298 kubectl create clusterrolebinding add-on-cluster-admin --clusterrole=cluster-admin --serviceaccount=kube-system:default
299+ docker run --rm $(common_mounts ) --network=host -v $(minikube_cert_mount ) $(DOCKER_RUN_ARGS ) $(build_tag ) helm init
299300 $(MAKE ) minikube-post-start
300301
301302# switch to the agones cluster
0 commit comments