Skip to content

Commit

Permalink
Merge pull request kubernetes#34487 from jessfraz/update-gcloud-docke…
Browse files Browse the repository at this point in the history
…r-commands

Automatic merge from submit-queue

Update `gcloud docker` commands to use `gcloud docker -- ARGS`

We can then avoid the following warning:
```
WARNING: The '--' argument must be specified between gcloud specific args on the left and DOCKER_ARGS on the right. IMPORTANT: previously, commands allowed the omission of the --, and unparsed arguments were treated as implementation args. This usage is being deprecated and will be removed in March 2017.
This will be strictly enforced in March 2017. Use 'gcloud beta docker' to see new behavior.
```
  • Loading branch information
Kubernetes Submit Queue authored Oct 13, 2016
2 parents 1b1b761 + cde5559 commit 36be3b3
Show file tree
Hide file tree
Showing 48 changed files with 68 additions and 68 deletions.
2 changes: 1 addition & 1 deletion build/build-image/cross/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ build:
docker build -t gcr.io/google_containers/$(IMAGE):$(TAG) .

push: build
gcloud docker --server=gcr.io push gcr.io/google_containers/$(IMAGE):$(TAG)
gcloud docker --server=gcr.io -- push gcr.io/google_containers/$(IMAGE):$(TAG)
2 changes: 1 addition & 1 deletion build/debian-iptables/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ endif
docker build -t $(REGISTRY)/$(IMAGE)-$(ARCH):$(TAG) $(TEMP_DIR)

push: build
gcloud docker push $(REGISTRY)/$(IMAGE)-$(ARCH):$(TAG)
gcloud docker -- push $(REGISTRY)/$(IMAGE)-$(ARCH):$(TAG)

all: push
2 changes: 1 addition & 1 deletion build/kube-dns/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ container:
rm -rf $(TEMP_DIR)

push: container
gcloud docker push $(REGISTRY)/kubedns-$(ARCH):$(TAG)
gcloud docker -- push $(REGISTRY)/kubedns-$(ARCH):$(TAG)

.PHONY: all container push
4 changes: 2 additions & 2 deletions build/pause/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ endif

push: .push-$(ARCH)
.push-$(ARCH): .container-$(ARCH)
gcloud docker push $(IMAGE):$(TAG)
gcloud docker -- push $(IMAGE):$(TAG)
touch $@

push-legacy: .push-legacy-$(ARCH)
.push-legacy-$(ARCH): .container-$(ARCH)
ifeq ($(ARCH),amd64)
gcloud docker push $(LEGACY_AMD64_IMAGE):$(TAG)
gcloud docker -- push $(LEGACY_AMD64_IMAGE):$(TAG)
endif
touch $@

Expand Down
4 changes: 2 additions & 2 deletions cluster/addons/addon-manager/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ endif
docker build -t $(IMAGE)-$(ARCH):$(VERSION) $(TEMP_DIR)

push: build
gcloud docker push $(IMAGE)-$(ARCH):$(VERSION)
gcloud docker -- push $(IMAGE)-$(ARCH):$(VERSION)
ifeq ($(ARCH),amd64)
# Backward compatibility. TODO: deprecate this image tag
docker tag -f $(IMAGE)-$(ARCH):$(VERSION) $(IMAGE):$(VERSION)
gcloud docker push $(IMAGE):$(VERSION)
gcloud docker -- push $(IMAGE):$(VERSION)
endif

clean:
Expand Down
2 changes: 1 addition & 1 deletion cluster/addons/fluentd-elasticsearch/es-image/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ build: elasticsearch_logging_discovery
docker build -t gcr.io/google_containers/elasticsearch:$(TAG) .

push:
gcloud docker push gcr.io/google_containers/elasticsearch:$(TAG)
gcloud docker -- push gcr.io/google_containers/elasticsearch:$(TAG)

elasticsearch_logging_discovery:
go build elasticsearch_logging_discovery.go
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
IMAGE = fluentd-elasticsearch
TAG = 1.19

build:
build:
docker build -t gcr.io/google_containers/$(IMAGE):$(TAG) .

push:
gcloud docker --server=gcr.io push gcr.io/google_containers/$(IMAGE):$(TAG)
push:
gcloud docker --server=gcr.io -- push gcr.io/google_containers/$(IMAGE):$(TAG)
2 changes: 1 addition & 1 deletion cluster/addons/fluentd-elasticsearch/kibana-image/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ build:
docker build -t gcr.io/google_containers/kibana:$(TAG) .

push:
gcloud docker push gcr.io/google_containers/kibana:$(TAG)
gcloud docker -- push gcr.io/google_containers/kibana:$(TAG)
4 changes: 2 additions & 2 deletions cluster/addons/fluentd-gcp/fluentd-gcp-image/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# 4. Test etc.
# 5. Issue PR.
# 6. When PR is approved make the gcr.io version of the image: make build push
# 7. Revert the referendes to kubernetes/fluentd-gcp:$(TAG) to gcr.io/google_containers/fluentd-gcp:$(TAG)
# 7. Revert the referendes to kubernetes/fluentd-gcp:$(TAG) to gcr.io/google_containers/fluentd-gcp:$(TAG)

.PHONY: kbuild kpush

Expand All @@ -47,4 +47,4 @@ build:


push:
gcloud docker push gcr.io/google_containers/fluentd-gcp:$(TAG)
gcloud docker -- push gcr.io/google_containers/fluentd-gcp:$(TAG)
2 changes: 1 addition & 1 deletion cluster/addons/python-image/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ build:
docker build -t "$(IMAGE):$(VERSION)" .

push:
gcloud docker push "$(IMAGE):$(VERSION)"
gcloud docker -- push "$(IMAGE):$(VERSION)"

2 changes: 1 addition & 1 deletion cluster/addons/registry/images/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ build:
docker build -t $(REPO):$(TAG) .

push:
gcloud docker push $(REPO):$(TAG)
gcloud docker -- push $(REPO):$(TAG)
2 changes: 1 addition & 1 deletion cluster/images/etcd-empty-dir-cleanup/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ build: clean
rm -rf etcdctl etcd-v$(ETCD_VERSION)-linux-amd64 etcd-v$(ETCD_VERSION)-linux-amd64.tar.gz

push: build
gcloud docker push $(IMAGE):$(TAG)
gcloud docker -- push $(IMAGE):$(TAG)
6 changes: 3 additions & 3 deletions cluster/images/etcd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ ifeq ($(ARCH),amd64)
cp $(TEMP_DIR)/etcdctl $(TEMP_DIR)/etcdctl-$$tag; \
done
else

# Download etcd in a golang container and cross-compile it statically
# For each release create a tmp dir 'etcd_release_tmp_dir' and unpack the release tar there.
for tag in $(TAGS); do \
Expand Down Expand Up @@ -102,12 +102,12 @@ endif
docker build -t $(REGISTRY)/etcd-$(ARCH):$(REGISTRY_TAG) $(TEMP_DIR)

push: build
gcloud docker push $(REGISTRY)/etcd-$(ARCH):$(REGISTRY_TAG)
gcloud docker -- push $(REGISTRY)/etcd-$(ARCH):$(REGISTRY_TAG)

ifeq ($(ARCH),amd64)
# Backward compatibility. TODO: deprecate this image tag
docker tag $(REGISTRY)/etcd-$(ARCH):$(REGISTRY_TAG) $(REGISTRY)/etcd:$(REGISTRY_TAG)
gcloud docker push $(REGISTRY)/etcd:$(REGISTRY_TAG)
gcloud docker -- push $(REGISTRY)/etcd:$(REGISTRY_TAG)
endif

all: build
Expand Down
4 changes: 2 additions & 2 deletions cluster/images/hyperkube/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ endif
rm -rf "${TEMP_DIR}"

push: build
gcloud docker push ${REGISTRY}/hyperkube-${ARCH}:${VERSION}
gcloud docker -- push ${REGISTRY}/hyperkube-${ARCH}:${VERSION}
ifeq ($(ARCH),amd64)
docker tag -f ${REGISTRY}/hyperkube-${ARCH}:${VERSION} ${REGISTRY}/hyperkube:${VERSION}
gcloud docker push ${REGISTRY}/hyperkube:${VERSION}
gcloud docker -- push ${REGISTRY}/hyperkube:${VERSION}
endif

.PHONY: all
2 changes: 1 addition & 1 deletion cluster/images/kube-discovery/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ build:
rm -rf "${TEMP_DIR}"

push: build
gcloud docker push ${REGISTRY}/kube-discovery-${ARCH}:${VERSION}
gcloud docker -- push ${REGISTRY}/kube-discovery-${ARCH}:${VERSION}

.PHONY: all
2 changes: 1 addition & 1 deletion cluster/images/kubemark/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@

all:
docker build -t gcr.io/$(PROJECT)/kubemark .
gcloud docker push gcr.io/$(PROJECT)/kubemark
gcloud docker -- push gcr.io/$(PROJECT)/kubemark

.PHONY: all
2 changes: 1 addition & 1 deletion examples/cluster-dns/images/backend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ image:
docker build -t $(PREFIX)/$(IMAGE):$(TAG) .

