Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0ebcb7d

Browse files
authored
fix: Remove reliance ofrelative_path on subdomains (#4390)
This broke all relative path applications.
1 parentd275331 commit0ebcb7d

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

‎provisioner/terraform/resources.go

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,13 @@ type agentAttributes struct {
2525

2626
// A mapping of attributes on the "coder_app" resource.
2727
typeagentAppAttributesstruct {
28-
AgentIDstring`mapstructure:"agent_id"`
29-
Namestring`mapstructure:"name"`
30-
Iconstring`mapstructure:"icon"`
31-
URLstring`mapstructure:"url"`
32-
Commandstring`mapstructure:"command"`
33-
Subdomainbool`mapstructure:"subdomain"`
34-
// RelativePath is deprecated in favor of Subdomain. This value is a pointer
35-
// because we prefer it over Subdomain it was explicitly set.
36-
RelativePath*bool`mapstructure:"relative_path"`
37-
Healthcheck []appHealthcheckAttributes`mapstructure:"healthcheck"`
28+
AgentIDstring`mapstructure:"agent_id"`
29+
Namestring`mapstructure:"name"`
30+
Iconstring`mapstructure:"icon"`
31+
URLstring`mapstructure:"url"`
32+
Commandstring`mapstructure:"command"`
33+
Subdomainbool`mapstructure:"subdomain"`
34+
Healthcheck []appHealthcheckAttributes`mapstructure:"healthcheck"`
3835
}
3936

4037
// A mapping of attributes on the "healthcheck" resource.
@@ -238,12 +235,7 @@ func ConvertResources(module *tfjson.StateModule, rawGraph string) ([]*proto.Res
238235
}
239236
}
240237

241-
// Default attrs.RelativePath to true if unspecified in Terraform.
242238
subdomain:=attrs.Subdomain
243-
ifattrs.RelativePath!=nil {
244-
subdomain=!*attrs.RelativePath
245-
}
246-
247239
for_,agents:=rangeresourceAgents {
248240
for_,agent:=rangeagents {
249241
// Find agents with the matching ID and associate them!

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp