Skip to content

Commit

Permalink
Merge pull request #901 from thockin-tmp/gcr-vanity
Browse files Browse the repository at this point in the history
Convert registry to k8s.gcr.io
  • Loading branch information
cdrage authored Jan 2, 2018
2 parents f66ba3c + a178cf5 commit d19d7a6
Show file tree
Hide file tree
Showing 19 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion examples/docker-compose-v3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3"
services:

redis-master:
image: gcr.io/google_containers/redis:e2e
image: k8s.gcr.io/redis:e2e
ports:
- "6379"

Expand Down
2 changes: 1 addition & 1 deletion examples/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "2"
services:

redis-master:
image: gcr.io/google_containers/redis:e2e
image: k8s.gcr.io/redis:e2e
ports:
- "6379"

Expand Down
2 changes: 1 addition & 1 deletion script/test/fixtures/controller/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "2"
services:

redis-master:
image: gcr.io/google_containers/redis:e2e
image: k8s.gcr.io/redis:e2e
ports:
- "6379"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
"containers": [
{
"name": "redis-master",
"image": "gcr.io/google_containers/redis:e2e",
"image": "k8s.gcr.io/redis:e2e",
"ports": [
{
"containerPort": 6379
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
"containers": [
{
"name": "redis-master",
"image": "gcr.io/google_containers/redis:e2e",
"image": "k8s.gcr.io/redis:e2e",
"ports": [
{
"containerPort": 6379
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
"containers": [
{
"name": "redis-master",
"image": "gcr.io/google_containers/redis:e2e",
"image": "k8s.gcr.io/redis:e2e",
"ports": [
{
"containerPort": 6379
Expand Down
2 changes: 1 addition & 1 deletion script/test/fixtures/examples/output-k8s.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
"containers": [
{
"name": "redis-master",
"image": "gcr.io/google_containers/redis:e2e",
"image": "k8s.gcr.io/redis:e2e",
"ports": [
{
"containerPort": 6379
Expand Down
2 changes: 1 addition & 1 deletion script/test/fixtures/examples/output-os.json
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@
"annotations": null,
"from": {
"kind": "DockerImage",
"name": "gcr.io/google_containers/redis:e2e"
"name": "k8s.gcr.io/redis:e2e"
},
"generation": null,
"importPolicy": {}
Expand Down
2 changes: 1 addition & 1 deletion script/test/fixtures/examples/output-v3-k8s.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
"containers": [
{
"name": "redis-master",
"image": "gcr.io/google_containers/redis:e2e",
"image": "k8s.gcr.io/redis:e2e",
"ports": [
{
"containerPort": 6379
Expand Down
2 changes: 1 addition & 1 deletion script/test/fixtures/examples/output-v3-os.json
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@
"annotations": null,
"from": {
"kind": "DockerImage",
"name": "gcr.io/google_containers/redis:e2e"
"name": "k8s.gcr.io/redis:e2e"
},
"generation": null,
"importPolicy": {}
Expand Down
2 changes: 1 addition & 1 deletion script/test/fixtures/keyonly-envs/env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "2"

services:
redis-master:
image: gcr.io/google_containers/redis:e2e
image: k8s.gcr.io/redis:e2e
ports:
- "6379"
redis-slave:
Expand Down
2 changes: 1 addition & 1 deletion script/test/fixtures/keyonly-envs/output-k8s-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
"containers": [
{
"name": "redis-master",
"image": "gcr.io/google_containers/redis:e2e",
"image": "k8s.gcr.io/redis:e2e",
"ports": [
{
"containerPort": 6379
Expand Down
2 changes: 1 addition & 1 deletion script/test/fixtures/v3/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3"
services:

redis-master:
image: gcr.io/google_containers/redis:e2e
image: k8s.gcr.io/redis:e2e
ports:
- "6379"

Expand Down
2 changes: 1 addition & 1 deletion script/test/fixtures/v3/output-k8s-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
"containers": [
{
"name": "redis-master",
"image": "gcr.io/google_containers/redis:e2e",
"image": "k8s.gcr.io/redis:e2e",
"ports": [
{
"containerPort": 6379
Expand Down
2 changes: 1 addition & 1 deletion script/test/fixtures/v3/output-os-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@
"annotations": null,
"from": {
"kind": "DockerImage",
"name": "gcr.io/google_containers/redis:e2e"
"name": "k8s.gcr.io/redis:e2e"
},
"generation": null,
"importPolicy": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "2"
services:

redis-master:
image: gcr.io/google_containers/redis:e2e
image: k8s.gcr.io/redis:e2e
ports:
- "6379"
tmpfs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"containers": [
{
"name": "redis-master",
"image": "gcr.io/google_containers/redis:e2e",
"image": "k8s.gcr.io/redis:e2e",
"ports": [
{
"containerPort": 6379
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
"annotations": null,
"from": {
"kind": "DockerImage",
"name": "gcr.io/google_containers/redis:e2e"
"name": "k8s.gcr.io/redis:e2e"
},
"generation": null,
"importPolicy": {}
Expand Down
4 changes: 2 additions & 2 deletions script/test_k8s/kubernetes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ stop_k8s() {
"
docker rm -f minikube

# Delete via image name google_containers
# Delete via image name k8s.gcr.io
# Delete all containers started (names start with k8s_)
# Run twice in-case a container is replicated during that time
for run in {0..2}
do
docker ps -a | grep 'k8s_' | awk '{print $1}' | xargs --no-run-if-empty docker rm -f
docker ps -a | grep 'gcr.io/google_containers/hyperkube-amd64' | awk '{print $1}' | xargs --no-run-if-empty docker rm -f
docker ps -a | grep 'k8s.gcr.io/hyperkube-amd64' | awk '{print $1}' | xargs --no-run-if-empty docker rm -f
done
}

Expand Down

0 comments on commit d19d7a6

Please sign in to comment.