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

Commit 109ee8d

Browse files
committed
fixup! fix: use proper API type for resource pool list
1 parent a56005f commit 109ee8d

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

coder-sdk/workspace_providers.go

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,24 @@ type WorkspaceProviders struct {
1212

1313
// KubernetesProvider defines an entity capable of deploying and acting as an ingress for Coder environments.
1414
type KubernetesProvider struct {
15-
ID string `json:"id" table:"-"`
16-
Name string `json:"name" table:"Name"`
17-
Status WorkspaceProviderStatus `json:"status" table:"Status"`
18-
Local bool `json:"local" table:"-"`
19-
ClusterAddress string `json:"cluster_address" table:"Cluster Address"`
20-
DefaultNamespace string `json:"default_namespace" table:"Namespace"`
21-
StorageClass string `json:"storage_class" table:"Storage Class"`
22-
ClusterDomainSuffix string `json:"cluster_domain_suffix" table:"Cluster Domain Suffix"`
23-
EnvproxyAccessURL string `json:"envproxy_access_url" validate:"required" table:"Access URL"`
24-
DevurlHost string `json:"devurl_host" table:"Devurl Host"`
25-
SSHEnabled bool `json:"ssh_enabled" table:"SSH Enabled"`
26-
NamespaceWhitelist []string `json:"namespace_whitelist" table:"Namespace Allowlist"`
27-
OrgWhitelist []string `json:"org_whitelist" table:"-"`
15+
ID string `json:"id" table:"-"`
16+
Name string `json:"name" table:"Name"`
17+
Status WorkspaceProviderStatus `json:"status" table:"Status"`
18+
Local bool `json:"local" table:"-"`
19+
EnvproxyAccessURL string `json:"envproxy_access_url" validate:"required" table:"Access URL"`
20+
DevurlHost string `json:"devurl_host" table:"Devurl Host"`
21+
OrgWhitelist []string `json:"org_whitelist" table:"-"`
22+
KubeProviderConfig `json:"config"`
23+
}
24+
25+
// KubeProviderConfig defines Kubernetes-specific configuration options.
26+
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"`
2833
}
2934

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

0 commit comments

Comments
 (0)