@@ -63,12 +63,41 @@ coder providers create my-provider --hostname=https://provider.example.com --clu
63
63
return xerrors .Errorf ("create workspace provider: %w" , err )
64
64
}
65
65
66
- err = tablewriter .WriteTable (cmd .OutOrStdout (), 1 , func (i int ) interface {} {
67
- return * wp
68
- })
66
+ cemanagerURL := client .BaseURL ()
67
+ version , err := client .APIVersion (ctx )
69
68
if err != nil {
70
- return xerrors .Errorf ("write table : %w" , err )
69
+ return xerrors .Errorf ("get application version : %w" , err )
71
70
}
71
+
72
+ clog .LogSuccess (fmt .Sprintf (`
73
+ Created workspace provider "%s"
74
+ ` , createReq .Name ))
75
+ _ = tablewriter .WriteTable (cmd .OutOrStdout (), 1 , func (i int ) interface {} {
76
+ return * wp
77
+ })
78
+ _ , _ = fmt .Fprint (cmd .OutOrStdout (), `
79
+ Now that the workspace provider is provisioned, it must be deployed into the cluster. To learn more,
80
+ visit https://coder.com/docs/guides/deploying-workspace-provider
81
+
82
+ When connected to the cluster you wish to deploy onto, use the following helm command:
83
+
84
+ helm upgrade coder-workspace-provider coder/workspace-provider \
85
+ --version=` + version + ` \
86
+ --atomic \
87
+ --install \
88
+ --force \
89
+ --set envproxy.token=` + wp .EnvproxyToken + ` \
90
+ --set ingress.host=` + hostname + ` \
91
+ --set envproxy.clusterAddress=` + clusterAddress + ` \
92
+ --set cemanager.AccessURL=` + cemanagerURL .String ()+ `
93
+
94
+ WARNING: The 'envproxy.token' is a secret value that authenticates the workspace provider,
95
+ make sure not to share this token or make it public.
96
+
97
+ 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
99
+ ` )
100
+
72
101
return nil
73
102
},
74
103
}
0 commit comments