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

Commit 6251126

Browse files
authored
Remove namespace whitelist from providers ls (#296)
1 parent 50b996f commit 6251126

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

coder-sdk/workspace_providers.go

+5-6
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@ type KubernetesProvider struct {
2424

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

3534
// WorkspaceProviderStatus represents the configuration state of a workspace provider.

internal/cmd/providers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func createProviderCmd() *cobra.Command {
3636
clusterAddress string
3737
)
3838
cmd := &cobra.Command{
39-
Use: "create [name] --hostname=[hostname] --clusterAddress=[clusterAddress]",
39+
Use: "create [name] --hostname=[hostname] --cluster-address=[clusterAddress]",
4040
Args: xcobra.ExactArgs(1),
4141
Short: "create a new workspace provider.",
4242
Long: "Create a new Coder workspace provider.",

0 commit comments

Comments
 (0)