Skip to content

Commit

Permalink
Global namespace mgmt
Browse files Browse the repository at this point in the history
  • Loading branch information
anekkanti committed Nov 3, 2023
1 parent f0d94b0 commit 120b96e
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions temporal/api/cloud/namespace/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,17 @@ message CodecServerSpec {
bool include_cross_origin_credentials = 3;
}

message GlobalNamespaceSpec {
// The regions where the namespace is (or will be) located.
// Optional, default is empty.
repeated string passive_regions = 1;
}

message NamespaceSpec {
// The name to use for the namespace.
// This will create a namespace that's available at '<name>.<account>.tmprl.cloud:7233'.
// The name is immutable. Once set, it cannot be changed.
string name = 1;
// The region where the namespace is (or will be) active.
// The region is immutable. Once set, it cannot be changed.
string region = 2;
// The regions where the namespace should be hosted.
// Specifying more than one region makes the namespace a Global Namespace, which is currently a preview only feature with restricted access.
// Please reach out to temporal support for more information on Global Namespaces.
// When provisioned the Global Namespace will be active on the first region in the list and passive on the rest.
// The regions is immutable. Once set, it cannot be changed.
repeated string regions = 2;
// The number of days the workflows data will be retained for.
// Changes to the retention period may impact your storage costs.
// Any changes to the retention period will be applied to all new running workflows.
Expand All @@ -69,9 +66,6 @@ message NamespaceSpec {
// Codec server spec used by UI to decode payloads for all users interacting with this namespace.
// Optional, default is unset.
CodecServerSpec codec_server = 6;
// The global namespace spec.
// Optional, default is unset.
GlobalNamespaceSpec global = 7;
}

message Endpoints {
Expand All @@ -87,13 +81,20 @@ message Limits {
int32 actions_per_second_limit = 1;
}

message AWSPrivateLink {
message AWSPrivateLinkInfo {
// The list of principals that are allowed to access the private links on the namespace.
repeated string allowed_principal_arns = 1;
// The list of private links, if any, that are associated with the namespace.
repeated string vpc_endpoint_service_names = 2;
}

message PrivateConnectivity {
oneof Info {
// AWS PrivateLink info.
AWSPrivateLinkInfo aws_private_link = 1;
}
}

message Namespace {
// The namespace identifier.
string namespace = 1;
Expand All @@ -110,10 +111,9 @@ message Namespace {
Endpoints endpoints = 6;
// The limits set on the namespace currently.
Limits limits = 7;
// The private link for the namespace, if any.
oneof private_link {
AWSPrivateLink aws_private_link = 8;
}
// The private connectivity for the namespace, if any.
// The private connectivity is keyed on the region where it applies.
map<string, PrivateConnectivity> private_connectivity = 8;
// The date and time when the namespace was created.
google.protobuf.Timestamp created_time = 9;
// The date and time when the namespace was last modified.
Expand Down

0 comments on commit 120b96e

Please sign in to comment.