From 3f2d699a9d8e939524e3714182bb58f73bd23b63 Mon Sep 17 00:00:00 2001 From: justinsb Date: Fri, 7 Jun 2024 13:56:54 -0400 Subject: [PATCH] tests: add another bigtableInstance test --- ...t_bigtableinstanceautoscaling2.golden.yaml | 65 + .../bigtableinstanceautoscaling2/_http.log | 1606 +++++++++++++++++ .../bigtableinstanceautoscaling2/create.yaml | 55 + .../bigtableinstanceautoscaling2/update.yaml | 55 + 4 files changed, 1781 insertions(+) create mode 100644 pkg/test/resourcefixture/testdata/basic/bigtable/v1beta1/bigtableinstance/bigtableinstanceautoscaling2/_generated_object_bigtableinstanceautoscaling2.golden.yaml create mode 100644 pkg/test/resourcefixture/testdata/basic/bigtable/v1beta1/bigtableinstance/bigtableinstanceautoscaling2/_http.log create mode 100644 pkg/test/resourcefixture/testdata/basic/bigtable/v1beta1/bigtableinstance/bigtableinstanceautoscaling2/create.yaml create mode 100644 pkg/test/resourcefixture/testdata/basic/bigtable/v1beta1/bigtableinstance/bigtableinstanceautoscaling2/update.yaml diff --git a/pkg/test/resourcefixture/testdata/basic/bigtable/v1beta1/bigtableinstance/bigtableinstanceautoscaling2/_generated_object_bigtableinstanceautoscaling2.golden.yaml b/pkg/test/resourcefixture/testdata/basic/bigtable/v1beta1/bigtableinstance/bigtableinstanceautoscaling2/_generated_object_bigtableinstanceautoscaling2.golden.yaml new file mode 100644 index 0000000000..175d1d9550 --- /dev/null +++ b/pkg/test/resourcefixture/testdata/basic/bigtable/v1beta1/bigtableinstance/bigtableinstanceautoscaling2/_generated_object_bigtableinstanceautoscaling2.golden.yaml @@ -0,0 +1,65 @@ +apiVersion: bigtable.cnrm.cloud.google.com/v1beta1 +kind: BigtableInstance +metadata: + annotations: + cnrm.cloud.google.com/management-conflict-prevention-policy: none + cnrm.cloud.google.com/mutable-but-unreadable-fields: '{"spec":{"instanceType":"PRODUCTION"}}' + cnrm.cloud.google.com/project-id: ${projectId} + cnrm.cloud.google.com/state-into-spec: merge + finalizers: + - cnrm.cloud.google.com/finalizer + - cnrm.cloud.google.com/deletion-defender + generation: 4 + labels: + cnrm-test: "true" + name: bigtableinstance + namespace: ${uniqueId} +spec: + cluster: + - autoscalingConfig: + cpuTarget: 70 + maxNodes: 30 + minNodes: 3 + storageTarget: 2560 + clusterId: us-central1-a + numNodes: 2 + storageType: SSD + zone: us-central1-a + - autoscalingConfig: + cpuTarget: 80 + maxNodes: 20 + minNodes: 2 + storageTarget: 2560 + clusterId: us-east1-b + numNodes: 2 + storageType: SSD + zone: us-east1-b + - autoscalingConfig: + cpuTarget: 80 + maxNodes: 20 + minNodes: 2 + storageTarget: 2560 + clusterId: us-west1-a + numNodes: 2 + storageType: SSD + zone: us-west1-a + - autoscalingConfig: + cpuTarget: 80 + maxNodes: 20 + minNodes: 2 + storageTarget: 2560 + clusterId: us-central1-c + numNodes: 2 + storageType: SSD + zone: us-central1-c + displayName: bigtableinstance + instanceType: PRODUCTION + resourceID: bt-${uniqueId} +status: + conditions: + - lastTransitionTime: "1970-01-01T00:00:00Z" + message: The resource is up to date + reason: UpToDate + status: "True" + type: Ready + observedGeneration: 4 diff --git a/pkg/test/resourcefixture/testdata/basic/bigtable/v1beta1/bigtableinstance/bigtableinstanceautoscaling2/_http.log b/pkg/test/resourcefixture/testdata/basic/bigtable/v1beta1/bigtableinstance/bigtableinstanceautoscaling2/_http.log new file mode 100644 index 0000000000..2035910055 --- /dev/null +++ b/pkg/test/resourcefixture/testdata/basic/bigtable/v1beta1/bigtableinstance/bigtableinstanceautoscaling2/_http.log @@ -0,0 +1,1606 @@ +GRPC /google.bigtable.admin.v2.BigtableInstanceAdmin/ListInstances + +{ + "parent": "projects/${projectId}" +} + +OK + +{} + +--- + +GRPC /google.bigtable.admin.v2.BigtableInstanceAdmin/CreateInstance + +{ + "clusters": { + "us-central1-a": { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 30, + "minServeNodes": 3 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 70, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "encryptionConfig": {}, + "location": "projects/${projectId}/locations/us-central1-a" + }, + "us-central1-c": { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 10, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "encryptionConfig": {}, + "location": "projects/${projectId}/locations/us-central1-c" + }, + "us-east1-b": { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "encryptionConfig": {}, + "location": "projects/${projectId}/locations/us-east1-b" + }, + "us-west1-a": { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "encryptionConfig": {}, + "location": "projects/${projectId}/locations/us-west1-a" + } + }, + "instance": { + "displayName": "bigtableinstance", + "labels": { + "cnrm-test": "true", + "managed-by-cnrm": "true" + }, + "type": "PRODUCTION" + }, + "instanceId": "bt-${uniqueId}", + "parent": "projects/${projectId}" +} + +OK + +{ + "metadata": { + "@type": "type.googleapis.com/google.bigtable.admin.v2.CreateInstanceMetadata", + "originalRequest": { + "clusters": { + "us-central1-a": { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 30, + "minServeNodes": 3 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 70, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-central1-a" + }, + "us-central1-c": { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 10, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-central1-c" + }, + "us-east1-b": { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-east1-b" + }, + "us-west1-a": { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-west1-a" + } + }, + "instance": { + "displayName": "bigtableinstance", + "labels": { + "cnrm-test": "true", + "managed-by-cnrm": "true" + }, + "type": "PRODUCTION" + }, + "instanceId": "bt-${uniqueId}", + "parent": "projects/${projectId}" + }, + "requestTime": "2024-04-01T12:34:56.123456Z" + }, + "name": "operations/projects/${projectId}/instances/bt-${uniqueId}/locations/us-west1-b/operations/${operationID}" +} + +--- + +GRPC /google.longrunning.Operations/GetOperation + +{ + "name": "operations/projects/${projectId}/instances/bt-${uniqueId}/locations/us-west1-b/operations/${operationID}" +} + +OK + +{ + "done": true, + "metadata": { + "@type": "type.googleapis.com/google.bigtable.admin.v2.CreateInstanceMetadata", + "finishTime": "2024-04-01T12:34:56.123456Z", + "originalRequest": { + "clusters": { + "us-central1-a": { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 30, + "minServeNodes": 3 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 70, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-central1-a" + }, + "us-central1-c": { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 10, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-central1-c" + }, + "us-east1-b": { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-east1-b" + }, + "us-west1-a": { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-west1-a" + } + }, + "instance": { + "displayName": "bigtableinstance", + "labels": { + "cnrm-test": "true", + "managed-by-cnrm": "true" + }, + "type": "PRODUCTION" + }, + "instanceId": "bt-${uniqueId}", + "parent": "projects/${projectId}" + }, + "requestTime": "2024-04-01T12:34:56.123456Z" + }, + "name": "operations/projects/${projectId}/instances/bt-${uniqueId}/locations/us-west1-b/operations/${operationID}", + "response": { + "@type": "type.googleapis.com/google.bigtable.admin.v2.Instance", + "createTime": "2024-04-01T12:34:56.123456Z", + "displayName": "bigtableinstance", + "labels": { + "cnrm-test": "true", + "managed-by-cnrm": "true" + }, + "name": "projects/${projectId}/instances/bt-${uniqueId}", + "state": "READY", + "type": "PRODUCTION" + } +} + +--- + +GRPC /google.bigtable.admin.v2.BigtableInstanceAdmin/ListInstances + +{ + "parent": "projects/${projectId}" +} + +OK + +{ + "instances": [ + { + "createTime": "2024-04-01T12:34:56.123456Z", + "displayName": "bigtableinstance", + "labels": { + "cnrm-test": "true", + "managed-by-cnrm": "true" + }, + "name": "projects/${projectId}/instances/bt-${uniqueId}", + "state": "READY", + "type": "PRODUCTION" + } + ] +} + +--- + +GRPC /google.bigtable.admin.v2.BigtableInstanceAdmin/ListClusters + +{ + "parent": "projects/${projectId}/instances/bt-${uniqueId}" +} + +OK + +{ + "clusters": [ + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 30, + "minServeNodes": 3 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 70, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-central1-a", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-a", + "serveNodes": 2, + "state": "READY" + }, + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 10, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-central1-c", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-c", + "serveNodes": 2, + "state": "READY" + }, + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-east1-b", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-east1-b", + "serveNodes": 2, + "state": "READY" + }, + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-west1-a", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-west1-a", + "serveNodes": 2, + "state": "READY" + } + ] +} + +--- + +GRPC /google.bigtable.admin.v2.BigtableInstanceAdmin/ListInstances + +{ + "parent": "projects/${projectId}" +} + +OK + +{ + "instances": [ + { + "createTime": "2024-04-01T12:34:56.123456Z", + "displayName": "bigtableinstance", + "labels": { + "cnrm-test": "true", + "managed-by-cnrm": "true" + }, + "name": "projects/${projectId}/instances/bt-${uniqueId}", + "state": "READY", + "type": "PRODUCTION" + } + ] +} + +--- + +GRPC /google.bigtable.admin.v2.BigtableInstanceAdmin/ListClusters + +{ + "parent": "projects/${projectId}/instances/bt-${uniqueId}" +} + +OK + +{ + "clusters": [ + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 30, + "minServeNodes": 3 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 70, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-central1-a", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-a", + "serveNodes": 2, + "state": "READY" + }, + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 10, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-central1-c", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-c", + "serveNodes": 2, + "state": "READY" + }, + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-east1-b", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-east1-b", + "serveNodes": 2, + "state": "READY" + }, + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-west1-a", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-west1-a", + "serveNodes": 2, + "state": "READY" + } + ] +} + +--- + +GRPC /google.bigtable.admin.v2.BigtableInstanceAdmin/ListInstances + +{ + "parent": "projects/${projectId}" +} + +OK + +{ + "instances": [ + { + "createTime": "2024-04-01T12:34:56.123456Z", + "displayName": "bigtableinstance", + "labels": { + "cnrm-test": "true", + "managed-by-cnrm": "true" + }, + "name": "projects/${projectId}/instances/bt-${uniqueId}", + "state": "READY", + "type": "PRODUCTION" + } + ] +} + +--- + +GRPC /google.bigtable.admin.v2.BigtableInstanceAdmin/ListClusters + +{ + "parent": "projects/${projectId}/instances/bt-${uniqueId}" +} + +OK + +{ + "clusters": [ + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 30, + "minServeNodes": 3 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 70, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-central1-a", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-a", + "serveNodes": 2, + "state": "READY" + }, + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 10, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-central1-c", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-c", + "serveNodes": 2, + "state": "READY" + }, + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-east1-b", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-east1-b", + "serveNodes": 2, + "state": "READY" + }, + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-west1-a", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-west1-a", + "serveNodes": 2, + "state": "READY" + } + ] +} + +--- + +GRPC /google.bigtable.admin.v2.BigtableInstanceAdmin/ListClusters + +{ + "parent": "projects/${projectId}/instances/bt-${uniqueId}" +} + +OK + +{ + "clusters": [ + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 30, + "minServeNodes": 3 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 70, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-central1-a", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-a", + "serveNodes": 2, + "state": "READY" + }, + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 10, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-central1-c", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-c", + "serveNodes": 2, + "state": "READY" + }, + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-east1-b", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-east1-b", + "serveNodes": 2, + "state": "READY" + }, + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-west1-a", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-west1-a", + "serveNodes": 2, + "state": "READY" + } + ] +} + +--- + +GRPC /google.bigtable.admin.v2.BigtableInstanceAdmin/PartialUpdateInstance + +{ + "instance": { + "displayName": "bigtableinstance", + "name": "projects/${projectId}/instances/bt-${uniqueId}", + "type": "PRODUCTION" + }, + "updateMask": "displayName,type" +} + +OK + +{ + "metadata": { + "@type": "type.googleapis.com/google.bigtable.admin.v2.UpdateInstanceMetadata", + "originalRequest": { + "instance": { + "displayName": "bigtableinstance", + "name": "projects/${projectId}/instances/bt-${uniqueId}", + "type": "PRODUCTION" + }, + "updateMask": "displayName,type" + }, + "requestTime": "2024-04-01T12:34:56.123456Z" + }, + "name": "operations/projects/${projectId}/instances/bt-${uniqueId}/locations/us-central1-a/operations/${operationID}" +} + +--- + +GRPC /google.longrunning.Operations/GetOperation + +{ + "name": "operations/projects/${projectId}/instances/bt-${uniqueId}/locations/us-central1-a/operations/${operationID}" +} + +OK + +{ + "done": true, + "metadata": { + "@type": "type.googleapis.com/google.bigtable.admin.v2.UpdateInstanceMetadata", + "finishTime": "2024-04-01T12:34:56.123456Z", + "originalRequest": { + "instance": { + "displayName": "bigtableinstance", + "name": "projects/${projectId}/instances/bt-${uniqueId}", + "type": "PRODUCTION" + }, + "updateMask": "displayName,type" + }, + "requestTime": "2024-04-01T12:34:56.123456Z" + }, + "name": "operations/projects/${projectId}/instances/bt-${uniqueId}/locations/us-central1-a/operations/${operationID}", + "response": { + "@type": "type.googleapis.com/google.bigtable.admin.v2.Instance", + "createTime": "2024-04-01T12:34:56.123456Z", + "displayName": "bigtableinstance", + "labels": { + "cnrm-test": "true", + "managed-by-cnrm": "true" + }, + "name": "projects/${projectId}/instances/bt-${uniqueId}", + "state": "READY", + "type": "PRODUCTION" + } +} + +--- + +GRPC /google.bigtable.admin.v2.BigtableInstanceAdmin/PartialUpdateCluster + +{ + "cluster": { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 30, + "minServeNodes": 3 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 70, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-a" + }, + "updateMask": "clusterConfig.clusterAutoscalingConfig" +} + +OK + +{ + "metadata": { + "@type": "type.googleapis.com/google.bigtable.admin.v2.PartialUpdateClusterMetadata", + "originalRequest": { + "cluster": { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 30, + "minServeNodes": 3 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 70, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-a" + }, + "updateMask": "clusterConfig.clusterAutoscalingConfig" + }, + "requestTime": "2024-04-01T12:34:56.123456Z" + }, + "name": "operations/projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-a/locations/us-central1-a/operations/${operationID}" +} + +--- + +GRPC /google.longrunning.Operations/GetOperation + +{ + "name": "operations/projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-a/locations/us-central1-a/operations/${operationID}" +} + +OK + +{ + "done": true, + "metadata": { + "@type": "type.googleapis.com/google.bigtable.admin.v2.PartialUpdateClusterMetadata", + "finishTime": "2024-04-01T12:34:56.123456Z", + "originalRequest": { + "cluster": { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 30, + "minServeNodes": 3 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 70, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-a" + }, + "updateMask": "clusterConfig.clusterAutoscalingConfig" + }, + "requestTime": "2024-04-01T12:34:56.123456Z" + }, + "name": "operations/projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-a/locations/us-central1-a/operations/${operationID}", + "response": { + "@type": "type.googleapis.com/google.bigtable.admin.v2.Cluster", + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 30, + "minServeNodes": 3 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 70, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-central1-a", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-a", + "serveNodes": 2, + "state": "READY" + } +} + +--- + +GRPC /google.bigtable.admin.v2.BigtableInstanceAdmin/PartialUpdateCluster + +{ + "cluster": { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-c" + }, + "updateMask": "clusterConfig.clusterAutoscalingConfig" +} + +OK + +{ + "metadata": { + "@type": "type.googleapis.com/google.bigtable.admin.v2.PartialUpdateClusterMetadata", + "originalRequest": { + "cluster": { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-c" + }, + "updateMask": "clusterConfig.clusterAutoscalingConfig" + }, + "requestTime": "2024-04-01T12:34:56.123456Z" + }, + "name": "operations/projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-c/locations/us-central1-a/operations/${operationID}" +} + +--- + +GRPC /google.longrunning.Operations/GetOperation + +{ + "name": "operations/projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-c/locations/us-central1-a/operations/${operationID}" +} + +OK + +{ + "done": true, + "metadata": { + "@type": "type.googleapis.com/google.bigtable.admin.v2.PartialUpdateClusterMetadata", + "finishTime": "2024-04-01T12:34:56.123456Z", + "originalRequest": { + "cluster": { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-c" + }, + "updateMask": "clusterConfig.clusterAutoscalingConfig" + }, + "requestTime": "2024-04-01T12:34:56.123456Z" + }, + "name": "operations/projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-c/locations/us-central1-a/operations/${operationID}", + "response": { + "@type": "type.googleapis.com/google.bigtable.admin.v2.Cluster", + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-central1-c", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-c", + "serveNodes": 2, + "state": "READY" + } +} + +--- + +GRPC /google.bigtable.admin.v2.BigtableInstanceAdmin/PartialUpdateCluster + +{ + "cluster": { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-east1-b" + }, + "updateMask": "clusterConfig.clusterAutoscalingConfig" +} + +OK + +{ + "metadata": { + "@type": "type.googleapis.com/google.bigtable.admin.v2.PartialUpdateClusterMetadata", + "originalRequest": { + "cluster": { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-east1-b" + }, + "updateMask": "clusterConfig.clusterAutoscalingConfig" + }, + "requestTime": "2024-04-01T12:34:56.123456Z" + }, + "name": "operations/projects/${projectId}/instances/bt-${uniqueId}/clusters/us-east1-b/locations/us-central1-a/operations/${operationID}" +} + +--- + +GRPC /google.longrunning.Operations/GetOperation + +{ + "name": "operations/projects/${projectId}/instances/bt-${uniqueId}/clusters/us-east1-b/locations/us-central1-a/operations/${operationID}" +} + +OK + +{ + "done": true, + "metadata": { + "@type": "type.googleapis.com/google.bigtable.admin.v2.PartialUpdateClusterMetadata", + "finishTime": "2024-04-01T12:34:56.123456Z", + "originalRequest": { + "cluster": { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-east1-b" + }, + "updateMask": "clusterConfig.clusterAutoscalingConfig" + }, + "requestTime": "2024-04-01T12:34:56.123456Z" + }, + "name": "operations/projects/${projectId}/instances/bt-${uniqueId}/clusters/us-east1-b/locations/us-central1-a/operations/${operationID}", + "response": { + "@type": "type.googleapis.com/google.bigtable.admin.v2.Cluster", + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-east1-b", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-east1-b", + "serveNodes": 2, + "state": "READY" + } +} + +--- + +GRPC /google.bigtable.admin.v2.BigtableInstanceAdmin/PartialUpdateCluster + +{ + "cluster": { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-west1-a" + }, + "updateMask": "clusterConfig.clusterAutoscalingConfig" +} + +OK + +{ + "metadata": { + "@type": "type.googleapis.com/google.bigtable.admin.v2.PartialUpdateClusterMetadata", + "originalRequest": { + "cluster": { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-west1-a" + }, + "updateMask": "clusterConfig.clusterAutoscalingConfig" + }, + "requestTime": "2024-04-01T12:34:56.123456Z" + }, + "name": "operations/projects/${projectId}/instances/bt-${uniqueId}/clusters/us-west1-a/locations/us-central1-a/operations/${operationID}" +} + +--- + +GRPC /google.longrunning.Operations/GetOperation + +{ + "name": "operations/projects/${projectId}/instances/bt-${uniqueId}/clusters/us-west1-a/locations/us-central1-a/operations/${operationID}" +} + +OK + +{ + "done": true, + "metadata": { + "@type": "type.googleapis.com/google.bigtable.admin.v2.PartialUpdateClusterMetadata", + "finishTime": "2024-04-01T12:34:56.123456Z", + "originalRequest": { + "cluster": { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-west1-a" + }, + "updateMask": "clusterConfig.clusterAutoscalingConfig" + }, + "requestTime": "2024-04-01T12:34:56.123456Z" + }, + "name": "operations/projects/${projectId}/instances/bt-${uniqueId}/clusters/us-west1-a/locations/us-central1-a/operations/${operationID}", + "response": { + "@type": "type.googleapis.com/google.bigtable.admin.v2.Cluster", + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-west1-a", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-west1-a", + "serveNodes": 2, + "state": "READY" + } +} + +--- + +GRPC /google.bigtable.admin.v2.BigtableInstanceAdmin/ListInstances + +{ + "parent": "projects/${projectId}" +} + +OK + +{ + "instances": [ + { + "createTime": "2024-04-01T12:34:56.123456Z", + "displayName": "bigtableinstance", + "labels": { + "cnrm-test": "true", + "managed-by-cnrm": "true" + }, + "name": "projects/${projectId}/instances/bt-${uniqueId}", + "state": "READY", + "type": "PRODUCTION" + } + ] +} + +--- + +GRPC /google.bigtable.admin.v2.BigtableInstanceAdmin/ListClusters + +{ + "parent": "projects/${projectId}/instances/bt-${uniqueId}" +} + +OK + +{ + "clusters": [ + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 30, + "minServeNodes": 3 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 70, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-central1-a", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-a", + "serveNodes": 2, + "state": "READY" + }, + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-central1-c", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-c", + "serveNodes": 2, + "state": "READY" + }, + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-east1-b", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-east1-b", + "serveNodes": 2, + "state": "READY" + }, + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-west1-a", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-west1-a", + "serveNodes": 2, + "state": "READY" + } + ] +} + +--- + +GRPC /google.bigtable.admin.v2.BigtableInstanceAdmin/ListInstances + +{ + "parent": "projects/${projectId}" +} + +OK + +{ + "instances": [ + { + "createTime": "2024-04-01T12:34:56.123456Z", + "displayName": "bigtableinstance", + "labels": { + "cnrm-test": "true", + "managed-by-cnrm": "true" + }, + "name": "projects/${projectId}/instances/bt-${uniqueId}", + "state": "READY", + "type": "PRODUCTION" + } + ] +} + +--- + +GRPC /google.bigtable.admin.v2.BigtableInstanceAdmin/ListClusters + +{ + "parent": "projects/${projectId}/instances/bt-${uniqueId}" +} + +OK + +{ + "clusters": [ + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 30, + "minServeNodes": 3 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 70, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-central1-a", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-a", + "serveNodes": 2, + "state": "READY" + }, + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-central1-c", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-c", + "serveNodes": 2, + "state": "READY" + }, + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-east1-b", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-east1-b", + "serveNodes": 2, + "state": "READY" + }, + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-west1-a", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-west1-a", + "serveNodes": 2, + "state": "READY" + } + ] +} + +--- + +GRPC /google.bigtable.admin.v2.BigtableInstanceAdmin/ListInstances + +{ + "parent": "projects/${projectId}" +} + +OK + +{ + "instances": [ + { + "createTime": "2024-04-01T12:34:56.123456Z", + "displayName": "bigtableinstance", + "labels": { + "cnrm-test": "true", + "managed-by-cnrm": "true" + }, + "name": "projects/${projectId}/instances/bt-${uniqueId}", + "state": "READY", + "type": "PRODUCTION" + } + ] +} + +--- + +GRPC /google.bigtable.admin.v2.BigtableInstanceAdmin/ListClusters + +{ + "parent": "projects/${projectId}/instances/bt-${uniqueId}" +} + +OK + +{ + "clusters": [ + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 30, + "minServeNodes": 3 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 70, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-central1-a", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-a", + "serveNodes": 2, + "state": "READY" + }, + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-central1-c", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-central1-c", + "serveNodes": 2, + "state": "READY" + }, + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-east1-b", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-east1-b", + "serveNodes": 2, + "state": "READY" + }, + { + "clusterConfig": { + "clusterAutoscalingConfig": { + "autoscalingLimits": { + "maxServeNodes": 20, + "minServeNodes": 2 + }, + "autoscalingTargets": { + "cpuUtilizationPercent": 80, + "storageUtilizationGibPerNode": 2560 + } + } + }, + "defaultStorageType": "SSD", + "location": "projects/${projectId}/locations/us-west1-a", + "name": "projects/${projectId}/instances/bt-${uniqueId}/clusters/us-west1-a", + "serveNodes": 2, + "state": "READY" + } + ] +} + +--- + +GRPC /google.bigtable.admin.v2.BigtableInstanceAdmin/DeleteInstance + +{ + "name": "projects/${projectId}/instances/bt-${uniqueId}" +} + +OK + +{} \ No newline at end of file diff --git a/pkg/test/resourcefixture/testdata/basic/bigtable/v1beta1/bigtableinstance/bigtableinstanceautoscaling2/create.yaml b/pkg/test/resourcefixture/testdata/basic/bigtable/v1beta1/bigtableinstance/bigtableinstanceautoscaling2/create.yaml new file mode 100644 index 0000000000..81e6a36e3a --- /dev/null +++ b/pkg/test/resourcefixture/testdata/basic/bigtable/v1beta1/bigtableinstance/bigtableinstanceautoscaling2/create.yaml @@ -0,0 +1,55 @@ +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +apiVersion: bigtable.cnrm.cloud.google.com/v1beta1 +kind: BigtableInstance +metadata: + name: bigtableinstance +spec: + cluster: + - autoscalingConfig: + cpuTarget: 70 + maxNodes: 30 + minNodes: 3 + storageTarget: 2560 + clusterId: us-central1-a + storageType: SSD + zone: us-central1-a + - autoscalingConfig: + cpuTarget: 80 + maxNodes: 20 + minNodes: 2 + storageTarget: 2560 + clusterId: us-east1-b + storageType: SSD + zone: us-east1-b + - autoscalingConfig: + cpuTarget: 80 + maxNodes: 20 + minNodes: 2 + storageTarget: 2560 + clusterId: us-west1-a + storageType: SSD + zone: us-west1-a + - autoscalingConfig: + cpuTarget: 80 + maxNodes: 10 + minNodes: 2 + storageTarget: 2560 + clusterId: us-central1-c + storageType: SSD + zone: us-central1-c + displayName: bigtableinstance + instanceType: PRODUCTION + resourceID: bt-${uniqueId} \ No newline at end of file diff --git a/pkg/test/resourcefixture/testdata/basic/bigtable/v1beta1/bigtableinstance/bigtableinstanceautoscaling2/update.yaml b/pkg/test/resourcefixture/testdata/basic/bigtable/v1beta1/bigtableinstance/bigtableinstanceautoscaling2/update.yaml new file mode 100644 index 0000000000..056f3d78cb --- /dev/null +++ b/pkg/test/resourcefixture/testdata/basic/bigtable/v1beta1/bigtableinstance/bigtableinstanceautoscaling2/update.yaml @@ -0,0 +1,55 @@ +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +apiVersion: bigtable.cnrm.cloud.google.com/v1beta1 +kind: BigtableInstance +metadata: + name: bigtableinstance +spec: + cluster: + - autoscalingConfig: + cpuTarget: 70 + maxNodes: 30 + minNodes: 3 + storageTarget: 2560 + clusterId: us-central1-a + storageType: SSD + zone: us-central1-a + - autoscalingConfig: + cpuTarget: 80 + maxNodes: 20 + minNodes: 2 + storageTarget: 2560 + clusterId: us-east1-b + storageType: SSD + zone: us-east1-b + - autoscalingConfig: + cpuTarget: 80 + maxNodes: 20 + minNodes: 2 + storageTarget: 2560 + clusterId: us-west1-a + storageType: SSD + zone: us-west1-a + - autoscalingConfig: + cpuTarget: 80 + maxNodes: 20 + minNodes: 2 + storageTarget: 2560 + clusterId: us-central1-c + storageType: SSD + zone: us-central1-c + displayName: bigtableinstance + instanceType: PRODUCTION + resourceID: bt-${uniqueId} \ No newline at end of file