Skip to content

Commit

Permalink
upgrade temporal cloud api client version
Browse files Browse the repository at this point in the history
  • Loading branch information
kwadhwa-openai committed Oct 2, 2024
1 parent c25a6e6 commit 3b1efdd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ var (
_ client.CloudOperationsClient = &Client{}
)

var TemporalCloudAPIVersion = "2023-10-01-00"
var TemporalCloudAPIVersion = "2024-05-13-00"

func NewConnectionWithAPIKey(addrStr string, allowInsecure bool, apiKey string) (*Client, error) {

Expand Down
3 changes: 3 additions & 0 deletions internal/provider/namespace_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ func (r *namespaceResource) Schema(ctx context.Context, _ resource.SchemaRequest
"api_key_auth": schema.BoolAttribute{
Description: "If true, Temporal Cloud will use API key authentication for this namespace. If false, mutual TLS (mTLS) authentication will be used.",
Optional: true,
Computed: true,
},
"codec_server": schema.SingleNestedAttribute{
Description: "A codec server is used by the Temporal Cloud UI to decode payloads for all users interacting with this namespace, even if the workflow history itself is encrypted.",
Expand Down Expand Up @@ -302,6 +303,7 @@ func (r *namespaceResource) Create(ctx context.Context, req resource.CreateReque
mtlAuth = &namespacev1.MtlsAuthSpec{
AcceptedClientCa: plan.AcceptedClientCA.ValueString(),
CertificateFilters: certFilters,
Enabled: true,
}

spec.MtlsAuth = mtlAuth
Expand Down Expand Up @@ -401,6 +403,7 @@ func (r *namespaceResource) Update(ctx context.Context, req resource.UpdateReque
mtlAuth = &namespacev1.MtlsAuthSpec{
AcceptedClientCa: plan.AcceptedClientCA.ValueString(),
CertificateFilters: certFilters,
Enabled: true,
}

spec.MtlsAuth = mtlAuth
Expand Down

0 comments on commit 3b1efdd

Please sign in to comment.