Skip to content

Commit

Permalink
rewrite - 9/20 refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
c2thorn committed Sep 20, 2024
1 parent e1416b1 commit 645a393
Show file tree
Hide file tree
Showing 34 changed files with 2,369 additions and 9 deletions.
16 changes: 15 additions & 1 deletion mmv1/products/cloudrun/go_Service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ examples:
cloud_run_service_name: 'cloudrun-srv'
test_env_vars:
project: 'PROJECT_NAME'
- name: 'cloud_run_service_gpu'
primary_resource_id: 'default'
primary_resource_name: 'fmt.Sprintf("tf-test-cloudrun-srv%s", context["random_suffix"])'
min_version: 'beta'
vars:
cloud_run_service_name: 'cloudrun-srv'
test_env_vars:
project: 'PROJECT_NAME'
- name: 'cloud_run_service_sql'
primary_resource_id: 'default'
primary_resource_name: 'fmt.Sprintf("tf-test-cloudrun-srv%s", context["random_suffix"])'
Expand Down Expand Up @@ -737,7 +745,13 @@ properties:
The name of the service to place in the gRPC HealthCheckRequest
(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).
If this is not specified, the default behavior is defined by gRPC.
- name: 'nodeSelector'
type: KeyValuePairs
description: |-
Node Selector describes the hardware requirements of the resources.
Use the following node selector keys to configure features on a Revision:
- `run.googleapis.com/accelerator` sets the [type of GPU](https://cloud.google.com/run/docs/configuring/services/gpu) required by the Revision to run.
min_version: 'beta'
- name: 'containerConcurrency'
type: Integer
description: |-
Expand Down
20 changes: 19 additions & 1 deletion mmv1/products/cloudrunv2/go_Service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ examples:
cloud_run_service_name: 'cloudrun-service'
ignore_read_extra:
- 'deletion_protection'
- name: 'cloudrunv2_service_gpu'
primary_resource_id: 'default'
primary_resource_name: 'fmt.Sprintf("tf-test-cloudrun-srv%s", context["random_suffix"])'
min_version: 'beta'
vars:
cloud_run_service_name: 'cloudrun-service'
ignore_read_extra:
- 'deletion_protection'
- name: 'cloudrunv2_service_probes'
primary_resource_id: 'default'
primary_resource_name: 'fmt.Sprintf("tf-test-cloudrun-srv%s", context["random_suffix"])'
Expand Down Expand Up @@ -495,7 +503,7 @@ properties:
- name: 'limits'
type: KeyValuePairs
description: |-
Only memory and CPU are supported. Use key `cpu` for CPU limit and `memory` for memory limit. Note: The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
Only memory, CPU, and nvidia.com/gpu are supported. Use key `cpu` for CPU limit, `memory` for memory limit, `nvidia.com/gpu` for gpu limit. Note: The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
default_from_api: true
- name: 'cpuIdle'
type: Boolean
Expand Down Expand Up @@ -904,6 +912,16 @@ properties:
type: String
description: |-
The Mesh resource name. For more information see https://cloud.google.com/service-mesh/docs/reference/network-services/rest/v1/projects.locations.meshes#resource:-mesh.
- name: 'nodeSelector'
type: NestedObject
description: Node Selector describes the hardware requirements of the resources.
min_version: 'beta'
properties:
- name: 'accelerator'
type: String
description:
The GPU to attach to an instance. See https://cloud.google.com/run/docs/configuring/services/gpu for configuring GPU.
required: true
- name: 'traffic'
type: Array
description: |-
Expand Down
Loading

0 comments on commit 645a393

Please sign in to comment.