@@ -2,6 +2,7 @@ package cmd
2
2
3
3
import (
4
4
"fmt"
5
+ "net/url"
5
6
6
7
"cdr.dev/coder-cli/internal/x/xcobra"
7
8
@@ -64,6 +65,11 @@ coder providers create my-provider --hostname=https://provider.example.com --clu
64
65
}
65
66
66
67
cemanagerURL := client .BaseURL ()
68
+ ingressHost , err := url .Parse (hostname )
69
+ if err != nil {
70
+ return xerrors .Errorf ("parse hostname: %w" , err )
71
+ }
72
+
67
73
version , err := client .APIVersion (ctx )
68
74
if err != nil {
69
75
return xerrors .Errorf ("get application version: %w" , err )
@@ -87,15 +93,15 @@ helm upgrade coder-workspace-provider coder/workspace-provider \
87
93
--install \
88
94
--force \
89
95
--set envproxy.token=` + wp .EnvproxyToken + ` \
90
- --set ingress.host=` + hostname + ` \
96
+ --set ingress.host=` + ingressHost . Hostname () + ` \
91
97
--set envproxy.clusterAddress=` + clusterAddress + ` \
92
- --set cemanager.AccessURL =` + cemanagerURL .String ()+ `
98
+ --set cemanager.accessURL =` + cemanagerURL .String ()+ `
93
99
94
100
WARNING: The 'envproxy.token' is a secret value that authenticates the workspace provider,
95
101
make sure not to share this token or make it public.
96
102
97
103
Other values can be set on the helm chart to further customize the deployment, see
98
- https:/github.com/cdr/enterprise-helm/blob/workspace-providers-envproxy-only/README.md
104
+ https:// github.com/cdr/enterprise-helm/blob/workspace-providers-envproxy-only/README.md
99
105
` )
100
106
101
107
return nil
0 commit comments