Skip to content

Commit 9576a3f

Browse files
committed
remove comments
1 parent 4835b29 commit 9576a3f

File tree

1 file changed

+1
-22
lines changed
  • .github/pr-deployments/template

1 file changed

+1
-22
lines changed

.github/pr-deployments/template/main.tf

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,6 @@ terraform {
1414
provider "coder" {
1515
}
1616

17-
variable "use_kubeconfig" {
18-
type = bool
19-
description = <<-EOF
20-
Use host kubeconfig? (true/false)
21-
22-
Set this to false if the Coder host is itself running as a Pod on the same
23-
Kubernetes cluster as you are deploying workspaces to.
24-
25-
Set this to true if the Coder host is running outside the Kubernetes cluster
26-
for workspaces. A valid "~/.kube/config" must be present on the Coder host.
27-
EOF
28-
default = false
29-
}
30-
3117
variable "namespace" {
3218
type = string
3319
description = "The Kubernetes namespace to create workspaces in (must exist prior to creating workspaces)"
@@ -98,8 +84,7 @@ data "coder_parameter" "home_disk_size" {
9884
}
9985

10086
provider "kubernetes" {
101-
# Authenticate via ~/.kube/config or a Coder-specific ServiceAccount, depending on admin preferences
102-
config_path = var.use_kubeconfig == true ? "~/.kube/config" : null
87+
config_path = null
10388
}
10489

10590
data "coder_workspace" "me" {}
@@ -115,11 +100,6 @@ resource "coder_agent" "main" {
115100
curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server
116101
/tmp/code-server/bin/code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 &
117102
118-
# # Set KUBECONFIG env var to the path of the mounted secret
119-
# mkdir -p /home/coder/.kube
120-
# sudo cp /tmp/config /home/coder/.kube/config
121-
# export KUBECONFIG=/home/coder/.kube/config
122-
123103
EOT
124104

125105
# The following metadata blocks are optional. They are used to display
@@ -251,7 +231,6 @@ resource "kubernetes_deployment" "main" {
251231
}
252232

253233
spec {
254-
# replicas = data.coder_workspace.me.start_count
255234
replicas = 1
256235
selector {
257236
match_labels = {

0 commit comments

Comments
 (0)