Skip to content

Commit c8a42f6

Browse files
authored
chore: make agent_name unused (#383)
1 parent e9238f1 commit c8a42f6

File tree

3 files changed

+10
-19
lines changed

3 files changed

+10
-19
lines changed

jetbrains-gateway/README.md

+6-12
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ This module adds a JetBrains Gateway Button to open any workspace with a single
1515
module "jetbrains_gateway" {
1616
count = data.coder_workspace.me.start_count
1717
source = "registry.coder.com/modules/jetbrains-gateway/coder"
18-
version = "1.0.27"
18+
version = "1.0.28"
1919
agent_id = coder_agent.example.id
20-
agent_name = "example"
2120
folder = "/home/coder/example"
2221
jetbrains_ides = ["CL", "GO", "IU", "PY", "WS"]
2322
default = "GO"
@@ -34,9 +33,8 @@ module "jetbrains_gateway" {
3433
module "jetbrains_gateway" {
3534
count = data.coder_workspace.me.start_count
3635
source = "registry.coder.com/modules/jetbrains-gateway/coder"
37-
version = "1.0.27"
36+
version = "1.0.28"
3837
agent_id = coder_agent.example.id
39-
agent_name = "example"
4038
folder = "/home/coder/example"
4139
jetbrains_ides = ["GO", "WS"]
4240
default = "GO"
@@ -49,9 +47,8 @@ module "jetbrains_gateway" {
4947
module "jetbrains_gateway" {
5048
count = data.coder_workspace.me.start_count
5149
source = "registry.coder.com/modules/jetbrains-gateway/coder"
52-
version = "1.0.27"
50+
version = "1.0.28"
5351
agent_id = coder_agent.example.id
54-
agent_name = "example"
5552
folder = "/home/coder/example"
5653
jetbrains_ides = ["IU", "PY"]
5754
default = "IU"
@@ -65,9 +62,8 @@ module "jetbrains_gateway" {
6562
module "jetbrains_gateway" {
6663
count = data.coder_workspace.me.start_count
6764
source = "registry.coder.com/modules/jetbrains-gateway/coder"
68-
version = "1.0.27"
65+
version = "1.0.28"
6966
agent_id = coder_agent.example.id
70-
agent_name = "example"
7167
folder = "/home/coder/example"
7268
jetbrains_ides = ["IU", "PY"]
7369
default = "IU"
@@ -91,9 +87,8 @@ module "jetbrains_gateway" {
9187
module "jetbrains_gateway" {
9288
count = data.coder_workspace.me.start_count
9389
source = "registry.coder.com/modules/jetbrains-gateway/coder"
94-
version = "1.0.27"
90+
version = "1.0.28"
9591
agent_id = coder_agent.example.id
96-
agent_name = "example"
9792
folder = "/home/coder/example"
9893
jetbrains_ides = ["GO", "WS"]
9994
default = "GO"
@@ -110,9 +105,8 @@ Due to the highest priority of the `ide_download_link` parameter in the `(jetbra
110105
module "jetbrains_gateway" {
111106
count = data.coder_workspace.me.start_count
112107
source = "registry.coder.com/modules/jetbrains-gateway/coder"
113-
version = "1.0.27"
108+
version = "1.0.28"
114109
agent_id = coder_agent.example.id
115-
agent_name = "example"
116110
folder = "/home/coder/example"
117111
jetbrains_ides = ["GO", "WS"]
118112
releases_base_link = "https://releases.internal.site/"

jetbrains-gateway/main.test.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,17 @@ describe("jetbrains-gateway", async () => {
1010

1111
await testRequiredVariables(import.meta.dir, {
1212
agent_id: "foo",
13-
agent_name: "foo",
1413
folder: "/home/foo",
1514
});
1615

1716
it("should create a link with the default values", async () => {
1817
const state = await runTerraformApply(import.meta.dir, {
1918
// These are all required.
2019
agent_id: "foo",
21-
agent_name: "foo",
2220
folder: "/home/coder",
2321
});
2422
expect(state.outputs.url.value).toBe(
25-
"jetbrains-gateway://connect#type=coder&workspace=default&owner=default&agent=foo&folder=/home/coder&url=https://mydeployment.coder.com&token=$SESSION_TOKEN&ide_product_code=IU&ide_build_number=243.21565.193&ide_download_link=https://download.jetbrains.com/idea/ideaIU-2024.3.tar.gz",
23+
"jetbrains-gateway://connect#type=coder&workspace=default&owner=default&folder=/home/coder&url=https://mydeployment.coder.com&token=$SESSION_TOKEN&ide_product_code=IU&ide_build_number=243.21565.193&ide_download_link=https://download.jetbrains.com/idea/ideaIU-2024.3.tar.gz",
2624
);
2725

2826
const coder_app = state.resources.find(
@@ -37,7 +35,6 @@ describe("jetbrains-gateway", async () => {
3735
it("default to first ide", async () => {
3836
const state = await runTerraformApply(import.meta.dir, {
3937
agent_id: "foo",
40-
agent_name: "foo",
4138
folder: "/home/foo",
4239
jetbrains_ides: '["IU", "GO", "PY"]',
4340
});

jetbrains-gateway/main.tf

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ variable "slug" {
2626

2727
variable "agent_name" {
2828
type = string
29-
description = "Agent name."
29+
description = "Agent name. (unused). Will be removed in a future version"
30+
31+
default = ""
3032
}
3133

3234
variable "folder" {
@@ -295,8 +297,6 @@ resource "coder_app" "gateway" {
295297
data.coder_workspace.me.name,
296298
"&owner=",
297299
data.coder_workspace_owner.me.name,
298-
"&agent=",
299-
var.agent_name,
300300
"&folder=",
301301
var.folder,
302302
"&url=",

0 commit comments

Comments
 (0)