1. 06 Jul, 2018 3 commits
  2. 05 Jul, 2018 3 commits
  3. 04 Jul, 2018 2 commits
  4. 03 Jul, 2018 11 commits
  5. 02 Jul, 2018 6 commits
  6. 01 Jul, 2018 3 commits
  7. 30 Jun, 2018 1 commit
  8. 29 Jun, 2018 4 commits
  9. 28 Jun, 2018 5 commits
    • Bryan Liles's avatar
      Merge pull request #649 from bryanl/550-prototype-values-file · 49240bd4
      Bryan Liles authored
      Use values file for prototype use/preview
      49240bd4
    • Oren Shomron's avatar
      Merge pull request #669 from shomron/install-multi-version · 4fe10856
      Oren Shomron authored
      pkg install honors versions when checking for conflicts
      4fe10856
    • Oren Shomron's avatar
      pkg install honors versions when checking for conflicts · d7136402
      Oren Shomron authored
      
      
      This commit allows installing a package when a different version is
      already installed. Currently, if the package is installed globally (the
      only option) - it will overwrite the previous version reference.
      A followup change will allow installing into environments to work around
      this limitation.
      
      Part of #660
      
      Also:
      
      * Add PackageManager.IsInstalled - fuzzy-match installation check for packages, without parsing their manifests
      Signed-off-by: default avatarOren Shomron <shomron@gmail.com>
      d7136402
    • bryanl's avatar
      Use values file for prototype use/preview · 62ca6192
      bryanl authored
      
      
      This change introduces a values file to be used when setting prototype
      values for the use and preview commands.
      
      The format of the file is Jsonnet that returns an object.
      
      Notes:
      
      * if values are added to the file and aren't consumed by prototype, they are ignored.
      Signed-off-by: default avatarbryanl <bryanliles@gmail.com>
      62ca6192
    • bryanl's avatar
      Support environment arguments in module parameters · 5b3be7a9
      bryanl authored
      
      
      It is possible that a user might want to use environment parameters
      (namespace or server) in their parameters. This would not work with
      ksonnet for two reasons:
      
      1. ksonnet didn't provide external variables with those settings
      1. params.libsonnet was evaluated as an object
      
      This change adds support for these two items.
      
      ```
      bash-3.2$ ks param list
      COMPONENT PARAM         VALUE
      ========= =====         =====
      ds        arr           [1, 2, 3, 4]
      ds        containerPort 80
      ds        image         'gcr.io/heptio-images/ks-guestbook-demo:0.1'
      ds        name          'ds'
      ds        namespace     ''
      ds        obj           { a: 'b' }
      ds        replicas      1
      ds        server        ''
      ds        servicePort   80
      ds        type          'ClusterIP'
      bash-3.2$ ks param list --env default
      COMPONENT PARAM         VALUE
      ========= =====         =====
      ds        arr           [1, 2, 3, 4]
      ds        containerPort 80
      ds        image         'gcr.io/heptio-images/ks-guestbook-demo:0.1'
      ds        name          'ds'
      ds        namespace     'default'
      ds        obj           { a: 'b' }
      ds        replicas      1
      ds        server        'https://localhost:6443'
      ds        servicePort   80
      ds        type          'ClusterIP'
      ```
      
      An example parameters file that produces the preceeding output:
      
      ```js
      local env = std.extVar("__ksonnet/environments");
      
      {
        global: {
        },
        components: {
          ds: {
            containerPort: 80,
            image: "gcr.io/heptio-images/ks-guestbook-demo:0.1",
            name: "ds",
            replicas: 1,
            servicePort: 80,
            type: "ClusterIP",
            namespace: env.namespace,
            server: env.server,
            obj: {a:"b"},
            arr: [1,2,3,4],
          },
        },
      }
      ```
      
      * note: params files aren't currently generated with the `env` local.
      Signed-off-by: default avatarbryanl <bryanliles@gmail.com>
      5b3be7a9
  10. 27 Jun, 2018 2 commits