From 85064f19806ca0496f75d849d652573dba23f914 Mon Sep 17 00:00:00 2001 From: Dean Sheather Date: Thu, 18 Mar 2021 20:40:30 +0000 Subject: [PATCH] Remove namespace whitelist from providers ls --- coder-sdk/workspace_providers.go | 11 +++++------ internal/cmd/providers.go | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/coder-sdk/workspace_providers.go b/coder-sdk/workspace_providers.go index ca44d64c..88d9ea30 100644 --- a/coder-sdk/workspace_providers.go +++ b/coder-sdk/workspace_providers.go @@ -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. diff --git a/internal/cmd/providers.go b/internal/cmd/providers.go index 11c9cedb..58624d8a 100644 --- a/internal/cmd/providers.go +++ b/internal/cmd/providers.go @@ -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.",