Skip to content
  • Jessica Yuen's avatar
    Commands using the <env> arg should deploy to the correct cluster · 13f89a92
    Jessica Yuen authored
    For example, 'apply <env' currently operates as a no-op. With the
    introduction of simple environments in PR #131, 'apply <env>' should
    perform basic validation such that:
    
    1. The user has added the environment that is being deployed against to
    their Ksonnet project.
    
    2. The URI in the environment's spec file that the user wishes to deploy
    to should correspond to at least one cluster location as listed in
    kubeconfig.
    
    If either of those conditions are not satisfied, the kubecfg user will
    receive the corresponding error.
    
    In addition, this commit will set the kubectl --cluster flag to point at
    the cluster listed by the environment URI.
    13f89a92