microsoft / mindaro

Bridge to Kubernetes - for Visual Studio and Visual Studio Code
MIT License
307 stars 106 forks source link

Bridge CLI cannot handle multi-line environment variables #250

Open ajaffie opened 2 years ago

ajaffie commented 2 years ago

Describe the bug When running bridge from the CLI, multi-line environment variables are not set correctly in the spawned CMD window. See this comment from issue #203 and below for more details.

To Reproduce Run bridge using the CLI with an environment variable declared like this:

- name: JWT_PUB_KEY
  value: |
    -----BEGIN PUBLIC KEY-----
    MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAs0OuHfQN16Hu5lR+P/7H
    snip
    xwIDAQAB
    -----END PUBLIC KEY-----
**Expected behavior** The environment variable should be set correctly like it is when using vscode or VS. **Environment Details** Client used (VS Code/Visual Studio): CLI Operating System: Windows
gevial commented 2 years ago

Struggling to find any information on Bridge to Kubernetes CLI, @ajaffie can you please share how to run it? Google doesn't show anything. Thanks.

ajaffie commented 2 years ago

@gevial Instructions are in this comment. Though toward the end there is a mistake, the --routing parameter is for the bridge connect command, not kubectl.