mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
feat(coderd): support ephemeral parameters (#8367)
This commit is contained in:
@ -2,7 +2,7 @@ terraform {
|
||||
required_providers {
|
||||
coder = {
|
||||
source = "coder/coder"
|
||||
version = "0.8.2"
|
||||
version = "0.11.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -54,9 +54,11 @@ data "coder_parameter" "number_example_max_zero" {
|
||||
}
|
||||
|
||||
data "coder_parameter" "number_example" {
|
||||
name = "number_example"
|
||||
type = "number"
|
||||
default = 4
|
||||
name = "number_example"
|
||||
type = "number"
|
||||
default = 4
|
||||
mutable = true
|
||||
ephemeral = true
|
||||
}
|
||||
|
||||
resource "coder_agent" "dev" {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"format_version": "1.1",
|
||||
"terraform_version": "1.4.0",
|
||||
"format_version": "1.2",
|
||||
"terraform_version": "1.5.1",
|
||||
"planned_values": {
|
||||
"root_module": {
|
||||
"resources": [
|
||||
@ -24,6 +24,7 @@
|
||||
"shutdown_script": null,
|
||||
"shutdown_script_timeout": 300,
|
||||
"startup_script": null,
|
||||
"startup_script_behavior": null,
|
||||
"startup_script_timeout": 300,
|
||||
"troubleshooting_url": null
|
||||
},
|
||||
@ -71,6 +72,7 @@
|
||||
"shutdown_script": null,
|
||||
"shutdown_script_timeout": 300,
|
||||
"startup_script": null,
|
||||
"startup_script_behavior": null,
|
||||
"startup_script_timeout": 300,
|
||||
"troubleshooting_url": null
|
||||
},
|
||||
@ -111,7 +113,7 @@
|
||||
],
|
||||
"prior_state": {
|
||||
"format_version": "1.0",
|
||||
"terraform_version": "1.4.0",
|
||||
"terraform_version": "1.5.1",
|
||||
"values": {
|
||||
"root_module": {
|
||||
"resources": [
|
||||
@ -126,14 +128,14 @@
|
||||
"default": "4",
|
||||
"description": null,
|
||||
"display_name": null,
|
||||
"ephemeral": true,
|
||||
"icon": null,
|
||||
"id": "b4018ceb-5529-4ea9-8d44-f1435255f5ce",
|
||||
"legacy_variable": null,
|
||||
"legacy_variable_name": null,
|
||||
"mutable": false,
|
||||
"id": "2ef43cec-ce06-45d0-9dc2-5e9dcc5e506a",
|
||||
"mutable": true,
|
||||
"name": "number_example",
|
||||
"option": null,
|
||||
"optional": true,
|
||||
"order": null,
|
||||
"type": "number",
|
||||
"validation": [],
|
||||
"value": "4"
|
||||
@ -153,14 +155,14 @@
|
||||
"default": "4",
|
||||
"description": null,
|
||||
"display_name": null,
|
||||
"ephemeral": false,
|
||||
"icon": null,
|
||||
"id": "78f023f8-d78a-4660-bc55-f4af607e9c92",
|
||||
"legacy_variable": null,
|
||||
"legacy_variable_name": null,
|
||||
"id": "240d3feb-e553-4ec9-b72d-644f4937caae",
|
||||
"mutable": false,
|
||||
"name": "number_example_max",
|
||||
"option": null,
|
||||
"optional": true,
|
||||
"order": null,
|
||||
"type": "number",
|
||||
"validation": [
|
||||
{
|
||||
@ -192,14 +194,14 @@
|
||||
"default": "-3",
|
||||
"description": null,
|
||||
"display_name": null,
|
||||
"ephemeral": false,
|
||||
"icon": null,
|
||||
"id": "d4dc1b09-51d8-4428-92e5-637ca7f23826",
|
||||
"legacy_variable": null,
|
||||
"legacy_variable_name": null,
|
||||
"id": "006306f8-3541-4a3c-9bd5-ddc9acac22da",
|
||||
"mutable": false,
|
||||
"name": "number_example_max_zero",
|
||||
"option": null,
|
||||
"optional": true,
|
||||
"order": null,
|
||||
"type": "number",
|
||||
"validation": [
|
||||
{
|
||||
@ -231,14 +233,14 @@
|
||||
"default": "4",
|
||||
"description": null,
|
||||
"display_name": null,
|
||||
"ephemeral": false,
|
||||
"icon": null,
|
||||
"id": "7e0c0c5d-4c6f-44d3-aaae-31e6698d65d8",
|
||||
"legacy_variable": null,
|
||||
"legacy_variable_name": null,
|
||||
"id": "2cc53ecc-6086-461a-989d-77b5c40be5d7",
|
||||
"mutable": false,
|
||||
"name": "number_example_min",
|
||||
"option": null,
|
||||
"optional": true,
|
||||
"order": null,
|
||||
"type": "number",
|
||||
"validation": [
|
||||
{
|
||||
@ -270,14 +272,14 @@
|
||||
"default": "4",
|
||||
"description": null,
|
||||
"display_name": null,
|
||||
"ephemeral": false,
|
||||
"icon": null,
|
||||
"id": "1e9fe990-cc13-4cdb-84dd-ab198ffe8e8d",
|
||||
"legacy_variable": null,
|
||||
"legacy_variable_name": null,
|
||||
"id": "691a525b-9424-4c38-a6da-d6029ab9c3ac",
|
||||
"mutable": false,
|
||||
"name": "number_example_min_max",
|
||||
"option": null,
|
||||
"optional": true,
|
||||
"order": null,
|
||||
"type": "number",
|
||||
"validation": [
|
||||
{
|
||||
@ -309,14 +311,14 @@
|
||||
"default": "4",
|
||||
"description": null,
|
||||
"display_name": null,
|
||||
"ephemeral": false,
|
||||
"icon": null,
|
||||
"id": "a358e7b2-9ace-49fe-b94b-476f1a5e0fbd",
|
||||
"legacy_variable": null,
|
||||
"legacy_variable_name": null,
|
||||
"id": "a7c46d06-44dd-4df2-8d16-a1130298dc59",
|
||||
"mutable": false,
|
||||
"name": "number_example_min_zero",
|
||||
"option": null,
|
||||
"optional": true,
|
||||
"order": null,
|
||||
"type": "number",
|
||||
"validation": [
|
||||
{
|
||||
@ -346,7 +348,7 @@
|
||||
"coder": {
|
||||
"name": "coder",
|
||||
"full_name": "registry.terraform.io/coder/coder",
|
||||
"version_constraint": "0.8.2"
|
||||
"version_constraint": "0.11.0"
|
||||
},
|
||||
"null": {
|
||||
"name": "null",
|
||||
@ -392,6 +394,12 @@
|
||||
"default": {
|
||||
"constant_value": 4
|
||||
},
|
||||
"ephemeral": {
|
||||
"constant_value": true
|
||||
},
|
||||
"mutable": {
|
||||
"constant_value": true
|
||||
},
|
||||
"name": {
|
||||
"constant_value": "number_example"
|
||||
},
|
||||
@ -536,5 +544,6 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"timestamp": "2023-07-10T08:58:27Z"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"format_version": "1.0",
|
||||
"terraform_version": "1.4.0",
|
||||
"terraform_version": "1.5.1",
|
||||
"values": {
|
||||
"root_module": {
|
||||
"resources": [
|
||||
@ -15,14 +15,14 @@
|
||||
"default": "4",
|
||||
"description": null,
|
||||
"display_name": null,
|
||||
"ephemeral": true,
|
||||
"icon": null,
|
||||
"id": "2ba8e573-2f49-4a2a-b454-1fd544b7d50c",
|
||||
"legacy_variable": null,
|
||||
"legacy_variable_name": null,
|
||||
"mutable": false,
|
||||
"id": "dcde525b-5871-486a-b731-f0c4d874bf5b",
|
||||
"mutable": true,
|
||||
"name": "number_example",
|
||||
"option": null,
|
||||
"optional": true,
|
||||
"order": null,
|
||||
"type": "number",
|
||||
"validation": [],
|
||||
"value": "4"
|
||||
@ -42,14 +42,14 @@
|
||||
"default": "4",
|
||||
"description": null,
|
||||
"display_name": null,
|
||||
"ephemeral": false,
|
||||
"icon": null,
|
||||
"id": "7f94ec1c-7ad9-42ee-8efe-ade93e45a23f",
|
||||
"legacy_variable": null,
|
||||
"legacy_variable_name": null,
|
||||
"id": "756214c3-1df4-4438-ab8b-1f116bda1a91",
|
||||
"mutable": false,
|
||||
"name": "number_example_max",
|
||||
"option": null,
|
||||
"optional": true,
|
||||
"order": null,
|
||||
"type": "number",
|
||||
"validation": [
|
||||
{
|
||||
@ -81,14 +81,14 @@
|
||||
"default": "-3",
|
||||
"description": null,
|
||||
"display_name": null,
|
||||
"ephemeral": false,
|
||||
"icon": null,
|
||||
"id": "03793f75-22ba-4232-ae8b-dcc34f34a9dc",
|
||||
"legacy_variable": null,
|
||||
"legacy_variable_name": null,
|
||||
"id": "073d8a2b-abc0-4a8d-a7a8-9e1f934e50fc",
|
||||
"mutable": false,
|
||||
"name": "number_example_max_zero",
|
||||
"option": null,
|
||||
"optional": true,
|
||||
"order": null,
|
||||
"type": "number",
|
||||
"validation": [
|
||||
{
|
||||
@ -120,14 +120,14 @@
|
||||
"default": "4",
|
||||
"description": null,
|
||||
"display_name": null,
|
||||
"ephemeral": false,
|
||||
"icon": null,
|
||||
"id": "822879a8-5ee0-46c7-984d-b4efc9e70bcf",
|
||||
"legacy_variable": null,
|
||||
"legacy_variable_name": null,
|
||||
"id": "f6891e4d-d281-4af2-9459-9c5c7c1fb4f1",
|
||||
"mutable": false,
|
||||
"name": "number_example_min",
|
||||
"option": null,
|
||||
"optional": true,
|
||||
"order": null,
|
||||
"type": "number",
|
||||
"validation": [
|
||||
{
|
||||
@ -159,14 +159,14 @@
|
||||
"default": "4",
|
||||
"description": null,
|
||||
"display_name": null,
|
||||
"ephemeral": false,
|
||||
"icon": null,
|
||||
"id": "a59a1652-653b-424e-8106-b19f938ac556",
|
||||
"legacy_variable": null,
|
||||
"legacy_variable_name": null,
|
||||
"id": "cf54b361-5505-4997-8eef-0d6216097927",
|
||||
"mutable": false,
|
||||
"name": "number_example_min_max",
|
||||
"option": null,
|
||||
"optional": true,
|
||||
"order": null,
|
||||
"type": "number",
|
||||
"validation": [
|
||||
{
|
||||
@ -198,14 +198,14 @@
|
||||
"default": "4",
|
||||
"description": null,
|
||||
"display_name": null,
|
||||
"ephemeral": false,
|
||||
"icon": null,
|
||||
"id": "65c5512e-6c5c-40eb-bb2c-bca47f72564b",
|
||||
"legacy_variable": null,
|
||||
"legacy_variable_name": null,
|
||||
"id": "069f66cf-0098-44c0-9af3-c0ee5a93f110",
|
||||
"mutable": false,
|
||||
"name": "number_example_min_zero",
|
||||
"option": null,
|
||||
"optional": true,
|
||||
"order": null,
|
||||
"type": "number",
|
||||
"validation": [
|
||||
{
|
||||
@ -239,7 +239,7 @@
|
||||
"connection_timeout": 120,
|
||||
"dir": null,
|
||||
"env": null,
|
||||
"id": "6cddf19d-3caa-47dd-b4a8-6a6ac423caf2",
|
||||
"id": "45694bbb-29e4-41c7-8172-7f0c17835578",
|
||||
"init_script": "",
|
||||
"login_before_ready": true,
|
||||
"metadata": [],
|
||||
@ -248,12 +248,14 @@
|
||||
"shutdown_script": null,
|
||||
"shutdown_script_timeout": 300,
|
||||
"startup_script": null,
|
||||
"startup_script_behavior": null,
|
||||
"startup_script_timeout": 300,
|
||||
"token": "19f956f2-92b2-4fd9-8a89-ed3ec5c23716",
|
||||
"token": "8fa25787-7aba-4d94-ac1c-7181faea0519",
|
||||
"troubleshooting_url": null
|
||||
},
|
||||
"sensitive_values": {
|
||||
"metadata": []
|
||||
"metadata": [],
|
||||
"token": true
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -264,7 +266,7 @@
|
||||
"provider_name": "registry.terraform.io/hashicorp/null",
|
||||
"schema_version": 0,
|
||||
"values": {
|
||||
"id": "6499191613757287225",
|
||||
"id": "2669634748288884064",
|
||||
"triggers": null
|
||||
},
|
||||
"sensitive_values": {},
|
||||
|
Reference in New Issue
Block a user