Skip to content

Commit

Permalink
feat: [PL-49333]: Support creation for secrets for CustomSecretManager (
Browse files Browse the repository at this point in the history
#972)

* feat: [PL-49333]: Support creation for secrets for CustomSecretManager

* Add files
  • Loading branch information
sarthak-harnessio committed Apr 29, 2024
1 parent 8141943 commit ddd39ba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/antihax/optional v1.0.0
github.com/aws/aws-sdk-go v1.46.4
github.com/docker/docker v24.0.5+incompatible
github.com/harness/harness-go-sdk v0.3.85
github.com/harness/harness-go-sdk v0.3.86
github.com/harness/harness-openapi-go-client v0.0.19
github.com/hashicorp/go-cleanhttp v0.5.2
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMyw
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/harness/harness-go-sdk v0.3.85 h1:2OZZbmZEveLgc9Xk/tE8dbOfWmcJQiqToEVUoB7AHRA=
github.com/harness/harness-go-sdk v0.3.85/go.mod h1:CPXydorp4zd5Dz2u2FXiHyWL4yd5PQafOMN69cgPSvk=
github.com/harness/harness-go-sdk v0.3.86 h1:jQuMR9QrFRMK02tfRBKYi8BBzLiXZ5d77Exb30UtEoY=
github.com/harness/harness-go-sdk v0.3.86/go.mod h1:CPXydorp4zd5Dz2u2FXiHyWL4yd5PQafOMN69cgPSvk=
github.com/harness/harness-openapi-go-client v0.0.19 h1:8XuZvSPZrNqKRLh7Qksdz78WvRMRzRf88LgzxoT5u7k=
github.com/harness/harness-openapi-go-client v0.0.19/go.mod h1:u0vqYb994BJGotmEwJevF4L3BNAdU9i8ui2d22gmLPA=
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
Expand Down
4 changes: 2 additions & 2 deletions internal/service/platform/secret/text.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ func ResourceSecretText() *schema.Resource {
Description: "This has details to specify if the secret value is Inline or Reference.",
Type: schema.TypeString,
Required: true,
ValidateFunc: validation.StringInSlice([]string{"Reference", "Inline"}, false),
ValidateFunc: validation.StringInSlice([]string{"Reference", "Inline", "CustomSecretManagerValues"}, false),
},
"value": {
Description: "Value of the Secret",
Sensitive: true,
Type: schema.TypeString,
Required: true,
Optional: true,
},
"additional_metadata": {
Description: "Additional Metadata for the Secret",
Expand Down

0 comments on commit ddd39ba

Please sign in to comment.