Skip to content
Snippets Groups Projects
  1. Oct 06, 2017
    • Jessica Yuen's avatar
      Add test for Manager.LibPaths · fdbdf59a
      Jessica Yuen authored
      fdbdf59a
    • Jessica Yuen's avatar
      Generate per-environment override file · 43896a67
      Jessica Yuen authored
      This commit will generate an "<env-name>.jsonnet" file when an
      environment is created.
      
      For example, the default environment would have the following tree
      structure:
      ├── environments
      │   ├── base.libsonnet
      │   └── default
      │       ├── .metadata
      │       │   ├── k.libsonnet
      │       │   ├── k8s.libsonnet
      │       │   └── swagger.json
      │       ├── default.jsonnet
      │       └── spec.json
      
      The goal of this file is to allow users to extend on base.libsonnet on a
      per-environment basis to allow for custom overrides, such as replica
      count.
      43896a67
    • Jessica Yuen's avatar
      Generate base.libsonnet in environments/ · 4b50beb8
      Jessica Yuen authored
      base.libsonnet is a generated file that exists at the root of the
      environments directory. This file is generated for all ksonnet projects.
      The main goal of this file is to import all components in the components
      directory, so that environments are able to easily extend / override any
      one of these components in a modular structure.
      4b50beb8
    • Jessica Yuen's avatar
      Add .metadata folder to env dir structure · f95863fc
      Jessica Yuen authored
      This change simply hides the environment metadata details that we do not
      want users directly modifying into a .metadata folder.
      f95863fc
    • Alex Clemmer's avatar
      Merge pull request #170 from jessicayuen/default-namespace-fix · 2169ce8b
      Alex Clemmer authored
      Remove unnecessary param from defaultNamespace()
      2169ce8b
  2. Oct 05, 2017
    • Jessica Yuen's avatar
      Remove unnecessary param from defaultNamespace() · c95cde93
      Jessica Yuen authored
      The `clientConfig` param currently being passed is not needed, because
      it exists as a package level var in root. It also makes little sense to
      pass a custom `clientConfig` because if `overrides.Context.Namespace` is
      populated, the namespace that is returned is configured as an override
      in the package level `clientConfig` and not the `clientConfig` in the
      param.
      c95cde93
  3. Oct 03, 2017
  4. Sep 27, 2017
  5. Sep 26, 2017
    • Alex Clemmer's avatar
      Merge pull request #160 from jessicayuen/env-set-fix · fa6d1a69
      Alex Clemmer authored
      Fix 'env set' where --name flag is not specified
      fa6d1a69
    • Jessica Yuen's avatar
      Fix 'env set' where --name flag is not specified · e5e1a1c1
      Jessica Yuen authored
      There is a bug where if --name is not passed during env set, an error is
      thrown due to failed validation checking on an empty name. This commit
      fixes this bug.
      e5e1a1c1
    • Alex Clemmer's avatar
      Merge pull request #157 from hausdorff/svc-depl-proto · 73e75ee2
      Alex Clemmer authored
      Add combination deployment/service system prototype
      73e75ee2
    • Alex Clemmer's avatar
      Merge pull request #154 from hausdorff/proto-preview · 0762fdd0
      Alex Clemmer authored
      Implement 'prototype preview'
      0762fdd0
    • Alex Clemmer's avatar
      f1fba0a1
    • Alex Clemmer's avatar
      Implement 'prototype preview' · 64f78b42
      Alex Clemmer authored
      Currently the command 'prototype use' expands a prototype and prints to
      stdout. This is useful, but most of the time, users want to simply dump
      the result in 'components/'
      
      This command implements this print-to-stdout behavior in a new command,
      'prototype-preview', and reimplements 'prototype use' to drop the
      expanded prototype into 'components/'.
      
      The new form of this command is:
      
        ksonnet prototype use <prototype-name> <component-name> [type] [flags]
      
      So, for example, a command like:
      
        ksonnet prototype use deployment nginx-depl [...]
      
      would expand the 'deployment' prototype, and place it in
      'components/nginx-depl.jsonnet' (since Jsonnet is the default template
      expansion). Alternatively, something like this:
      
        ksonnet prototype use deployment nginx-depl yaml [...]
      
      would expand the prototype and place it in 'components/nginx-depl.yaml'
      (assuming that there is a YAML version of this template.
      64f78b42
    • Alex Clemmer's avatar
      Harden `metadata.isValidName` · 4c3488eb
      Alex Clemmer authored
      Currently `metadata.isValidName` will admit names that should be invalid
      (e.g., names with spaces, leading '/' characters) and not admit names
      that should be valid (e.g., names with '.' characters inside).
      
      This commit moves this function into `metadata/interface.go` and hardens
      it against these constraints.
      4c3488eb
  6. Sep 22, 2017
  7. Sep 21, 2017
  8. Sep 20, 2017
  9. Sep 19, 2017
    • Jessica Yuen's avatar
      Logging for env subcommands · 5e63dcba
      Jessica Yuen authored
      This commit will add logging to all env subcommands 'list', 'set',
      'add', and 'rm'. It adds both Info level and Debug level logging.
      
      Fixes #137
      5e63dcba
    • Alex Clemmer's avatar
      Merge pull request #141 from hausdorff/env-docs · b081f0bc
      Alex Clemmer authored
      Add to 'env' command documentation
      b081f0bc
    • Jessica Yuen's avatar
      Set default log level to 'Info' · 3ca68ad8
      Jessica Yuen authored
      Currently 'Info' level logs are only shown with the '-v' flag. This
      makes commands without the '-v' flag of little use to users, especially
      on success cases, due to no output.
      
      This commit will set the default log level to 'Info', and passing a '-v'
      flag will log at a 'Debug' level.
      3ca68ad8