- Nov 29, 2017
-
-
Alex Clemmer authored
Fixes #100. This commit will transition the ksonnet CLI away from accepting either a list of files or an environment (or both). A detailed explanation follows. Historically, the ksonnet CLI has had several "environment commands". These commands (e.g., `apply`, `diff`, `delete`, `show`, etc.) all took one of the following: 1. An environment name. For example, `apply us-west/dev` will `apply` everything in the `components/` directory to the cluster denoted by `us-west/dev`. 2. A set of files. For example, `apply -f foo.jsonnet -f bar.jsonnet` would apply those two specific Jsonnet files to the server specified by the current context in $KUBECONFIG. 3. Both an environment name and a set of files. For example, `apply us-west/dev -f foo.jsonnet -f bar.jsonnet` would `apply` those two files to the cluster denoted by the `us-west/dev` environment. This "duality" remained in place primarily because it was important for the ksonnet CLI to maintain functional compatibility (though not strict CLI-level app compatibility) with the kubecfg tool. Some time ago the ksonnet CLI was forked from the kubecfg CLI, but it is only in this commit that we abandon this duality. Specifically, this commit will _require_ the environment name for all commands. For example, the form of `apply` will now be: `apply <env-name> [-f <file>]`. There are main parts to this: 1. Refactoring core abstractions that supports this "duality". Specifically, removing the `cmd.envSpec` type and several functions, such as `cmd.parseEnvCmd`. 2. Updating the tests to reflect this new directory structure. Signed-off-by:
Jessica Yuen <im.jessicayuen@gmail.com>
-
- Nov 28, 2017
-
-
Bryan Liles authored
Generated component name is optional
-
Jess authored
Rename 'kubecfg version' to 'ksonnet version'
-
Jessica Yuen authored
Signed-off-by:
Jessica Yuen <im.jessicayuen@gmail.com>
-
bryanl authored
In general, prototypes have a name param. To reduce duplication, use the component name for the name param if the name parameter is omitted. This will turn : ``` ks prototype use deployed-service guestbook-ui \ --name guestbook-ui \ --image alpinejay/dns-single-redis-guestbook:1.0 \ --type LoadBalancer ``` into ``` ks prototype use deployed-service guestbook-ui \ --image alpinejay/dns-single-redis-guestbook:1.0 \ --type LoadBalancer ``` as the `--name` parameter will be inferred. If the operator wishes the name to be different, they can supply the name parameter: ``` ks prototype use deployed-service guestbook-ui \ --name fancy-stuff \ --image alpinejay/dns-single-redis-guestbook:1.0 \ --type LoadBalancer ``` Signed-off-by:
bryanl <bryanliles@gmail.com>
-
bryanl authored
Signed-off-by:
bryanl <bryanliles@gmail.com>
-
Jess authored
Initialize namespace to 'default' if not specified
-
Jess authored
Clarify errors for commands requiring subcommands
-
Jess authored
pkg install: Use 'master' as refSpec where version isn't provided
-
Jessica Yuen authored
If the namespace is not provided in the target kubeconfig context, use 'default'. Also squashes a bug where the namespace, server flags may have been ignored during init. Signed-off-by:
Jessica Yuen <im.jessicayuen@gmail.com>
-
Jessica Yuen authored
Currently, if a version is not provided to the following `pkg install` command `../ks pkg install incubator/redis` , the following error will occur: `ERROR GET https://api.github.com/repos/ksonnet/parts/commits/incubator/redis : 404 Not Found []` This commit will pull in the latest package from master where the version is not specified. Also set the default repository ref to 'master' instead of 'test-reg'. Signed-off-by:
Jessica Yuen <im.jessicayuen@gmail.com>
-
Jess authored
Better support for jsonnet param schemas
-
Jess authored
Use relative paths on jsonnet imports
-
- Nov 27, 2017
-
-
Jessica Yuen authored
Currently, commands such as `ks env non-existent-subcommand` will output an error `Command 'env' requires a subcommand`. This is not helpful since the user may assume there is the subcommand 'non-existent-subcommand'. This commit will clarify the error messages in this scenario. Signed-off-by:
Jessica Yuen <im.jessicayuen@gmail.com>
-
Jessica Yuen authored
Signed-off-by:
Jessica Yuen <im.jessicayuen@gmail.com>
-
Jessica Yuen authored
Signed-off-by:
Jessica Yuen <im.jessicayuen@gmail.com>
-
Jessica Yuen authored
Currently the schema for the component/params.libsonnet file do not support top-of-file imports. This change will allow support. Signed-off-by:
Jessica Yuen <im.jessicayuen@gmail.com>
-
Jessica Yuen authored
Currently absolute paths are being used for jsonnet imports. This makes it difficult to share the files across different systems. Signed-off-by:
Jessica Yuen <im.jessicayuen@gmail.com>
-
Jessica Yao authored
Update ks show docs and tweak readme
-
Jessica Yao authored
Signed-off-by:
Jessica Yao <jessica@heptio.com>
-
Jessica Yao authored
Signed-off-by:
Jessica Yao <jessica@heptio.com>
-
Jessica Yao authored
Signed-off-by:
Jessica Yao <jessica@heptio.com>
-
Jessica Yao authored
Document brew install
-
- Nov 26, 2017
-
-
Joe Beda authored
Signed-off-by:
Joe Beda <joe.github@bedafamily.com>
-
- Nov 23, 2017
-
-
Alex Clemmer authored
Fix segfault for ks diff
-
Alex Clemmer authored
Improve ks init help message
-
- Nov 22, 2017
-
-
Jessica Yuen authored
Output usage and return when no command args are provided for `ks diff`.
-
Jessica Yao authored
[docs][prototypes] Rename 'deployment-exposed-with-service' and address README feedback
-
Jessica Yao authored
-
Jess authored
Improve logging for init
-
Jessica Yuen authored
- Add message: Creating a new app 'foo' at path '/path/to/foo' - On success, add message: ksonnet app successfully created! Next, try creating a component with `ks generate` - On failure, provide suggestions for the user. - Make note that the context is retrieved from the kubeconfig file at the environment variable $KUBECONFIG
-
- Nov 21, 2017
-
-
Jessica Yuen authored
Specifically, 1. Place more emphasize on project initialization based on context 2. Place ksonnet-lib details into footer. 3. Order examples based on most common use cases. 4. Suggest to visit ks generate
-
Alex Clemmer authored
Rename <env>.jsonnet file to main.jsonnet
-
Jess authored
Fix `nil` dereference error in #129
-
Alex Clemmer authored
In line 161 of `root.go`, we're failing to check whether a cluster in the $KUBECONFIG clusters array exists before using it. This will cause a `nil` dereference error.
-
Jess authored
Transition system templates to beta.3
-
Alex Clemmer authored
-
Alex Clemmer authored
-
Jessica Yuen authored
Currently, there are limitations around the file system we are using that does not easily allow renaming of `us-west/prod` to `us-west`, or vice versa - `us-west` to `us-west/prod`. This commit will handle the logic to allow for that by moving the file contents.
-
- Nov 20, 2017
-
-
Alex Clemmer authored
Remove command update
-