From 9e75c924a8fa2436d5eefa9a4c6bc45b6be31a35 Mon Sep 17 00:00:00 2001 From: jackgr Date: Sun, 8 Nov 2015 11:43:56 -0800 Subject: [PATCH] Minor clean ups before refactoring. --- Makefile | 2 +- client/Makefile | 12 -- client/client.go | 14 +- client/test/bootstrap.yaml | 49 ----- client/test/guestbook.yaml | 28 --- client/test/redis.jinja | 32 --- client/test/replicatedservice.py | 200 ------------------ examples/redis/redis.jinja | 32 --- examples/redis/redis.jinja.schema | 10 - .../replicatedservice/replicatedservice.py | 169 --------------- .../replicatedservice.py.schema | 57 ----- expandybird/service/service_test.go | 11 +- 12 files changed, 13 insertions(+), 603 deletions(-) delete mode 100644 client/Makefile delete mode 100644 client/test/bootstrap.yaml delete mode 100644 client/test/guestbook.yaml delete mode 100644 client/test/redis.jinja delete mode 100644 client/test/replicatedservice.py delete mode 100644 examples/redis/redis.jinja delete mode 100644 examples/redis/redis.jinja.schema delete mode 100644 examples/replicatedservice/replicatedservice.py delete mode 100644 examples/replicatedservice/replicatedservice.py.schema diff --git a/Makefile b/Makefile index 79fd02437..573807817 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -SUBDIRS := expandybird/. resourcifier/. manager/. client/. +SUBDIRS := expandybird/. resourcifier/. manager/. TARGETS := all build test push container clean SUBDIRS_TARGETS := \ diff --git a/client/Makefile b/client/Makefile deleted file mode 100644 index ccbb326fb..000000000 --- a/client/Makefile +++ /dev/null @@ -1,12 +0,0 @@ -# Makefile for the Docker image gcr.io/$(PROJECT)/expandybird -# MAINTAINER: Jack Greenfield -# If you update this image please check the tag value before pushing. - -.PHONY : all build test push container clean - -test: client - client --action=expand test/guestbook.yaml test/replicatedservice.py test/redis.jinja > /dev/null - -client: - go get -v ./... - go install -v ./... diff --git a/client/client.go b/client/client.go index e47431a9c..746fe1fe6 100644 --- a/client/client.go +++ b/client/client.go @@ -38,18 +38,17 @@ import ( var ( action = flag.String("action", "deploy", "expand | deploy | list | get | delete | update | listtypes | listtypeinstances | types") name = flag.String("name", "", "Name of template or deployment") - service = flag.String("service", "http://localhost:8080", "URL for deployment manager") - type_registry = flag.String("type_registry", "kubernetes/deployment-manager", "Type registry [owner/repo], defaults to kubernetes/deployment-manager") - binary = flag.String("binary", "../expandybird/expansion/expansion.py", - "Path to template expansion binary") - - properties = flag.String("properties", "", "Properties to use when deploying a type (e.g., --properties k1=v1,k2=v2)") + service = flag.String("service", "http://localhost:8001/api/v1/proxy/namespaces/default/services/manager-service:manager", "URL for deployment manager") + type_registry = flag.String("registry", "kubernetes/deployment-manager", "Type registry [owner/repo], defaults to kubernetes/deployment-manager") + binary = flag.String("binary", "../expandybird/expansion/expansion.py", "Path to template expansion binary") + properties = flag.String("properties", "", "Properties to use when deploying a type (e.g., --properties k1=v1,k2=v2)") ) var usage = func() { message := "usage: %s [] (name | (