Skip to content
Snippets Groups Projects
  1. Nov 04, 2017
  2. Oct 31, 2017
    • Jessica Yuen's avatar
      Jsonnet Snippet Parser should translate params based on updated spec · 815ffc7c
      Jessica Yuen authored
      This commit will cause the jsonnet snippet parser to parse input of the
      form `import 'param://foo` to `params.foo` as opposed to the previous
      `${foo}`.
      
      ${foo} does not provide an easily accessible way to the params that are
      exposed through the params.libsonnet file. Since parameters are being
      exposed using a local 'params' variable, it makes sense for the jsonnet
      snippet to parse `import param://foo as `params.foo` instead.
      815ffc7c
    • Jessica Yuen's avatar
      Expand environment params.libsonnet · d55fbed6
      Jessica Yuen authored
      Expose the import path to environments/:env/params.libsonnet as an
      ExtCode so that it is made accessible to component files during
      expansion.
      d55fbed6
    • Jessica Yuen's avatar
      Generate environment param file · 16af8bcc
      Jessica Yuen authored
      This commit will generate the `environments/<env>/params.libsonnet` file
      on `env add <env>`.
      
      The purpose of this file is to allow users to define custom parameters
      on an environment-to-environment basis. It is meant to allow for
      "overrides" to component params.
      16af8bcc
    • Jessica Yuen's avatar
      Generate components/params.libsonnet file · 53af2792
      Jessica Yuen authored
      The purpose of this file is to allow re-parameterization of components
      after they are created.
      
      `components/params.libsonnet` is generated on `ks init`. This file will
      contain a jsonnet obj containing two objs:
      
      1. global: contains user-defined global parameters; accessible to all
      component and environments.
      2. components: contains component-level parameters, defined initially
      from `ks prototype use ...`
      
      These objs are empty by default.
      53af2792
  3. Oct 26, 2017
  4. Oct 25, 2017
  5. Oct 23, 2017
  6. Oct 20, 2017
  7. Oct 19, 2017
  8. Oct 17, 2017
  9. Oct 06, 2017
    • Jessica Yuen's avatar
      Expand environment .jsonnet file · 6378e75a
      Jessica Yuen authored
      Commands that take `env` as a param currently expand all files in the
      `components` directory. This is no longer necessary with the
      introduction of `base.libsonnet` and the per-environment override
      `<env>.jsonnet` file.
      
      This commit will simply expand the single `<env>.jsonnet` file (which
      will implicitly expand all component files). The case of running
      `ksonnet apply default`, is equivalent to running `ksonnet apply -f
      environments/default/default.jsonnet`.
      6378e75a
    • 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
  10. 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
  11. Oct 03, 2017