github.com/shashidharatd/test-infra@v0.0.0-20171006011030-71304e1ca560/mungegithub/submit-queue/Makefile (about)

     1  KUBECONFIG ?= $(HOME)/.kube/config
     2  
     3  push-nginx:
     4  	# Replace the nginx config and restart the pod.
     5  	kubectl --kubeconfig=$(KUBECONFIG) delete configmap nginx-https-redirect && \
     6  	kubectl --kubeconfig=$(KUBECONFIG) create configmap nginx-https-redirect --from-file=nginx.conf=nginx-redirect/nginx.conf && \
     7  	kubectl --kubeconfig=$(KUBECONFIG) delete pod -l app=nginx-https-redirect
     8  
     9  push-ingress:
    10  	# Update the ingress.
    11  	kubectl --kubeconfig=$(KUBECONFIG) apply --record -f ingress.yaml
    12  
    13  # Updates nginx https proxy and the ingress with the local nginx-redirect/nginx.conf and ingress.yaml files.
    14  push-network: push-nginx push-ingress
    15  
    16  targets := $(shell ls -d deployment/*/ | sed -e "s|deployment/\(.*\)/|\1|"| sed -e "s|^$$||")
    17  
    18  update-all:
    19  	@echo "Updating submit queues for repo(s) [$(targets)] in 4 seconds..."
    20  	@sleep 4
    21  	@$(foreach repo,$(targets),echo "Updating $(repo) submit-queue:"; APP=submit-queue TARGET=$(repo) make --no-print-directory -f ../Makefile push_config deploy;)
    22  
    23  deploy-all:
    24  	@echo "Deploying submit queues for repo(s) [$(targets)] in 4 seconds..."
    25  	@sleep 4
    26  	@$(foreach repo,$(targets),echo "Deploying $(repo) submit-queue:"; APP=submit-queue TARGET=$(repo) make --no-print-directory -f ../Makefile first_time_deploy;)
    27  
    28  .PHONY: push-network update-all deploy-all push-nginx push-ingress