Skip to content

Commit

Permalink
Remove namespace whitelist from providers ls (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
deansheather committed Mar 18, 2021
1 parent 50b996f commit 6251126
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions coder-sdk/workspace_providers.go
Expand Up @@ -24,12 +24,11 @@ type KubernetesProvider struct {

// KubeProviderConfig defines Kubernetes-specific configuration options.
type KubeProviderConfig struct {
ClusterAddress string `json:"cluster_address" table:"Cluster Address"`
DefaultNamespace string `json:"default_namespace" table:"Namespace"`
StorageClass string `json:"storage_class" table:"Storage Class"`
ClusterDomainSuffix string `json:"cluster_domain_suffix" table:"Cluster Domain Suffix"`
SSHEnabled bool `json:"ssh_enabled" table:"SSH Enabled"`
NamespaceWhitelist []string `json:"namespace_whitelist" table:"Namespace Allowlist"`
ClusterAddress string `json:"cluster_address" table:"Cluster Address"`
DefaultNamespace string `json:"default_namespace" table:"Namespace"`
StorageClass string `json:"storage_class" table:"Storage Class"`
ClusterDomainSuffix string `json:"cluster_domain_suffix" table:"Cluster Domain Suffix"`
SSHEnabled bool `json:"ssh_enabled" table:"SSH Enabled"`
}

// WorkspaceProviderStatus represents the configuration state of a workspace provider.
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/providers.go
Expand Up @@ -36,7 +36,7 @@ func createProviderCmd() *cobra.Command {
clusterAddress string
)
cmd := &cobra.Command{
Use: "create [name] --hostname=[hostname] --clusterAddress=[clusterAddress]",
Use: "create [name] --hostname=[hostname] --cluster-address=[clusterAddress]",
Args: xcobra.ExactArgs(1),
Short: "create a new workspace provider.",
Long: "Create a new Coder workspace provider.",
Expand Down

0 comments on commit 6251126

Please sign in to comment.