push: image
gcloud docker push $(PREFIX)/$(IMAGE)
gcloud docker -- push $(PREFIX)/$(IMAGE)

clean:
2 changes: 1 addition & 1 deletion examples/cluster-dns/images/frontend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ image:
docker build -t $(PREFIX)/$(IMAGE):$(TAG) .

push: image
gcloud docker push $(PREFIX)/$(IMAGE)
gcloud docker -- push $(PREFIX)/$(IMAGE)

clean:
2 changes: 1 addition & 1 deletion examples/explorer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ container: explorer
docker build -t gcr.io/google_containers/explorer:$(TAG) .

push: container
gcloud docker push gcr.io/google_containers/explorer:$(TAG)
gcloud docker -- push gcr.io/google_containers/explorer:$(TAG)

clean:
rm -f explorer
6 changes: 3 additions & 3 deletions examples/guestbook-go/_src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ build:

# push the image to an registry
push:
gcloud docker push ${REGISTRY}/guestbook:${VERSION}
gcloud docker -- push ${REGISTRY}/guestbook:${VERSION}

# remove previous images and containers
clean:
clean:
docker rm -f ${REGISTRY}/guestbook-builder 2> /dev/null || true
docker rmi -f ${REGISTRY}/guestbook-builder || true
docker rmi -f "${REGISTRY}/guestbook:${VERSION}" || true
Expand Down
2 changes: 1 addition & 1 deletion examples/kubectl-container/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ container:

push: container
$(if $(TAG),,$(error TAG is not defined. Use 'make tag' to see a suggestion))
gcloud docker push gcr.io/google_containers/kubectl:$(TAG)
gcloud docker -- push gcr.io/google_containers/kubectl:$(TAG)

clean:
rm -f kubectl
Expand Down
2 changes: 1 addition & 1 deletion examples/meteor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ your app image with your project ID, and push to GCR. Replace

```
docker tag my-meteor gcr.io/<project>/my-meteor
gcloud docker push gcr.io/<project>/my-meteor
gcloud docker -- push gcr.io/<project>/my-meteor
```

Running
Expand Down
2 changes: 1 addition & 1 deletion examples/storage/cassandra/image/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ build: kubernetes-cassandra.jar
docker build -t ${PROJECT}/cassandra:${VERSION} .

push: build
gcloud docker push ${PROJECT}/cassandra:${VERSION}
gcloud docker -- push ${PROJECT}/cassandra:${VERSION}

