File tree 3 files changed +8
-2
lines changed
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,6 @@ resource "kubernetes_pod" "dev" {
55
55
56
56
- ` id ` (String) The ID of this resource.
57
57
- ` init_script ` (String) Run this script on startup of an instance to initialize the agent.
58
- - ` token ` (String) Set the environment variable "CODER_AGENT_TOKEN" with this token to authenticate an agent.
58
+ - ` token ` (String, Sensitive ) Set the environment variable "CODER_AGENT_TOKEN" with this token to authenticate an agent.
59
59
60
60
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ resource "coder_metadata" "pod_info" {
56
56
### Optional
57
57
58
58
- ` hide ` (Boolean) Hide the resource from the UI.
59
+ - ` icon ` (String) A URL to an icon that will display in the dashboard. View built-in icons here: https://github.com/coder/coder/tree/main/site/static/icon . Use a built-in icon with ` data.coder_workspace.me.access_url + "/icons/<path>" ` .
59
60
60
61
### Read-Only
61
62
Original file line number Diff line number Diff line change @@ -213,7 +213,11 @@ func New() *schema.Provider {
213
213
}
214
214
return updateInitScript (resourceData , i )
215
215
},
216
- ReadContext : func (c context.Context , resourceData * schema.ResourceData , i interface {}) diag.Diagnostics {
216
+ ReadWithoutTimeout : func (c context.Context , resourceData * schema.ResourceData , i interface {}) diag.Diagnostics {
217
+ err := resourceData .Set ("token" , uuid .NewString ())
218
+ if err != nil {
219
+ return diag .FromErr (err )
220
+ }
217
221
return updateInitScript (resourceData , i )
218
222
},
219
223
DeleteContext : func (c context.Context , rd * schema.ResourceData , i interface {}) diag.Diagnostics {
@@ -267,6 +271,7 @@ func New() *schema.Provider {
267
271
},
268
272
"token" : {
269
273
ForceNew : true ,
274
+ Sensitive : true ,
270
275
Description : `Set the environment variable "CODER_AGENT_TOKEN" with this token to authenticate an agent.` ,
271
276
Type : schema .TypeString ,
272
277
Computed : true ,
You can’t perform that action at this time.
0 commit comments