Skip to content

Commit 7d3e8b5

Browse files
committed
chore: Always use kubeconfig for in-cluster deployment of club website workspace
1 parent b98641f commit 7d3e8b5

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

templates/club-website/main.tf

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ terraform {
1515
provider "coder" {}
1616

1717
provider "kubernetes" {
18-
config_path = var.use_kubeconfig == true ? "~/.kube/config" : null
18+
config_path = "~/.kube/config"
1919
}
2020

2121
provider "envbuilder" {}
@@ -24,21 +24,6 @@ data "coder_provisioner" "me" {}
2424
data "coder_workspace" "me" {}
2525
data "coder_workspace_owner" "me" {}
2626

27-
variable "use_kubeconfig" {
28-
type = bool
29-
description = <<-EOF
30-
Use host kubeconfig? (true/false)
31-
32-
Set this to false if the Coder host is itself running as a Pod on the same
33-
Kubernetes cluster as you are deploying workspaces to.
34-
35-
Set this to true if the Coder host is running outside the Kubernetes cluster
36-
for workspaces. A valid "~/.kube/config" must be present on the Coder host.
37-
EOF
38-
default = false
39-
}
40-
41-
4227
# Handling private repositories
4328
data "coder_external_auth" "github" {
4429
id = "primary-github"

0 commit comments

Comments
 (0)