.PHONY: all build push
2 changes: 1 addition & 1 deletion federation/cluster/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ function push-federation-images {
kube::log::status "Pushing ${docker_image_tag}"
if [[ "${FEDERATION_PUSH_REPO_BASE}" == "gcr.io/"* ]]; then
echo " -> GCR repository detected. Using gcloud"
gcloud docker push "${docker_image_tag}"
gcloud docker -- push "${docker_image_tag}"
else
docker push "${docker_image_tag}"
fi
Expand Down
2 changes: 1 addition & 1 deletion federation/develop/develop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function push() {
fi

kube::log::status "Pushing hyperkube image to the registry"
gcloud docker push "${KUBE_REGISTRY}/hyperkube-amd64:${kube_version}"
gcloud docker -- push "${KUBE_REGISTRY}/hyperkube-amd64:${kube_version}"

# Update config after build and push, but before turning up the clusters
# to ensure the config has the right image version tags.
Expand Down
2 changes: 1 addition & 1 deletion test/images/clusterapi-tester/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ container: main
docker build -t $(PREFIX):$(TAG) .

push: container
gcloud docker push $(PREFIX):$(TAG)
gcloud docker -- push $(PREFIX):$(TAG)

clean:
rm -f main
2 changes: 1 addition & 1 deletion test/images/dnsutils/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ image:
docker build -t $(PREFIX)/dnsutils .

push: image
gcloud docker push $(PREFIX)/dnsutils
gcloud docker -- push $(PREFIX)/dnsutils

clean:
2 changes: 1 addition & 1 deletion test/images/fakegitserver/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ image:
docker build -t $(PREFIX)/$(IMAGE):$(TAG) .

push: image
gcloud docker push $(PREFIX)/$(IMAGE):$(TAG)
gcloud docker -- push $(PREFIX)/$(IMAGE):$(TAG)

all: push

Expand Down
2 changes: 1 addition & 1 deletion test/images/goproxy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ image: goproxy
docker build -t $(PREFIX)/goproxy:$(TAG) .

push: image
gcloud docker push $(PREFIX)/goproxy:$(TAG)
gcloud docker -- push $(PREFIX)/goproxy:$(TAG)

clean:
rm -f goproxy
2 changes: 1 addition & 1 deletion test/images/hostexec/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ image:
docker build -t $(PREFIX)/hostexec:$(TAG) .

push: image
gcloud docker push $(PREFIX)/hostexec:$(TAG)
gcloud docker -- push $(PREFIX)/hostexec:$(TAG)

clean:
rm -f hostexec
4 changes: 2 additions & 2 deletions test/images/iperf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ image:
docker tag $(PREFIX)/${IMAGE} $(PREFIX)/${IMAGE}:$(TAG) # Add the version tag to the latest image

push: image
gcloud docker push $(PREFIX)/${IMAGE} # Push image tagged as latest to repository
gcloud docker push $(PREFIX)/${IMAGE}:$(TAG) # Push version tagged image to repository (since this image is already pushed it will simply create or update version tag)
gcloud docker -- push $(PREFIX)/${IMAGE} # Push image tagged as latest to repository
gcloud docker -- push $(PREFIX)/${IMAGE}:$(TAG) # Push version tagged image to repository (since this image is already pushed it will simply create or update version tag)

clean:
2 changes: 1 addition & 1 deletion test/images/jessie-dnsutils/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ image:
docker build -t $(PREFIX)/jessie-dnsutils .

push: image
gcloud docker push $(PREFIX)/jessie-dnsutils
gcloud docker -- push $(PREFIX)/jessie-dnsutils

clean:
2 changes: 1 addition & 1 deletion test/images/mount-tester-user/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ image:
sudo docker build -t $(PREFIX)/mounttest-user:$(TAG) .

push: image
gcloud docker push $(PREFIX)/mounttest-user:$(TAG)
gcloud docker -- push $(PREFIX)/mounttest-user:$(TAG)

clean:
2 changes: 1 addition & 1 deletion test/images/mount-tester/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ image: mt
sudo docker build -t $(PREFIX)/mounttest:$(TAG) .

push: image
gcloud docker push $(PREFIX)/mounttest:$(TAG)
gcloud docker -- push $(PREFIX)/mounttest:$(TAG)

clean:
rm -f mt
2 changes: 1 addition & 1 deletion test/images/n-way-http/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ container: server
docker build -t $(PREFIX):$(TAG) .

push: container
gcloud docker push $(PREFIX):$(TAG)
gcloud docker -- push $(PREFIX):$(TAG)

clean:
rm -f server
2 changes: 1 addition & 1 deletion test/images/netexec/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ image: netexec
docker build -t $(PREFIX)/netexec:$(TAG) .

push: image
gcloud docker push $(PREFIX)/netexec:$(TAG)
gcloud docker -- push $(PREFIX)/netexec:$(TAG)

clean:
rm -f netexec
2 changes: 1 addition & 1 deletion test/images/network-tester/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ image: webserver
docker build -t $(PREFIX)/nettest:$(TAG) .

push: image
gcloud docker push $(PREFIX)/nettest:$(TAG)
gcloud docker -- push $(PREFIX)/nettest:$(TAG)

clean:
rm -f webserver
2 changes: 1 addition & 1 deletion test/images/pets/redis/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ container:
docker build -t $(PREFIX):$(TAG) .

push: container
gcloud docker push $(PREFIX):$(TAG)
gcloud docker -- push $(PREFIX):$(TAG)

clean:
docker rmi $(PREFIX):$(TAG)
2 changes: 1 addition & 1 deletion test/images/pets/zookeeper/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ container:
docker build -t $(PREFIX):$(TAG) .

push: container
gcloud docker push $(PREFIX):$(TAG)
gcloud docker -- push $(PREFIX):$(TAG)

clean:
docker rmi $(PREFIX):$(TAG)
2 changes: 1 addition & 1 deletion test/images/port-forward-tester/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ image: portforwardtester
docker build -t $(PREFIX)/portforwardtester:$(TAG) .

push: image
gcloud docker push $(PREFIX)/portforwardtester:$(TAG)
gcloud docker -- push $(PREFIX)/portforwardtester:$(TAG)

clean:
rm -f portforwardtester
2 changes: 1 addition & 1 deletion test/images/porter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ image:

push:
$(if $(TAG),,$(error TAG is not defined. Use 'make tag' after committing changes to see a suggestion))
gcloud docker push $(PREFIX)/porter:$(TAG)
gcloud docker -- push $(PREFIX)/porter:$(TAG)

clean:
rm -f porter
Loading

0 comments on commit 36be3b3

Please sign in to comment.