From 3eb8f0e393d4c855fc339b420eb2e583abf1a95c Mon Sep 17 00:00:00 2001 From: Samir <85890442+sa-progress@users.noreply.github.com> Date: Tue, 6 Aug 2024 16:43:35 +0530 Subject: [PATCH] renamed resources Signed-off-by: Samir <85890442+sa-progress@users.noreply.github.com> --- mmv1/products/run/api.yaml | 1078 +---------------- .../google_run_service/google_run_service.erb | 6 +- .../google_run_service_attributes.erb | 2 +- .../google_run_services.erb | 4 +- 4 files changed, 7 insertions(+), 1083 deletions(-) diff --git a/mmv1/products/run/api.yaml b/mmv1/products/run/api.yaml index 1523e632d..f91821303 100644 --- a/mmv1/products/run/api.yaml +++ b/mmv1/products/run/api.yaml @@ -1,11 +1,11 @@ --- !ruby/object:Api::Product -name: run +name: Run display_name: run versions: - !ruby/object:Api::Product::Version name: ga - base_url: https://run.googleapis.com//v2/ + base_url: https://run.googleapis.com/v2/ scopes: - https://run.googleapis.com//auth/cloud-platform apis_required: @@ -13,1077 +13,3 @@ apis_required: name: https://run.googleapis.com/ url: https://console.cloud.google.com/apis/library/run.googleapis.com/ objects: - - - !ruby/object:Api::Resource - name: ProjectLocationService - base_url: '{{+parent}}/services' - self_link: '{{+name}}' - references: !ruby/object:Api::Resource::ReferenceLinks - guides: - 'Official Documentation': - api: 'https://cloud.google.com/run/docs' - async: !ruby/object:Api::OpAsync - operation: !ruby/object:Api::OpAsync::Operation - path: 'name' - base_url: '{op_id}' - wait_ms: 1000 - result: !ruby/object:Api::OpAsync::Result - path: 'response' - resource_inside_response: true - status: !ruby/object:Api::OpAsync::Status - path: 'done' - complete: True - allowed: - - True - - False - error: !ruby/object:Api::OpAsync::Error - path: 'error' - message: 'message' - description: |- - Service acts as a top-level container that manages a set of Routes and Configurations which implement a network service. Service exists to provide a singular abstraction which can be access controlled, reasoned about, and which encapsulates software lifecycle decisions such as rollout policy and team resource ownership. Service acts only as an orchestrator of the underlying Routes and Configurations (much as a kubernetes Deployment orchestrates ReplicaSets). The Service's controller will track the statuses of its owned Configuration and Route, reflecting their statuses and conditions as its own. - properties: - - - !ruby/object:Api::Type::String - name: 'apiVersion' - description: | - The API version for this call. It must be "serving.knative.dev/v1". - - !ruby/object:Api::Type::String - name: 'kind' - description: | - The kind of resource. It must be "Service". - - !ruby/object:Api::Type::NestedObject - name: 'metadata' - description: | - google.cloud.run.meta.v1.ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. - properties: - - !ruby/object:Api::Type::String - name: 'name' - description: | - Required. The name of the resource. Name is required when creating top-level resources (Service, Job), must be unique within a Cloud Run project/region, and cannot be changed once created. - - !ruby/object:Api::Type::String - name: 'generateName' - description: | - Not supported by Cloud Run - - !ruby/object:Api::Type::String - name: 'namespace' - description: | - Required. Defines the space within each name must be unique within a Cloud Run region. In Cloud Run, it must be project ID or number. - - !ruby/object:Api::Type::String - name: 'selfLink' - description: | - URL representing this object. - - !ruby/object:Api::Type::String - name: 'uid' - description: | - Unique, system-generated identifier for this resource. - - !ruby/object:Api::Type::String - name: 'resourceVersion' - description: | - Opaque, system-generated value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server or omit the value to disable conflict-detection. - - !ruby/object:Api::Type::Integer - name: 'generation' - description: | - A system-provided sequence number representing a specific generation of the desired state. - - !ruby/object:Api::Type::String - name: 'creationTimestamp' - description: | - UTC timestamp representing the server time when this object was created. - - !ruby/object:Api::Type::NestedObject - name: 'labels' - description: | - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes. - properties: - - !ruby/object:Api::Type::String - name: 'additionalProperties' - description: | - - - !ruby/object:Api::Type::NestedObject - name: 'annotations' - description: | - Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. In Cloud Run, annotations with 'run.googleapis.com/' and 'autoscaling.knative.dev' are restricted, and the accepted annotations will be different depending on the resource type. * `autoscaling.knative.dev/maxScale`: Revision. * `autoscaling.knative.dev/minScale`: Revision. * `run.googleapis.com/binary-authorization-breakglass`: Service, Job, * `run.googleapis.com/binary-authorization`: Service, Job, Execution. * `run.googleapis.com/client-name`: All resources. * `run.googleapis.com/cloudsql-instances`: Revision, Execution. * `run.googleapis.com/container-dependencies`: Revision . * `run.googleapis.com/cpu-throttling`: Revision. * `run.googleapis.com/custom-audiences`: Service. * `run.googleapis.com/default-url-disabled`: Service. * `run.googleapis.com/description`: Service. * `run.googleapis.com/encryption-key-shutdown-hours`: Revision * `run.googleapis.com/encryption-key`: Revision, Execution. * `run.googleapis.com/execution-environment`: Revision, Execution. * `run.googleapis.com/gc-traffic-tags`: Service. * `run.googleapis.com/ingress`: Service. * `run.googleapis.com/launch-stage`: Service, Job. * `run.googleapis.com/minScale`: Service (ALPHA) * `run.googleapis.com/network-interfaces`: Revision, Execution. * `run.googleapis.com/post-key-revocation-action-type`: Revision. * `run.googleapis.com/secrets`: Revision, Execution. * `run.googleapis.com/secure-session-agent`: Revision. * `run.googleapis.com/sessionAffinity`: Revision. * `run.googleapis.com/startup-cpu-boost`: Revision. * `run.googleapis.com/vpc-access-connector`: Revision, Execution. * `run.googleapis.com/vpc-access-egress`: Revision, Execution. - properties: - - !ruby/object:Api::Type::String - name: 'additionalProperties' - description: | - - - !ruby/object:Api::Type::Array - name: 'ownerReferences' - description: | - Not supported by Cloud Run - item_type: !ruby/object:Api::Type::NestedObject - properties: - - !ruby/object:Api::Type::String - name: 'apiVersion' - description: | - This is not supported or used by Cloud Run. - - !ruby/object:Api::Type::String - name: 'kind' - description: | - This is not supported or used by Cloud Run. - - !ruby/object:Api::Type::String - name: 'name' - description: | - This is not supported or used by Cloud Run. - - !ruby/object:Api::Type::String - name: 'uid' - description: | - This is not supported or used by Cloud Run. - - !ruby/object:Api::Type::Boolean - name: 'controller' - description: | - This is not supported or used by Cloud Run. - - !ruby/object:Api::Type::Boolean - name: 'blockOwnerDeletion' - description: | - This is not supported or used by Cloud Run. - - !ruby/object:Api::Type::String - name: 'deletionTimestamp' - description: | - The read-only soft deletion timestamp for this resource. In Cloud Run, users are not able to set this field. Instead, they must call the corresponding Delete API. - - !ruby/object:Api::Type::Integer - name: 'deletionGracePeriodSeconds' - description: | - Not supported by Cloud Run - - !ruby/object:Api::Type::Array - name: 'finalizers' - description: | - Not supported by Cloud Run - item_type: Api::Type::String - - !ruby/object:Api::Type::String - name: 'clusterName' - description: | - Not supported by Cloud Run - - !ruby/object:Api::Type::NestedObject - name: 'spec' - description: | - ServiceSpec holds the desired state of the Route (from the client), which is used to manipulate the underlying Route and Configuration(s). - properties: - - !ruby/object:Api::Type::NestedObject - name: 'template' - description: | - RevisionTemplateSpec describes the data a revision should have when created from a template. - properties: - - !ruby/object:Api::Type::NestedObject - name: 'metadata' - description: | - google.cloud.run.meta.v1.ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. - properties: - - !ruby/object:Api::Type::String - name: 'name' - description: | - Required. The name of the resource. Name is required when creating top-level resources (Service, Job), must be unique within a Cloud Run project/region, and cannot be changed once created. - - !ruby/object:Api::Type::String - name: 'generateName' - description: | - Not supported by Cloud Run - - !ruby/object:Api::Type::String - name: 'namespace' - description: | - Required. Defines the space within each name must be unique within a Cloud Run region. In Cloud Run, it must be project ID or number. - - !ruby/object:Api::Type::String - name: 'selfLink' - description: | - URL representing this object. - - !ruby/object:Api::Type::String - name: 'uid' - description: | - Unique, system-generated identifier for this resource. - - !ruby/object:Api::Type::String - name: 'resourceVersion' - description: | - Opaque, system-generated value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server or omit the value to disable conflict-detection. - - !ruby/object:Api::Type::Integer - name: 'generation' - description: | - A system-provided sequence number representing a specific generation of the desired state. - - !ruby/object:Api::Type::String - name: 'creationTimestamp' - description: | - UTC timestamp representing the server time when this object was created. - - !ruby/object:Api::Type::NestedObject - name: 'labels' - description: | - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes. - properties: - - !ruby/object:Api::Type::String - name: 'additionalProperties' - description: | - - - !ruby/object:Api::Type::NestedObject - name: 'annotations' - description: | - Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. In Cloud Run, annotations with 'run.googleapis.com/' and 'autoscaling.knative.dev' are restricted, and the accepted annotations will be different depending on the resource type. * `autoscaling.knative.dev/maxScale`: Revision. * `autoscaling.knative.dev/minScale`: Revision. * `run.googleapis.com/binary-authorization-breakglass`: Service, Job, * `run.googleapis.com/binary-authorization`: Service, Job, Execution. * `run.googleapis.com/client-name`: All resources. * `run.googleapis.com/cloudsql-instances`: Revision, Execution. * `run.googleapis.com/container-dependencies`: Revision . * `run.googleapis.com/cpu-throttling`: Revision. * `run.googleapis.com/custom-audiences`: Service. * `run.googleapis.com/default-url-disabled`: Service. * `run.googleapis.com/description`: Service. * `run.googleapis.com/encryption-key-shutdown-hours`: Revision * `run.googleapis.com/encryption-key`: Revision, Execution. * `run.googleapis.com/execution-environment`: Revision, Execution. * `run.googleapis.com/gc-traffic-tags`: Service. * `run.googleapis.com/ingress`: Service. * `run.googleapis.com/launch-stage`: Service, Job. * `run.googleapis.com/minScale`: Service (ALPHA) * `run.googleapis.com/network-interfaces`: Revision, Execution. * `run.googleapis.com/post-key-revocation-action-type`: Revision. * `run.googleapis.com/secrets`: Revision, Execution. * `run.googleapis.com/secure-session-agent`: Revision. * `run.googleapis.com/sessionAffinity`: Revision. * `run.googleapis.com/startup-cpu-boost`: Revision. * `run.googleapis.com/vpc-access-connector`: Revision, Execution. * `run.googleapis.com/vpc-access-egress`: Revision, Execution. - properties: - - !ruby/object:Api::Type::String - name: 'additionalProperties' - description: | - - - !ruby/object:Api::Type::Array - name: 'ownerReferences' - description: | - Not supported by Cloud Run - item_type: !ruby/object:Api::Type::NestedObject - properties: - - !ruby/object:Api::Type::String - name: 'apiVersion' - description: | - This is not supported or used by Cloud Run. - - !ruby/object:Api::Type::String - name: 'kind' - description: | - This is not supported or used by Cloud Run. - - !ruby/object:Api::Type::String - name: 'name' - description: | - This is not supported or used by Cloud Run. - - !ruby/object:Api::Type::String - name: 'uid' - description: | - This is not supported or used by Cloud Run. - - !ruby/object:Api::Type::Boolean - name: 'controller' - description: | - This is not supported or used by Cloud Run. - - !ruby/object:Api::Type::Boolean - name: 'blockOwnerDeletion' - description: | - This is not supported or used by Cloud Run. - - !ruby/object:Api::Type::String - name: 'deletionTimestamp' - description: | - The read-only soft deletion timestamp for this resource. In Cloud Run, users are not able to set this field. Instead, they must call the corresponding Delete API. - - !ruby/object:Api::Type::Integer - name: 'deletionGracePeriodSeconds' - description: | - Not supported by Cloud Run - - !ruby/object:Api::Type::Array - name: 'finalizers' - description: | - Not supported by Cloud Run - item_type: Api::Type::String - - !ruby/object:Api::Type::String - name: 'clusterName' - description: | - Not supported by Cloud Run - - !ruby/object:Api::Type::NestedObject - name: 'spec' - description: | - RevisionSpec holds the desired state of the Revision (from the client). - properties: - - !ruby/object:Api::Type::Integer - name: 'containerConcurrency' - description: | - ContainerConcurrency specifies the maximum allowed in-flight (concurrent) requests per container instance of the Revision. If not specified or 0, defaults to 80 when requested CPU >= 1 and defaults to 1 when requested CPU < 1. - - !ruby/object:Api::Type::Integer - name: 'timeoutSeconds' - description: | - TimeoutSeconds holds the max duration the instance is allowed for responding to a request. Cloud Run: defaults to 300 seconds (5 minutes). Maximum allowed value is 3600 seconds (1 hour). - - !ruby/object:Api::Type::String - name: 'serviceAccountName' - description: | - Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account. - - !ruby/object:Api::Type::Array - name: 'containers' - description: | - Required. Containers holds the list which define the units of execution for this Revision. In the context of a Revision, we disallow a number of fields on this Container, including: name and lifecycle. - item_type: !ruby/object:Api::Type::NestedObject - properties: - - !ruby/object:Api::Type::String - name: 'name' - description: | - Name of the container specified as a DNS_LABEL (RFC 1123). - - !ruby/object:Api::Type::String - name: 'image' - description: | - Required. Name of the container image in Dockerhub, Google Artifact Registry, or Google Container Registry. If the host is not provided, Dockerhub is assumed. - - !ruby/object:Api::Type::Array - name: 'command' - description: | - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references are not supported in Cloud Run. - item_type: Api::Type::String - - !ruby/object:Api::Type::Array - name: 'args' - description: | - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references are not supported in Cloud Run. - item_type: Api::Type::String - - !ruby/object:Api::Type::Array - name: 'env' - description: | - List of environment variables to set in the container. EnvVar with duplicate names are generally allowed; if referencing a secret, the name must be unique for the container. For non-secret EnvVar names, the Container will only get the last-declared one. - item_type: !ruby/object:Api::Type::NestedObject - properties: - - !ruby/object:Api::Type::String - name: 'name' - description: | - Required. Name of the environment variable. - - !ruby/object:Api::Type::String - name: 'value' - description: | - Value of the environment variable. Defaults to "". Variable references are not supported in Cloud Run. - - !ruby/object:Api::Type::NestedObject - name: 'valueFrom' - description: | - EnvVarSource represents a source for the value of an EnvVar. - properties: - - !ruby/object:Api::Type::NestedObject - name: 'configMapKeyRef' - description: | - Not supported by Cloud Run. - properties: - - !ruby/object:Api::Type::NestedObject - name: 'localObjectReference' - description: | - Not supported by Cloud Run. LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. - properties: - - !ruby/object:Api::Type::String - name: 'name' - description: | - Name of the referent. - - !ruby/object:Api::Type::String - name: 'key' - description: | - Required. Not supported by Cloud Run. - - !ruby/object:Api::Type::Boolean - name: 'optional' - description: | - Not supported by Cloud Run. - - !ruby/object:Api::Type::String - name: 'name' - description: | - Required. Not supported by Cloud Run. - - !ruby/object:Api::Type::NestedObject - name: 'secretKeyRef' - description: | - SecretKeySelector selects a key of a Secret. - properties: - - !ruby/object:Api::Type::NestedObject - name: 'localObjectReference' - description: | - Not supported by Cloud Run. LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. - properties: - - !ruby/object:Api::Type::String - name: 'name' - description: | - Name of the referent. - - !ruby/object:Api::Type::String - name: 'key' - description: | - Required. A Cloud Secret Manager secret version. Must be 'latest' for the latest version, an integer for a specific version, or a version alias. The key of the secret to select from. Must be a valid secret key. - - !ruby/object:Api::Type::Boolean - name: 'optional' - description: | - Specify whether the Secret or its key must be defined. - - !ruby/object:Api::Type::String - name: 'name' - description: | - The name of the secret in Cloud Secret Manager. By default, the secret is assumed to be in the same project. If the secret is in another project, you must define an alias. An alias definition has the form: :projects//secrets/. If multiple alias definitions are needed, they must be separated by commas. The alias definitions must be set on the run.googleapis.com/secrets annotation. The name of the secret in the pod's namespace to select from. - - !ruby/object:Api::Type::NestedObject - name: 'resources' - description: | - ResourceRequirements describes the compute resource requirements. - properties: - - !ruby/object:Api::Type::NestedObject - name: 'limits' - description: | - Limits describes the maximum amount of compute resources allowed. Only 'cpu' and 'memory' keys are supported. * For supported 'cpu' values, go to https://cloud.google.com/run/docs/configuring/cpu. * For supported 'memory' values and syntax, go to https://cloud.google.com/run/docs/configuring/memory-limits - properties: - - !ruby/object:Api::Type::String - name: 'additionalProperties' - description: | - - - !ruby/object:Api::Type::NestedObject - name: 'requests' - description: | - Requests describes the minimum amount of compute resources required. Only `cpu` and `memory` are supported. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. * For supported 'cpu' values, go to https://cloud.google.com/run/docs/configuring/cpu. * For supported 'memory' values and syntax, go to https://cloud.google.com/run/docs/configuring/memory-limits - properties: - - !ruby/object:Api::Type::String - name: 'additionalProperties' - description: | - - - !ruby/object:Api::Type::String - name: 'workingDir' - description: | - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. - - !ruby/object:Api::Type::Array - name: 'ports' - description: | - List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on. - item_type: !ruby/object:Api::Type::NestedObject - properties: - - !ruby/object:Api::Type::String - name: 'name' - description: | - If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c". - - !ruby/object:Api::Type::Integer - name: 'containerPort' - description: | - Port number the container listens on. If present, this must be a valid port number, 0 < x < 65536. If not present, it will default to port 8080. For more information, see https://cloud.google.com/run/docs/container-contract#port - - !ruby/object:Api::Type::String - name: 'protocol' - description: | - Protocol for port. Must be "TCP". Defaults to "TCP". - - !ruby/object:Api::Type::Array - name: 'envFrom' - description: | - Not supported by Cloud Run. - item_type: !ruby/object:Api::Type::NestedObject - properties: - - !ruby/object:Api::Type::String - name: 'prefix' - description: | - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - - !ruby/object:Api::Type::NestedObject - name: 'configMapRef' - description: | - Not supported by Cloud Run. ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. - properties: - - !ruby/object:Api::Type::NestedObject - name: 'localObjectReference' - description: | - Not supported by Cloud Run. LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. - properties: - - !ruby/object:Api::Type::String - name: 'name' - description: | - Name of the referent. - - !ruby/object:Api::Type::Boolean - name: 'optional' - description: | - Specify whether the ConfigMap must be defined. - - !ruby/object:Api::Type::String - name: 'name' - description: | - The ConfigMap to select from. - - !ruby/object:Api::Type::NestedObject - name: 'secretRef' - description: | - Not supported by Cloud Run. SecretEnvSource selects a Secret to populate the environment variables with. The contents of the target Secret's Data field will represent the key-value pairs as environment variables. - properties: - - !ruby/object:Api::Type::NestedObject - name: 'localObjectReference' - description: | - Not supported by Cloud Run. LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. - properties: - - !ruby/object:Api::Type::String - name: 'name' - description: | - Name of the referent. - - !ruby/object:Api::Type::Boolean - name: 'optional' - description: | - Specify whether the Secret must be defined - - !ruby/object:Api::Type::String - name: 'name' - description: | - The Secret to select from. - - !ruby/object:Api::Type::Array - name: 'volumeMounts' - description: | - Volume to mount into the container's filesystem. Only supports SecretVolumeSources. Pod volumes to mount into the container's filesystem. - item_type: !ruby/object:Api::Type::NestedObject - properties: - - !ruby/object:Api::Type::String - name: 'name' - description: | - Required. The name of the volume. There must be a corresponding Volume with the same name. - - !ruby/object:Api::Type::Boolean - name: 'readOnly' - description: | - Sets the mount to be read-only or read-write. Not used by Cloud Run. - - !ruby/object:Api::Type::String - name: 'mountPath' - description: | - Required. Path within the container at which the volume should be mounted. Must not contain ':'. - - !ruby/object:Api::Type::String - name: 'subPath' - description: | - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - - !ruby/object:Api::Type::NestedObject - name: 'livenessProbe' - description: | - Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. - properties: - - !ruby/object:Api::Type::Integer - name: 'initialDelaySeconds' - description: | - Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. - - !ruby/object:Api::Type::Integer - name: 'timeoutSeconds' - description: | - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than period_seconds; if period_seconds is not set, must be less or equal than 10. - - !ruby/object:Api::Type::Integer - name: 'periodSeconds' - description: | - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeout_seconds. - - !ruby/object:Api::Type::Integer - name: 'successThreshold' - description: | - Minimum consecutive successes for the probe to be considered successful after having failed. Must be 1 if set. - - !ruby/object:Api::Type::Integer - name: 'failureThreshold' - description: | - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - - !ruby/object:Api::Type::NestedObject - name: 'exec' - description: | - Not supported by Cloud Run. ExecAction describes a "run in container" action. - properties: - - !ruby/object:Api::Type::Array - name: 'command' - description: | - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - item_type: Api::Type::String - - !ruby/object:Api::Type::NestedObject - name: 'httpGet' - description: | - HTTPGetAction describes an action based on HTTP Get requests. - properties: - - !ruby/object:Api::Type::String - name: 'path' - description: | - Path to access on the HTTP server. - - !ruby/object:Api::Type::String - name: 'host' - description: | - Not supported by Cloud Run. - - !ruby/object:Api::Type::String - name: 'scheme' - description: | - Not supported by Cloud Run. - - !ruby/object:Api::Type::Array - name: 'httpHeaders' - description: | - Custom headers to set in the request. HTTP allows repeated headers. - item_type: !ruby/object:Api::Type::NestedObject - properties: - - !ruby/object:Api::Type::String - name: 'name' - description: | - Required. The header field name - - !ruby/object:Api::Type::String - name: 'value' - description: | - The header field value - - !ruby/object:Api::Type::Integer - name: 'port' - description: | - Port number to access on the container. Number must be in the range 1 to 65535. - - !ruby/object:Api::Type::NestedObject - name: 'tcpSocket' - description: | - TCPSocketAction describes an action based on opening a socket - properties: - - !ruby/object:Api::Type::Integer - name: 'port' - description: | - Port number to access on the container. Number must be in the range 1 to 65535. - - !ruby/object:Api::Type::String - name: 'host' - description: | - Not supported by Cloud Run. - - !ruby/object:Api::Type::NestedObject - name: 'grpc' - description: | - GRPCAction describes an action involving a GRPC port. - properties: - - !ruby/object:Api::Type::Integer - name: 'port' - description: | - Port number of the gRPC service. Number must be in the range 1 to 65535. - - !ruby/object:Api::Type::String - name: 'service' - description: | - Service is the name of the service to place in the gRPC HealthCheckRequest. If this is not specified, the default behavior is defined by gRPC. - - !ruby/object:Api::Type::NestedObject - name: 'readinessProbe' - description: | - Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. - properties: - - !ruby/object:Api::Type::Integer - name: 'initialDelaySeconds' - description: | - Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. - - !ruby/object:Api::Type::Integer - name: 'timeoutSeconds' - description: | - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than period_seconds; if period_seconds is not set, must be less or equal than 10. - - !ruby/object:Api::Type::Integer - name: 'periodSeconds' - description: | - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeout_seconds. - - !ruby/object:Api::Type::Integer - name: 'successThreshold' - description: | - Minimum consecutive successes for the probe to be considered successful after having failed. Must be 1 if set. - - !ruby/object:Api::Type::Integer - name: 'failureThreshold' - description: | - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - - !ruby/object:Api::Type::NestedObject - name: 'exec' - description: | - Not supported by Cloud Run. ExecAction describes a "run in container" action. - properties: - - !ruby/object:Api::Type::Array - name: 'command' - description: | - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - item_type: Api::Type::String - - !ruby/object:Api::Type::NestedObject - name: 'httpGet' - description: | - HTTPGetAction describes an action based on HTTP Get requests. - properties: - - !ruby/object:Api::Type::String - name: 'path' - description: | - Path to access on the HTTP server. - - !ruby/object:Api::Type::String - name: 'host' - description: | - Not supported by Cloud Run. - - !ruby/object:Api::Type::String - name: 'scheme' - description: | - Not supported by Cloud Run. - - !ruby/object:Api::Type::Array - name: 'httpHeaders' - description: | - Custom headers to set in the request. HTTP allows repeated headers. - item_type: !ruby/object:Api::Type::NestedObject - properties: - - !ruby/object:Api::Type::String - name: 'name' - description: | - Required. The header field name - - !ruby/object:Api::Type::String - name: 'value' - description: | - The header field value - - !ruby/object:Api::Type::Integer - name: 'port' - description: | - Port number to access on the container. Number must be in the range 1 to 65535. - - !ruby/object:Api::Type::NestedObject - name: 'tcpSocket' - description: | - TCPSocketAction describes an action based on opening a socket - properties: - - !ruby/object:Api::Type::Integer - name: 'port' - description: | - Port number to access on the container. Number must be in the range 1 to 65535. - - !ruby/object:Api::Type::String - name: 'host' - description: | - Not supported by Cloud Run. - - !ruby/object:Api::Type::NestedObject - name: 'grpc' - description: | - GRPCAction describes an action involving a GRPC port. - properties: - - !ruby/object:Api::Type::Integer - name: 'port' - description: | - Port number of the gRPC service. Number must be in the range 1 to 65535. - - !ruby/object:Api::Type::String - name: 'service' - description: | - Service is the name of the service to place in the gRPC HealthCheckRequest. If this is not specified, the default behavior is defined by gRPC. - - !ruby/object:Api::Type::NestedObject - name: 'startupProbe' - description: | - Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. - properties: - - !ruby/object:Api::Type::Integer - name: 'initialDelaySeconds' - description: | - Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. - - !ruby/object:Api::Type::Integer - name: 'timeoutSeconds' - description: | - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than period_seconds; if period_seconds is not set, must be less or equal than 10. - - !ruby/object:Api::Type::Integer - name: 'periodSeconds' - description: | - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeout_seconds. - - !ruby/object:Api::Type::Integer - name: 'successThreshold' - description: | - Minimum consecutive successes for the probe to be considered successful after having failed. Must be 1 if set. - - !ruby/object:Api::Type::Integer - name: 'failureThreshold' - description: | - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - - !ruby/object:Api::Type::NestedObject - name: 'exec' - description: | - Not supported by Cloud Run. ExecAction describes a "run in container" action. - properties: - - !ruby/object:Api::Type::Array - name: 'command' - description: | - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - item_type: Api::Type::String - - !ruby/object:Api::Type::NestedObject - name: 'httpGet' - description: | - HTTPGetAction describes an action based on HTTP Get requests. - properties: - - !ruby/object:Api::Type::String - name: 'path' - description: | - Path to access on the HTTP server. - - !ruby/object:Api::Type::String - name: 'host' - description: | - Not supported by Cloud Run. - - !ruby/object:Api::Type::String - name: 'scheme' - description: | - Not supported by Cloud Run. - - !ruby/object:Api::Type::Array - name: 'httpHeaders' - description: | - Custom headers to set in the request. HTTP allows repeated headers. - item_type: !ruby/object:Api::Type::NestedObject - properties: - - !ruby/object:Api::Type::String - name: 'name' - description: | - Required. The header field name - - !ruby/object:Api::Type::String - name: 'value' - description: | - The header field value - - !ruby/object:Api::Type::Integer - name: 'port' - description: | - Port number to access on the container. Number must be in the range 1 to 65535. - - !ruby/object:Api::Type::NestedObject - name: 'tcpSocket' - description: | - TCPSocketAction describes an action based on opening a socket - properties: - - !ruby/object:Api::Type::Integer - name: 'port' - description: | - Port number to access on the container. Number must be in the range 1 to 65535. - - !ruby/object:Api::Type::String - name: 'host' - description: | - Not supported by Cloud Run. - - !ruby/object:Api::Type::NestedObject - name: 'grpc' - description: | - GRPCAction describes an action involving a GRPC port. - properties: - - !ruby/object:Api::Type::Integer - name: 'port' - description: | - Port number of the gRPC service. Number must be in the range 1 to 65535. - - !ruby/object:Api::Type::String - name: 'service' - description: | - Service is the name of the service to place in the gRPC HealthCheckRequest. If this is not specified, the default behavior is defined by gRPC. - - !ruby/object:Api::Type::String - name: 'terminationMessagePath' - description: | - Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. - - !ruby/object:Api::Type::String - name: 'terminationMessagePolicy' - description: | - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - - !ruby/object:Api::Type::String - name: 'imagePullPolicy' - description: | - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. - - !ruby/object:Api::Type::NestedObject - name: 'securityContext' - description: | - Not supported by Cloud Run. SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence. - properties: - - !ruby/object:Api::Type::Integer - name: 'runAsUser' - description: | - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - !ruby/object:Api::Type::Array - name: 'volumes' - description: | - - item_type: !ruby/object:Api::Type::NestedObject - properties: - - !ruby/object:Api::Type::String - name: 'name' - description: | - Volume's name. In Cloud Run Fully Managed, the name 'cloudsql' is reserved. - - !ruby/object:Api::Type::NestedObject - name: 'secret' - description: | - A volume representing a secret stored in Google Secret Manager. The secret's value will be presented as the content of a file whose name is defined in the item path. If no items are defined, the name of the file is the secret_name. The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. - properties: - - !ruby/object:Api::Type::String - name: 'secretName' - description: | - The name of the secret in Cloud Secret Manager. By default, the secret is assumed to be in the same project. If the secret is in another project, you must define an alias. An alias definition has the form: :projects//secrets/. If multiple alias definitions are needed, they must be separated by commas. The alias definitions must be set on the run.googleapis.com/secrets annotation. Name of the secret in the container's namespace to use. - - !ruby/object:Api::Type::Array - name: 'items' - description: | - A list of secret versions to mount in the volume. If no items are specified, the volume will expose a file with the same name as the secret name. The contents of the file will be the data in the latest version of the secret. If items are specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify both a key and a path. - item_type: !ruby/object:Api::Type::NestedObject - properties: - - !ruby/object:Api::Type::String - name: 'key' - description: | - The Cloud Secret Manager secret version. Can be 'latest' for the latest value, or an integer or a secret alias for a specific version. The key to project. - - !ruby/object:Api::Type::String - name: 'path' - description: | - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - !ruby/object:Api::Type::Integer - name: 'mode' - description: | - (Optional) Mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used. Notes * Internally, a umask of 0222 will be applied to any non-zero value. * This is an integer representation of the mode bits. So, the octal integer value should look exactly as the chmod numeric notation with a leading zero. Some examples: for chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10). For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). * This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - - !ruby/object:Api::Type::Integer - name: 'defaultMode' - description: | - Integer representation of mode bits to use on created files by default. Must be a value between 01 and 0777 (octal). If 0 or not set, it will default to 0444. Directories within the path are not affected by this setting. Notes * Internally, a umask of 0222 will be applied to any non-zero value. * This is an integer representation of the mode bits. So, the octal integer value should look exactly as the chmod numeric notation with a leading zero. Some examples: for chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10). For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). * This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - - !ruby/object:Api::Type::Boolean - name: 'optional' - description: | - Not supported by Cloud Run. - - !ruby/object:Api::Type::NestedObject - name: 'configMap' - description: | - Not supported by Cloud Run. Adapts a ConfigMap into a volume. The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. - properties: - - !ruby/object:Api::Type::String - name: 'name' - description: | - Name of the config. - - !ruby/object:Api::Type::Array - name: 'items' - description: | - (Optional) If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified that is not present in the Secret, the volume setup will error unless it is marked optional. - item_type: !ruby/object:Api::Type::NestedObject - properties: - - !ruby/object:Api::Type::String - name: 'key' - description: | - The Cloud Secret Manager secret version. Can be 'latest' for the latest value, or an integer or a secret alias for a specific version. The key to project. - - !ruby/object:Api::Type::String - name: 'path' - description: | - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - !ruby/object:Api::Type::Integer - name: 'mode' - description: | - (Optional) Mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used. Notes * Internally, a umask of 0222 will be applied to any non-zero value. * This is an integer representation of the mode bits. So, the octal integer value should look exactly as the chmod numeric notation with a leading zero. Some examples: for chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10). For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). * This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - - !ruby/object:Api::Type::Integer - name: 'defaultMode' - description: | - (Optional) Integer representation of mode bits to use on created files by default. Must be a value between 01 and 0777 (octal). If 0 or not set, it will default to 0644. Directories within the path are not affected by this setting. Notes * Internally, a umask of 0222 will be applied to any non-zero value. * This is an integer representation of the mode bits. So, the octal integer value should look exactly as the chmod numeric notation with a leading zero. Some examples: for chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10). For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). * This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - - !ruby/object:Api::Type::Boolean - name: 'optional' - description: | - (Optional) Specify whether the Secret or its keys must be defined. - - !ruby/object:Api::Type::NestedObject - name: 'emptyDir' - description: | - In memory (tmpfs) ephemeral storage. It is ephemeral in the sense that when the sandbox is taken down, the data is destroyed with it (it does not persist across sandbox runs). - properties: - - !ruby/object:Api::Type::String - name: 'medium' - description: | - The medium on which the data is stored. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - - !ruby/object:Api::Type::String - name: 'sizeLimit' - description: | - Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers. The default is nil which means that the limit is undefined. More info: https://cloud.google.com/run/docs/configuring/in-memory-volumes#configure-volume. Info in Kubernetes: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir - - !ruby/object:Api::Type::NestedObject - name: 'nfs' - description: | - Represents a persistent volume that will be mounted using NFS. This volume will be shared between all instances of the resource and data will not be deleted when the instance is shut down. - properties: - - !ruby/object:Api::Type::String - name: 'server' - description: | - Hostname or IP address of the NFS server. - - !ruby/object:Api::Type::String - name: 'path' - description: | - Path that is exported by the NFS server. - - !ruby/object:Api::Type::Boolean - name: 'readOnly' - description: | - If true, mount the NFS volume as read only. Defaults to false. - - !ruby/object:Api::Type::NestedObject - name: 'csi' - description: | - Storage volume source using the Container Storage Interface. - properties: - - !ruby/object:Api::Type::String - name: 'driver' - description: | - name of the CSI driver for the requested storage system. Cloud Run supports the following drivers: * gcsfuse.run.googleapis.com : Mount a Cloud Storage Bucket as a volume. - - !ruby/object:Api::Type::Boolean - name: 'readOnly' - description: | - If true, mount the volume as read only. Defaults to false. - - !ruby/object:Api::Type::NestedObject - name: 'volumeAttributes' - description: | - stores driver specific attributes. For Google Cloud Storage volumes, the following attributes are supported: * bucketName: the name of the Cloud Storage bucket to mount. The Cloud Run Service identity must have access to this bucket. - properties: - - !ruby/object:Api::Type::String - name: 'additionalProperties' - description: | - - - !ruby/object:Api::Type::String - name: 'runtimeClassName' - description: | - Runtime. Leave unset for default. - - !ruby/object:Api::Type::Boolean - name: 'enableServiceLinks' - description: | - Not supported by Cloud Run. - - !ruby/object:Api::Type::Array - name: 'imagePullSecrets' - description: | - Not supported by Cloud Run. - item_type: !ruby/object:Api::Type::NestedObject - properties: - - !ruby/object:Api::Type::String - name: 'name' - description: | - Name of the referent. - - !ruby/object:Api::Type::NestedObject - name: 'nodeSelector' - description: | - Optional. The Node Selector configuration. Map of selector key to a value which matches a node. - properties: - - !ruby/object:Api::Type::String - name: 'additionalProperties' - description: | - - - !ruby/object:Api::Type::Array - name: 'traffic' - description: | - Specifies how to distribute traffic over a collection of Knative Revisions and Configurations to the Service's main URL. - item_type: !ruby/object:Api::Type::NestedObject - properties: - - !ruby/object:Api::Type::String - name: 'configurationName' - description: | - [Deprecated] Not supported in Cloud Run. It must be empty. - - !ruby/object:Api::Type::String - name: 'revisionName' - description: | - Points this traffic target to a specific Revision. This field is mutually exclusive with latest_revision. - - !ruby/object:Api::Type::Integer - name: 'percent' - description: | - Percent specifies percent of the traffic to this Revision or Configuration. This defaults to zero if unspecified. - - !ruby/object:Api::Type::String - name: 'tag' - description: | - Tag is used to expose a dedicated url for referencing this target exclusively. - - !ruby/object:Api::Type::Boolean - name: 'latestRevision' - description: | - Uses the "status.latestReadyRevisionName" of the Service to determine the traffic target. When it changes, traffic will automatically migrate from the prior "latest ready" revision to the new one. This field must be false if RevisionName is set. This field defaults to true otherwise. If the field is set to true on Status, this means that the Revision was resolved from the Service's latest ready revision. - - !ruby/object:Api::Type::String - name: 'url' - description: | - Output only. URL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. https://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.) - - !ruby/object:Api::Type::NestedObject - name: 'status' - description: | - The current state of the Service. Output only. - properties: - - !ruby/object:Api::Type::Integer - name: 'observedGeneration' - description: | - Returns the generation last seen by the system. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation and the Ready condition's status is True or False. - - !ruby/object:Api::Type::Array - name: 'conditions' - description: | - Conditions communicate information about ongoing/complete reconciliation processes that bring the `spec` inline with the observed state of the world. Service-specific conditions include: * `ConfigurationsReady`: `True` when the underlying Configuration is ready. * `RoutesReady`: `True` when the underlying Route is ready. * `Ready`: `True` when all underlying resources are ready. - item_type: !ruby/object:Api::Type::NestedObject - properties: - - !ruby/object:Api::Type::String - name: 'type' - description: | - type is used to communicate the status of the reconciliation process. Types common to all resources include: * "Ready" or "Completed": True when the Resource is ready. - - !ruby/object:Api::Type::String - name: 'status' - description: | - Status of the condition, one of True, False, Unknown. - - !ruby/object:Api::Type::String - name: 'reason' - description: | - Optional. One-word CamelCase reason for the condition's last transition. These are intended to be stable, unique values which the client may use to trigger error handling logic, whereas messages which may be changed later by the server. - - !ruby/object:Api::Type::String - name: 'message' - description: | - Optional. Human readable message indicating details about the current status. - - !ruby/object:Api::Type::String - name: 'lastTransitionTime' - description: | - Optional. Last time the condition transitioned from one status to another. - - !ruby/object:Api::Type::String - name: 'severity' - description: | - Optional. How to interpret this condition. One of Error, Warning, or Info. Conditions of severity Info do not contribute to resource readiness. - - !ruby/object:Api::Type::String - name: 'latestReadyRevisionName' - description: | - Name of the latest Revision from this Service's Configuration that has had its `Ready` condition become `True`. - - !ruby/object:Api::Type::String - name: 'latestCreatedRevisionName' - description: | - Name of the last revision that was created from this Service's Configuration. It might not be ready yet, for that use LatestReadyRevisionName. - - !ruby/object:Api::Type::Array - name: 'traffic' - description: | - Holds the configured traffic distribution. These entries will always contain RevisionName references. When ConfigurationName appears in the spec, this will hold the LatestReadyRevisionName that we last observed. - item_type: !ruby/object:Api::Type::NestedObject - properties: - - !ruby/object:Api::Type::String - name: 'configurationName' - description: | - [Deprecated] Not supported in Cloud Run. It must be empty. - - !ruby/object:Api::Type::String - name: 'revisionName' - description: | - Points this traffic target to a specific Revision. This field is mutually exclusive with latest_revision. - - !ruby/object:Api::Type::Integer - name: 'percent' - description: | - Percent specifies percent of the traffic to this Revision or Configuration. This defaults to zero if unspecified. - - !ruby/object:Api::Type::String - name: 'tag' - description: | - Tag is used to expose a dedicated url for referencing this target exclusively. - - !ruby/object:Api::Type::Boolean - name: 'latestRevision' - description: | - Uses the "status.latestReadyRevisionName" of the Service to determine the traffic target. When it changes, traffic will automatically migrate from the prior "latest ready" revision to the new one. This field must be false if RevisionName is set. This field defaults to true otherwise. If the field is set to true on Status, this means that the Revision was resolved from the Service's latest ready revision. - - !ruby/object:Api::Type::String - name: 'url' - description: | - Output only. URL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. https://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.) - - !ruby/object:Api::Type::String - name: 'url' - description: | - URL that will distribute traffic over the provided traffic targets. It generally has the form `https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.app` - - !ruby/object:Api::Type::NestedObject - name: 'address' - description: | - Information for connecting over HTTP(s). - properties: - - !ruby/object:Api::Type::String - name: 'url' - description: | - - diff --git a/mmv1/templates/inspec/examples/google_run_service/google_run_service.erb b/mmv1/templates/inspec/examples/google_run_service/google_run_service.erb index fac1b6f34..e6e150cc6 100644 --- a/mmv1/templates/inspec/examples/google_run_service/google_run_service.erb +++ b/mmv1/templates/inspec/examples/google_run_service/google_run_service.erb @@ -1,9 +1,7 @@ <% gcp_project_id = "#{external_attribute(pwd, 'gcp_project_id', doc_generation)}" -%> -<% project_location_service = grab_attributes(pwd)['project_location_service'] -%> -describe google_run_service(name: <%= doc_generation ? "' #{project_location_service['name']}'":"project_location_service['name']" -%>) do +<% service = grab_attributes(pwd)['service'] -%> +describe google_run_service(name: <%= doc_generation ? "' #{service['name']}'":"service['name']" -%>) do it { should exist } - its('api_version') { should cmp <%= doc_generation ? "'#{project_location_service['api_version']}'" : "project_location_service['api_version']" -%> } - its('kind') { should cmp <%= doc_generation ? "'#{project_location_service['kind']}'" : "project_location_service['kind']" -%> } end diff --git a/mmv1/templates/inspec/examples/google_run_service/google_run_service_attributes.erb b/mmv1/templates/inspec/examples/google_run_service/google_run_service_attributes.erb index 7527a4f67..032fa2e6b 100644 --- a/mmv1/templates/inspec/examples/google_run_service/google_run_service_attributes.erb +++ b/mmv1/templates/inspec/examples/google_run_service/google_run_service_attributes.erb @@ -1,3 +1,3 @@ gcp_project_id = input(:gcp_project_id, value: '<%= external_attribute(pwd, 'gcp_project_id') -%>', description: 'The GCP project identifier.') - project_location_service = input('project_location_service', value: <%= JSON.pretty_generate(grab_attributes(pwd)['project_location_service']) -%>, description: 'project_location_service description') \ No newline at end of file + service = input('service', value: <%= JSON.pretty_generate(grab_attributes(pwd)['service']) -%>, description: 'service description') \ No newline at end of file diff --git a/mmv1/templates/inspec/examples/google_run_service/google_run_services.erb b/mmv1/templates/inspec/examples/google_run_service/google_run_services.erb index 424309f14..aee4c1c91 100644 --- a/mmv1/templates/inspec/examples/google_run_service/google_run_services.erb +++ b/mmv1/templates/inspec/examples/google_run_service/google_run_services.erb @@ -1,5 +1,5 @@ <% gcp_project_id = "#{external_attribute(pwd, 'gcp_project_id', doc_generation)}" -%> - <% project_location_service = grab_attributes(pwd)['project_location_service'] -%> - describe google_run_services(parent: <%= doc_generation ? "' #{project_location_service['parent']}'":"project_location_service['parent']" -%>) do + <% service = grab_attributes(pwd)['service'] -%> + describe google_run_services(parent: <%= doc_generation ? "' #{service['parent']}'":"service['parent']" -%>) do it { should exist } end \ No newline at end of file