@@ -12,19 +12,24 @@ type WorkspaceProviders struct {
12
12
13
13
// KubernetesProvider defines an entity capable of deploying and acting as an ingress for Coder environments.
14
14
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"`
28
33
}
29
34
30
35
// WorkspaceProviderStatus represents the configuration state of a workspace provider.
0 commit comments