Skip to content

Commit ef50c35

Browse files
committed
WIP
1 parent 6468763 commit ef50c35

File tree

10 files changed

+30
-10
lines changed

10 files changed

+30
-10
lines changed

coderd/database/dbfake/dbfake.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3967,6 +3967,7 @@ func (q *fakeQuerier) InsertTemplateVersionParameter(_ context.Context, arg data
39673967
Required: arg.Required,
39683968
DisplayOrder: arg.DisplayOrder,
39693969
LegacyVariableName: arg.LegacyVariableName,
3970+
Ephemeral: arg.Ephemeral,
39703971
}
39713972
q.templateVersionParameters = append(q.templateVersionParameters, param)
39723973
return param, nil

coderd/database/dump.sql

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE template_version_parameters DROP COLUMN ephemeral;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
ALTER TABLE template_version_parameters ADD COLUMN ephemeral boolean NOT NULL DEFAULT false;
2+
3+
COMMENT ON COLUMN template_version_parameters.ephemeral
4+
IS 'The value of an ephemeral parameter will not be preserved between consecutive workspace builds.';

coderd/database/models.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/queries.sql.go

Lines changed: 10 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/queries/templateversionparameters.sql

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ INSERT INTO
1717
required,
1818
legacy_variable_name,
1919
display_name,
20-
display_order
20+
display_order,
21+
ephemeral
2122
)
2223
VALUES
2324
(
@@ -37,7 +38,8 @@ VALUES
3738
$14,
3839
$15,
3940
$16,
40-
$17
41+
$17,
42+
$18
4143
) RETURNING *;
4244

4345
-- name: GetTemplateVersionParameters :many

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ require (
7575
github.com/codeclysm/extract v2.2.0+incompatible
7676
github.com/coder/flog v1.1.0
7777
github.com/coder/retry v1.4.0
78-
github.com/coder/terraform-provider-coder v0.9.0
78+
github.com/coder/terraform-provider-coder v0.10.0
7979
github.com/coder/wgtunnel v0.1.5
8080
github.com/coreos/go-oidc/v3 v3.6.0
8181
github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf
@@ -110,7 +110,7 @@ require (
110110
github.com/hashicorp/go-version v1.6.0
111111
github.com/hashicorp/golang-lru/v2 v2.0.1
112112
github.com/hashicorp/hc-install v0.5.2
113-
github.com/hashicorp/hcl/v2 v2.17.0
113+
github.com/hashicorp/hcl/v2 v2.17.0 // indirect
114114
github.com/hashicorp/terraform-config-inspect v0.0.0-20211115214459-90acf1ca460f
115115
github.com/hashicorp/terraform-json v0.17.0
116116
github.com/hashicorp/yamux v0.1.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ github.com/coder/ssh v0.0.0-20230621095435-9a7e23486f1c h1:TI7TzdFI0UvQmwgyQhtI1
193193
github.com/coder/ssh v0.0.0-20230621095435-9a7e23486f1c/go.mod h1:aGQbuCLyhRLMzZF067xc84Lh7JDs1FKwCmF1Crl9dxQ=
194194
github.com/coder/tailscale v0.0.0-20230522123520-74712221d00f h1:F0Xr1d8h8dAHn7tab1HXuzYFkcjmCydnEfdMbkOhlVk=
195195
github.com/coder/tailscale v0.0.0-20230522123520-74712221d00f/go.mod h1:jpg+77g19FpXL43U1VoIqoSg1K/Vh5CVxycGldQ8KhA=
196-
github.com/coder/terraform-provider-coder v0.9.0 h1:OJazaeBz6O2h7tDDUyUWgNW71lTPbvbI2raX1CGuBzI=
197-
github.com/coder/terraform-provider-coder v0.9.0/go.mod h1:UIfU3bYNeSzJJvHyJ30tEKjD6Z9utloI+HUM/7n94CY=
196+
github.com/coder/terraform-provider-coder v0.10.0 h1:d9iKLhf0bIERqPr0sm02pFSiLphpZ9pKbcv9+8LGvaU=
197+
github.com/coder/terraform-provider-coder v0.10.0/go.mod h1:UIfU3bYNeSzJJvHyJ30tEKjD6Z9utloI+HUM/7n94CY=
198198
github.com/coder/wgtunnel v0.1.5 h1:WP3sCj/3iJ34eKvpMQEp1oJHvm24RYh0NHbj1kfUKfs=
199199
github.com/coder/wgtunnel v0.1.5/go.mod h1:bokoUrHnUFY4lu9KOeSYiIcHTI2MO1KwqumU4DPDyJI=
200200
github.com/containerd/console v1.0.3 h1:lIr7SlA5PxZyMV30bDW0MGbiOPXwc63yRuCP0ARubLw=

provisionersdk/proto/provisioner.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ message RichParameter {
4343
string legacy_variable_name = 14;
4444
string display_name = 15;
4545
int32 order = 16;
46+
bool ephemeral = 17;
4647
}
4748

4849
// RichParameterValue holds the key/value mapping of a parameter.

0 commit comments

Comments
 (0)