From dd17c997faac3a04ee1308f3a08fe1cdf39da09e Mon Sep 17 00:00:00 2001 From: jackgr Date: Sun, 15 Nov 2015 17:10:05 -0800 Subject: [PATCH] Code changes to support terminology rationalization. --- dm/dm.go | 70 ++++--- docs/{types => templates}/registry.md | 0 examples/bootstrap/bootstrap.yaml | 6 +- examples/guestbook/README.md | 2 +- examples/guestbook/guestbook.yaml | 4 +- expandybird/expander/expander_test.go | 2 +- expandybird/service/service_test.go | 2 +- expandybird/test/ExpectedOutput.yaml | 14 +- expandybird/test/replicatedservice.py | 176 ------------------ registry.yaml | 14 -- registry/github_registry.go | 36 ++-- registry/registry.go | 43 +++-- {types => templates}/README.md | 0 {types => templates}/redis/v1/redis.jinja | 4 +- .../redis/v1/redis.jinja.schema | 0 {types => templates}/redis/v1/redis.yaml | 0 .../replicatedservice/v1/replicatedservice.py | 13 ++ .../v1/replicatedservice.py.schema | 0 18 files changed, 114 insertions(+), 272 deletions(-) rename docs/{types => templates}/registry.md (100%) delete mode 100644 expandybird/test/replicatedservice.py delete mode 100644 registry.yaml rename {types => templates}/README.md (100%) rename {types => templates}/redis/v1/redis.jinja (88%) rename {types => templates}/redis/v1/redis.jinja.schema (100%) rename {types => templates}/redis/v1/redis.yaml (100%) rename {types => templates}/replicatedservice/v1/replicatedservice.py (87%) rename {types => templates}/replicatedservice/v1/replicatedservice.py.schema (100%) diff --git a/dm/dm.go b/dm/dm.go index 3952f669b..f1c417a19 100644 --- a/dm/dm.go +++ b/dm/dm.go @@ -36,29 +36,28 @@ import ( ) var ( - // TODO(jackgr): Implement reading a template from stdin - //stdin = flag.Bool("stdin", false, "Reads a template from the standard input") - properties = flag.String("properties", "", "Properties to use when deploying a type (e.g., --properties k1=v1,k2=v2)") - type_registry = flag.String("registry", "kubernetes/deployment-manager", "Github based type registry [owner/repo]") - service = flag.String("service", "http://localhost:8001/api/v1/proxy/namespaces/default/services/manager-service:manager", "URL for deployment manager") - binary = flag.String("binary", "../expandybird/expansion/expansion.py", "Path to template expansion binary") + stdin = flag.Bool("stdin", false, "Reads a configuration from the standard input") + properties = flag.String("properties", "", "Properties to use when deploying a template (e.g., --properties k1=v1,k2=v2)") + template_registry = flag.String("registry", "kubernetes/deployment-manager/templates", "Github based template registry (owner/repo[/path])") + service = flag.String("service", "http://localhost:8001/api/v1/proxy/namespaces/default/services/manager-service:manager", "URL for deployment manager") + binary = flag.String("binary", "../expandybird/expansion/expansion.py", "Path to template expansion binary") ) var commands = []string{ - "expand \t\t\t Expands the supplied template(s)", - "deploy \t\t\t Deploys the supplied type or template(s)", + "expand \t\t\t Expands the supplied configuration(s)", + "deploy \t\t\t Deploys the named template or the supplied configuration(s)", "list \t\t\t Lists the deployments in the cluster", "get \t\t\t Retrieves the supplied deployment", "delete \t\t\t Deletes the supplied deployment", - "update \t\t\t Updates a deployment using the supplied template(s)", + "update \t\t\t Updates a deployment using the supplied configuration(s)", "deployed-types \t\t Lists the types deployed in the cluster", - "deployed-instances \t Lists the instances of the supplied type deployed in the cluster", - "types \t\t\t Lists the types in the current registry", - "describe \t\t Describes the supplied type in the current registry", + "deployed-instances \t Lists the instances of the named type deployed in the cluster", + "templates \t\t Lists the templates in a given template registry", + "describe \t\t Describes the named template in a given template registry", } var usage = func() { - message := "Usage: %s [] ( | | (