Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Remove namespace whitelist from providers ls #296

Merged
merged 1 commit into from
Mar 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions coder-sdk/workspace_providers.go
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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