Skip to content

[CLDGR-748] Adding capacity operations for ns update#479

Merged
pauloh-temporal merged 10 commits intomainfrom
CLDGR-748
Sep 26, 2025
Merged

[CLDGR-748] Adding capacity operations for ns update#479
pauloh-temporal merged 10 commits intomainfrom
CLDGR-748

Conversation

@pauloh-temporal
Copy link
Copy Markdown
Member

@pauloh-temporal pauloh-temporal commented Sep 23, 2025

Why?

We want to support update capacity operations for provisioned capacity of a namespace

Checklist

  1. Closes CLDGR-748

  2. How was this tested:

./tcld --server "saas-api.tmprl-test.cloud:443" namespace uc -n capacity-test.temporal-dev --cm provisioned --cv 16
{
        "asyncOperation": {
                "id": "7cbe07a6-6eb6-45ba-883a-0e6930b5f2a6",
                "stateDeprecated": "pending",
                "state": "StatePending",
                "checkDuration": "10s",
                "operationType": "UpdateNamespace",
                "operationInput": {
                        "@type": "type.googleapis.com/temporal.api.cloud.cloudservice.v1.UpdateNamespaceRequest",
                        "namespace": "capacity-test.temporal-dev",
                        "spec": {
                                "name": "capacity-test",
                                "regions": [
                                        "aws-us-west-2"
                                ],
                                "retentionDays": 30,
                                "mtlsAuth": {
                                        "acceptedClientCaDeprecated": "",
                                        "acceptedClientCa": null,
                                        "certificateFilters": [
                                        ],
                                        "enabled": false
                                },
                                "apiKeyAuth": {
                                        "enabled": true
                                },
                                "customSearchAttributes": {
                                },
                                "searchAttributes": {
                                },
                                "codecServer": {
                                        "endpoint": "",
                                        "passAccessToken": false,
                                        "includeCrossOriginCredentials": false,
                                        "customErrorMessage": {
                                                "default": {
                                                        "message": "",
                                                        "link": ""
                                                }
                                        }
                                },
                                "lifecycle": {
                                        "enableDeleteProtection": false
                                },
                                "highAvailability": {
                                        "disableManagedFailover": false
                                },
                                "connectivityRuleIds": [
                                ],
                                "capacitySpec": {
                                        "provisioned": {
                                                "value": 16
                                        }
                                }
                        },
                        "resourceVersion": "95cbfc62-c1f2-45ba-9f61-00ad8dfd1ee5",
                        "asyncOperationId": ""
                },
                "failureReason": "",
                "startedTime": "2025-09-23T21:39:28Z",
                "finishedTime": null,
                "approval": null
        }
}
./tcld --server "saas-api.tmprl-test.cloud:443" namespace g -n capacity-test.temporal-dev
{
        "namespace": "capacity-test.temporal-dev",
        "resourceVersion": "cd74f5ec-8360-461c-b548-09651320aef7",
        "spec": {
                "name": "capacity-test",
                "regions": [
                        "aws-us-west-2"
                ],
                "retentionDays": 30,
                "mtlsAuth": {
                        "acceptedClientCaDeprecated": "",
                        "acceptedClientCa": null,
                        "certificateFilters": [
                        ],
                        "enabled": false
                },
                "apiKeyAuth": {
                        "enabled": true
                },
                "customSearchAttributes": {
                },
                "searchAttributes": {
                },
                "codecServer": {
                        "endpoint": "",
                        "passAccessToken": false,
                        "includeCrossOriginCredentials": false,
                        "customErrorMessage": {
                                "default": {
                                        "message": "",
                                        "link": ""
                                }
                        }
                },
                "lifecycle": {
                        "enableDeleteProtection": false
                },
                "highAvailability": {
                        "disableManagedFailover": false
                },
                "connectivityRuleIds": [
                ],
                "capacitySpec": {
                        "provisioned": {
                                "value": 16
                        }
                }
        },
        "stateDeprecated": "active",
        "state": "Active",
        "asyncOperationId": "",
        "endpoints": {
                "webAddress": "https://capacity-test.temporal-dev.web.tmprl-test.cloud",
                "mtlsGrpcAddress": "",
                "grpcAddress": "us-west-2.aws.api.tmprl-test.cloud:7233"
        },
        "activeRegion": "aws-us-west-2",
        "limits": {
                "actionsPerSecondLimit": 400
        },
        "privateConnectivities": [
        ],
        "createdTime": "2025-09-23T21:27:00Z",
        "lastModifiedTime": "2025-09-23T21:39:35Z",
        "regionStatus": {
        },
        "connectivityRules": [
        ],
        "tags": {
        },
        "capacity": {
                "provisioned": {
                        "currentValue": 16
                },
                "latestRequest": {
                        "state": "StateCapacityRequestCompleted",
                        "startTime": "2025-09-23T21:39:30.392664427Z",
                        "endTime": "2025-09-23T21:39:34.492232573Z",
                        "asyncOperationId": "7cbe07a6-6eb6-45ba-883a-0e6930b5f2a6",
                        "spec": {
                                "provisioned": {
                                        "value": 16
                                }
                        }
                }
        }
}
  1. Any docs updates needed?

@pauloh-temporal pauloh-temporal requested a review from a team as a code owner September 23, 2025 21:41
@pauloh-temporal pauloh-temporal changed the base branch from main to CLDGR-749 September 25, 2025 01:09
Base automatically changed from CLDGR-749 to main September 26, 2025 18:58
@pauloh-temporal pauloh-temporal enabled auto-merge (squash) September 26, 2025 18:59
@pauloh-temporal pauloh-temporal merged commit cea8e19 into main Sep 26, 2025
4 checks passed
@pauloh-temporal pauloh-temporal deleted the CLDGR-748 branch September 26, 2025 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants