Skip to content

Commit 15c4919

Browse files
committed
fix DeploymentValues.WithoutSecrets()
1 parent a71fbaf commit 15c4919

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codersdk/deployment.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ type DeploymentValues struct {
154154
AgentFallbackTroubleshootingURL clibase.URL `json:"agent_fallback_troubleshooting_url,omitempty" typescript:",notnull"`
155155
BrowserOnly clibase.Bool `json:"browser_only,omitempty" typescript:",notnull"`
156156
SCIMAPIKey clibase.String `json:"scim_api_key,omitempty" typescript:",notnull"`
157-
ExternalTokenEncryptionKeys clibase.StringArray `json:"external_token_encryption_keys"`
157+
ExternalTokenEncryptionKeys clibase.StringArray `json:"external_token_encryption_keys" typescript:",notnull"`
158158
Provisioner ProvisionerConfig `json:"provisioner,omitempty" typescript:",notnull"`
159159
RateLimit RateLimitConfig `json:"rate_limit,omitempty" typescript:",notnull"`
160160
Experiments clibase.StringArray `json:"experiments,omitempty" typescript:",notnull"`
@@ -1774,7 +1774,7 @@ func (c *DeploymentValues) WithoutSecrets() (*DeploymentValues, error) {
17741774

17751775
// This only works with string values for now.
17761776
switch v := opt.Value.(type) {
1777-
case *clibase.String:
1777+
case *clibase.String, *clibase.StringArray:
17781778
err := v.Set("")
17791779
if err != nil {
17801780
panic(err)

0 commit comments

Comments
 (0)