blob: 6ae38a5960a4ba385ddf0d213e627c63a92472c2 [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="run_v1.html">Cloud Run API</a> . <a href="run_v1.namespaces.html">namespaces</a> . <a href="run_v1.namespaces.revisions.html">revisions</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#delete">delete(name, apiVersion=None, propagationPolicy=None, kind=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Delete a revision.</p>
80<p class="toc_element">
81 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
82<p class="firstline">Get information about a revision.</p>
83<p class="toc_element">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070084 <code><a href="#list">list(parent, resourceVersion=None, includeUninitialized=None, fieldSelector=None, continue=None, limit=None, watch=None, labelSelector=None, x__xgafv=None)</a></code></p>
Bu Sun Kim65020912020-05-20 12:08:20 -070085<p class="firstline">List revisions.</p>
86<h3>Method Details</h3>
87<div class="method">
88 <code class="details" id="delete">delete(name, apiVersion=None, propagationPolicy=None, kind=None, x__xgafv=None)</code>
89 <pre>Delete a revision.
90
91Args:
92 name: string, The name of the revision to delete.
93For Cloud Run (fully managed), replace {namespace_id} with the project ID
94or number. (required)
95 apiVersion: string, Cloud Run currently ignores this parameter.
96 propagationPolicy: string, Specifies the propagation policy of delete. Cloud Run currently ignores
97this setting, and deletes in the background. Please see
98kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for
99more information.
100 kind: string, Cloud Run currently ignores this parameter.
101 x__xgafv: string, V1 error format.
102 Allowed values
103 1 - v1 error format
104 2 - v2 error format
105
106Returns:
107 An object of the form:
108
109 { # Status is a return value for calls that don&#x27;t return other objects
Bu Sun Kim65020912020-05-20 12:08:20 -0700110 &quot;details&quot;: { # StatusDetails is a set of additional properties that MAY be set by the # Extended data associated with the reason. Each reason may define its
111 # own extended details. This field is optional and the data returned
112 # is not guaranteed to conform to any schema except that defined by
113 # the reason type.
114 # +optional
115 # server to provide additional information about a response. The Reason
116 # field of a Status object defines what attributes will be set. Clients
117 # must ignore fields that do not match the defined type of each attribute,
118 # and should assume that any attribute may be empty, invalid, or under
119 # defined.
120 &quot;name&quot;: &quot;A String&quot;, # The name attribute of the resource associated with the status StatusReason
121 # (when there is a single name which can be described).
122 # +optional
123 &quot;uid&quot;: &quot;A String&quot;, # UID of the resource.
124 # (when there is a single resource which can be described).
125 # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
126 # +optional
127 &quot;group&quot;: &quot;A String&quot;, # The group attribute of the resource associated with the status
128 # StatusReason. +optional
129 &quot;causes&quot;: [ # The Causes array includes more details associated with the StatusReason
130 # failure. Not all StatusReasons may provide detailed causes.
131 # +optional
132 { # StatusCause provides more information about an api.Status failure, including
133 # cases when multiple errors are encountered.
134 &quot;message&quot;: &quot;A String&quot;, # A human-readable description of the cause of the error. This field may be
135 # presented as-is to a reader.
136 # +optional
137 &quot;reason&quot;: &quot;A String&quot;, # A machine-readable description of the cause of the error. If this value is
138 # empty there is no information available.
139 # +optional
140 &quot;field&quot;: &quot;A String&quot;, # The field of the resource that has caused this error, as named by its JSON
141 # serialization. May include dot and postfix notation for nested attributes.
142 # Arrays are zero-indexed. Fields may appear more than once in an array of
143 # causes due to fields having multiple errors.
144 # Optional.
145 #
146 # Examples:
147 # &quot;name&quot; - the field &quot;name&quot; on the current resource
148 # &quot;items[0].name&quot; - the field &quot;name&quot; on the first array entry in &quot;items&quot;
149 # +optional
150 },
151 ],
152 &quot;kind&quot;: &quot;A String&quot;, # The kind attribute of the resource associated with the status StatusReason.
153 # On some operations may differ from the requested resource Kind.
154 # More info:
155 # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
156 # +optional
157 &quot;retryAfterSeconds&quot;: 42, # If specified, the time in seconds before the operation should be retried.
158 # Some errors may indicate the client must take an alternate action - for
159 # those errors this field may indicate how long to wait before taking the
160 # alternate action. +optional
161 },
162 &quot;reason&quot;: &quot;A String&quot;, # A machine-readable description of why this operation is in the
163 # &quot;Failure&quot; status. If this value is empty there
164 # is no information available. A Reason clarifies an HTTP status
165 # code but does not override it.
166 # +optional
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700167 &quot;metadata&quot;: { # ListMeta describes metadata that synthetic resources must have, including # Standard list metadata.
168 # More info:
169 # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
170 # +optional
171 # lists and various status objects. A resource may have only one of
172 # {ObjectMeta, ListMeta}.
173 &quot;selfLink&quot;: &quot;A String&quot;, # SelfLink is a URL representing this object.
174 # Populated by the system.
175 # Read-only.
176 # +optional
177 &quot;resourceVersion&quot;: &quot;A String&quot;, # String that identifies the server&#x27;s internal version of this object that
178 # can be used by clients to determine when objects have changed. Value must
179 # be treated as opaque by clients and passed unmodified back to the server.
180 # Populated by the system.
181 # Read-only.
182 # More info:
183 # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
184 # +optional
185 &quot;continue&quot;: &quot;A String&quot;, # continue may be set if the user set a limit on the number of items
186 # returned, and indicates that the server has more data available. The value
187 # is opaque and may be used to issue another request to the endpoint that
188 # served this list to retrieve the next set of available objects. Continuing
189 # a list may not be possible if the server configuration has changed or more
190 # than a few minutes have passed. The resourceVersion field returned when
191 # using this continue value will be identical to the value in the first
192 # response.
193 },
194 &quot;code&quot;: 42, # Suggested HTTP return code for this status, 0 if not set.
195 # +optional
196 &quot;message&quot;: &quot;A String&quot;, # A human-readable description of the status of this operation.
197 # +optional
198 &quot;status&quot;: &quot;A String&quot;, # Status of the operation.
199 # One of: &quot;Success&quot; or &quot;Failure&quot;.
200 # More info:
201 # https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
202 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700203 }</pre>
204</div>
205
206<div class="method">
207 <code class="details" id="get">get(name, x__xgafv=None)</code>
208 <pre>Get information about a revision.
209
210Args:
211 name: string, The name of the revision to retrieve.
212For Cloud Run (fully managed), replace {namespace_id} with the project ID
213or number. (required)
214 x__xgafv: string, V1 error format.
215 Allowed values
216 1 - v1 error format
217 2 - v2 error format
218
219Returns:
220 An object of the form:
221
222 { # Revision is an immutable snapshot of code and configuration. A revision
223 # references a container image. Revisions are created by updates to a
224 # Configuration.
225 #
226 # See also:
227 # https://github.com/knative/serving/blob/master/docs/spec/overview.md#revision
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700228 &quot;kind&quot;: &quot;A String&quot;, # The kind of this resource, in this case &quot;Revision&quot;.
229 &quot;metadata&quot;: { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Metadata associated with this Revision, including name, namespace, labels,
230 # and annotations.
231 # persisted resources must have, which includes all objects users must create.
232 &quot;annotations&quot;: { # (Optional)
233 #
234 # Annotations is an unstructured key value map stored with a resource that
235 # may be set by external tools to store and retrieve arbitrary metadata. They
236 # are not queryable and should be preserved when modifying objects. More
237 # info: http://kubernetes.io/docs/user-guide/annotations
238 &quot;a_key&quot;: &quot;A String&quot;,
239 },
240 &quot;generateName&quot;: &quot;A String&quot;, # (Optional)
241 #
242 # Cloud Run fully managed: not supported
243 #
244 # Cloud Run for Anthos: supported
245 #
246 # GenerateName is an optional prefix, used by the server, to generate a
247 # unique name ONLY IF the Name field has not been provided. If this field is
248 # used, the name returned to the client will be different than the name
249 # passed. This value will also be combined with a unique suffix. The provided
250 # value has the same validation rules as the Name field, and may be truncated
251 # by the length of the suffix required to make the value unique on the
252 # server.
253 #
254 # If this field is specified and the generated name exists, the server will
255 # NOT return a 409 - instead, it will either return 201 Created or 500 with
256 # Reason ServerTimeout indicating a unique name could not be found in the
257 # time allotted, and the client should retry (optionally after the time
258 # indicated in the Retry-After header).
259 #
260 # Applied only if Name is not specified.
261 # More info:
262 # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency
263 # string generateName = 2;
264 &quot;name&quot;: &quot;A String&quot;, # Name must be unique within a namespace, within a Cloud Run region.
265 # Is required when creating
266 # resources, although some resources may allow a client to request the
267 # generation of an appropriate name automatically. Name is primarily intended
268 # for creation idempotence and configuration definition. Cannot be updated.
269 # More info: http://kubernetes.io/docs/user-guide/identifiers#names
270 # +optional
271 &quot;deletionGracePeriodSeconds&quot;: 42, # (Optional)
272 #
273 # Cloud Run fully managed: not supported
274 #
275 # Cloud Run for Anthos: supported
276 #
277 # Number of seconds allowed for this object to gracefully terminate before
278 # it will be removed from the system. Only set when deletionTimestamp is also
279 # set. May only be shortened. Read-only.
280 &quot;clusterName&quot;: &quot;A String&quot;, # (Optional)
281 #
282 # Cloud Run fully managed: not supported
283 #
284 # Cloud Run for Anthos: supported
285 #
286 # The name of the cluster which the object belongs to.
287 # This is used to distinguish resources with same name and namespace in
288 # different clusters. This field is not set anywhere right now and apiserver
289 # is going to ignore it if set in create or update request.
290 &quot;finalizers&quot;: [ # (Optional)
291 #
292 # Cloud Run fully managed: not supported
293 #
294 # Cloud Run for Anthos: supported
295 #
296 # Must be empty before the object is deleted from the registry. Each entry
297 # is an identifier for the responsible component that will remove the entry
298 # from the list. If the deletionTimestamp of the object is non-nil, entries
299 # in this list can only be removed.
300 # +patchStrategy=merge
301 &quot;A String&quot;,
302 ],
303 &quot;deletionTimestamp&quot;: &quot;A String&quot;, # (Optional)
304 #
305 # Cloud Run fully managed: not supported
306 #
307 # Cloud Run for Anthos: supported
308 #
309 # DeletionTimestamp is RFC 3339 date and time at which this resource will be
310 # deleted. This field is set by the server when a graceful deletion is
311 # requested by the user, and is not directly settable by a client. The
312 # resource is expected to be deleted (no longer visible from resource lists,
313 # and not reachable by name) after the time in this field, once the
314 # finalizers list is empty. As long as the finalizers list contains items,
315 # deletion is blocked. Once the deletionTimestamp is set, this value may not
316 # be unset or be set further into the future, although it may be shortened or
317 # the resource may be deleted prior to this time. For example, a user may
318 # request that a pod is deleted in 30 seconds. The Kubelet will react by
319 # sending a graceful termination signal to the containers in the pod. After
320 # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL)
321 # to the container and after cleanup, remove the pod from the API. In the
322 # presence of network partitions, this object may still exist after this
323 # timestamp, until an administrator or automated process can determine the
324 # resource is fully terminated.
325 # If not set, graceful deletion of the object has not been requested.
326 #
327 # Populated by the system when a graceful deletion is requested.
328 # Read-only.
329 # More info:
330 # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
331 &quot;ownerReferences&quot;: [ # (Optional)
332 #
333 # Cloud Run fully managed: not supported
334 #
335 # Cloud Run for Anthos: supported
336 #
337 # List of objects that own this object. If ALL objects in the list have
338 # been deleted, this object will be garbage collected.
339 { # OwnerReference contains enough information to let you identify an owning
340 # object. Currently, an owning object must be in the same namespace, so there
341 # is no namespace field.
342 &quot;controller&quot;: True or False, # If true, this reference points to the managing controller.
343 # +optional
344 &quot;kind&quot;: &quot;A String&quot;, # Kind of the referent.
345 # More info:
346 # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
347 &quot;blockOwnerDeletion&quot;: True or False, # If true, AND if the owner has the &quot;foregroundDeletion&quot; finalizer, then
348 # the owner cannot be deleted from the key-value store until this
349 # reference is removed.
350 # Defaults to false.
351 # To set this field, a user needs &quot;delete&quot; permission of the owner,
352 # otherwise 422 (Unprocessable Entity) will be returned.
353 # +optional
354 &quot;apiVersion&quot;: &quot;A String&quot;, # API version of the referent.
355 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
356 # More info: http://kubernetes.io/docs/user-guide/identifiers#names
357 &quot;uid&quot;: &quot;A String&quot;, # UID of the referent.
358 # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
359 },
360 ],
361 &quot;creationTimestamp&quot;: &quot;A String&quot;, # (Optional)
362 #
363 # CreationTimestamp is a timestamp representing the server time when this
364 # object was created. It is not guaranteed to be set in happens-before order
365 # across separate operations. Clients may not set this value. It is
366 # represented in RFC3339 form and is in UTC.
367 #
368 # Populated by the system.
369 # Read-only.
370 # Null for lists.
371 # More info:
372 # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
373 &quot;labels&quot;: { # (Optional)
374 #
375 # Map of string keys and values that can be used to organize and categorize
376 # (scope and select) objects. May match selectors of replication controllers
377 # and routes.
378 # More info: http://kubernetes.io/docs/user-guide/labels
379 &quot;a_key&quot;: &quot;A String&quot;,
380 },
381 &quot;generation&quot;: 42, # (Optional)
382 #
383 # A sequence number representing a specific generation of the desired state.
384 # Populated by the system. Read-only.
385 &quot;resourceVersion&quot;: &quot;A String&quot;, # (Optional)
386 #
387 # An opaque value that represents the internal version of this object that
388 # can be used by clients to determine when objects have changed. May be used
389 # for optimistic concurrency, change detection, and the watch operation on a
390 # resource or set of resources. Clients must treat these values as opaque and
391 # passed unmodified back to the server. They may only be valid for a
392 # particular resource or set of resources.
393 #
394 # Populated by the system.
395 # Read-only.
396 # Value must be treated as opaque by clients and .
397 # More info:
398 # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
399 &quot;selfLink&quot;: &quot;A String&quot;, # (Optional)
400 #
401 # SelfLink is a URL representing this object.
402 # Populated by the system.
403 # Read-only.
404 # string selfLink = 4;
405 &quot;uid&quot;: &quot;A String&quot;, # (Optional)
406 #
407 # UID is the unique in time and space value for this object. It is typically
408 # generated by the server on successful creation of a resource and is not
409 # allowed to change on PUT operations.
410 #
411 # Populated by the system.
412 # Read-only.
413 # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
414 &quot;namespace&quot;: &quot;A String&quot;, # Namespace defines the space within each name must be unique, within a
415 # Cloud Run region. In Cloud Run the namespace must be equal to either the
416 # project ID or project number.
417 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700418 &quot;status&quot;: { # RevisionStatus communicates the observed state of the Revision (from the # Status communicates the observed state of the Revision (from the
419 # controller).
420 # controller).
421 &quot;conditions&quot;: [ # Conditions communicates information about ongoing/complete
422 # reconciliation processes that bring the &quot;spec&quot; inline with the observed
423 # state of the world.
424 #
425 # As a Revision is being prepared, it will incrementally
426 # update conditions. Revision-specific conditions include:
427 # * &quot;ResourcesAvailable&quot;: True when underlying resources have been
428 # provisioned.
429 # * &quot;ContainerHealthy&quot;: True when the Revision readiness check completes.
430 # * &quot;Active&quot;: True when the Revision may receive traffic.
431 { # Condition defines a generic condition for a Resource
432 &quot;message&quot;: &quot;A String&quot;, # Optional. Human readable message indicating details about the current status.
433 &quot;lastTransitionTime&quot;: &quot;A String&quot;, # Optional. Last time the condition transitioned from one status to another.
434 &quot;status&quot;: &quot;A String&quot;, # Status of the condition, one of True, False, Unknown.
435 &quot;severity&quot;: &quot;A String&quot;, # Optional. How to interpret failures of this condition, one of Error, Warning, Info
436 &quot;reason&quot;: &quot;A String&quot;, # Optional. One-word CamelCase reason for the condition&#x27;s last transition.
437 &quot;type&quot;: &quot;A String&quot;, # type is used to communicate the status of the reconciliation process.
438 # See also:
439 # https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting
440 # Types common to all resources include:
441 # * &quot;Ready&quot;: True when the Resource is ready.
442 },
443 ],
444 &quot;observedGeneration&quot;: 42, # ObservedGeneration is the &#x27;Generation&#x27; of the Revision that
445 # was last processed by the controller.
446 #
447 # Clients polling for completed reconciliation should poll until
448 # observedGeneration = metadata.generation, and the Ready condition&#x27;s status
449 # is True or False.
450 &quot;imageDigest&quot;: &quot;A String&quot;, # ImageDigest holds the resolved digest for the image specified
451 # within .Spec.Container.Image. The digest is resolved during the creation
452 # of Revision. This field holds the digest value regardless of whether
453 # a tag or digest was originally specified in the Container object.
454 &quot;logUrl&quot;: &quot;A String&quot;, # Specifies the generated logging url for this particular revision
455 # based on the revision url template specified in the controller&#x27;s config.
456 # +optional
457 &quot;serviceName&quot;: &quot;A String&quot;, # Not currently used by Cloud Run.
458 },
459 &quot;apiVersion&quot;: &quot;A String&quot;, # The API version for this call such as &quot;serving.knative.dev/v1&quot;.
460 &quot;spec&quot;: { # RevisionSpec holds the desired state of the Revision (from the client). # Spec holds the desired state of the Revision (from the client).
Bu Sun Kim65020912020-05-20 12:08:20 -0700461 &quot;containerConcurrency&quot;: 42, # (Optional)
462 #
463 # ContainerConcurrency specifies the maximum allowed in-flight (concurrent)
464 # requests per container instance of the Revision.
465 #
466 # Cloud Run fully managed: supported, defaults to 80
467 #
468 # Cloud Run for Anthos: supported, defaults to 0, which means concurrency
469 # to the application is not limited, and the system decides the
470 # target concurrency for the autoscaler.
471 &quot;timeoutSeconds&quot;: 42, # TimeoutSeconds holds the max duration the instance is allowed for
472 # responding to a request.
473 # Not currently used by Cloud Run.
474 &quot;serviceAccountName&quot;: &quot;A String&quot;, # Email address of the IAM service account associated with the revision
475 # of the service. The service account represents the identity of the
476 # running revision, and determines what permissions the revision has. If
477 # not provided, the revision will use the project&#x27;s default service account.
478 &quot;containers&quot;: [ # Containers holds the single container that defines the unit of execution
479 # for this Revision. In the context of a Revision, we disallow a number of
480 # fields on this Container, including: name and lifecycle.
481 # In Cloud Run, only a single container may be provided.
482 # The runtime contract is documented here:
483 # https://github.com/knative/serving/blob/master/docs/runtime-contract.md
484 { # A single application container.
485 # This specifies both the container to run, the command to run in the container
486 # and the arguments to supply to it.
487 # Note that additional arguments may be supplied by the system to the container
488 # at runtime.
Bu Sun Kim65020912020-05-20 12:08:20 -0700489 &quot;securityContext&quot;: { # Cloud Run fully managed: not supported # (Optional)
490 #
491 # Cloud Run fully managed: not supported
492 #
493 # Cloud Run for Anthos: supported
494 #
495 # Security options the pod should run with.
496 # More info: https://kubernetes.io/docs/concepts/policy/security-context/
497 # More info:
498 # https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
499 #
500 # Cloud Run for Anthos: supported
501 #
502 # SecurityContext holds security configuration that will be applied to a
503 # container. Some fields are present in both SecurityContext and
504 # PodSecurityContext. When both are set, the values in SecurityContext take
505 # precedence.
506 &quot;runAsUser&quot;: 42, # (Optional)
507 #
508 # Cloud Run fully managed: not supported
509 #
510 # Cloud Run for Anthos: supported
511 #
512 # The UID to run the entrypoint of the container process.
513 # Defaults to user specified in image metadata if unspecified.
514 # May also be set in PodSecurityContext. If set in both SecurityContext and
515 # PodSecurityContext, the value specified in SecurityContext takes
516 # precedence.
517 },
518 &quot;livenessProbe&quot;: { # Cloud Run fully managed: not supported # (Optional)
519 #
520 # Cloud Run fully managed: not supported
521 #
522 # Cloud Run for Anthos: supported
523 #
524 # Periodic probe of container liveness.
525 # Container will be restarted if the probe fails.
526 # More info:
527 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
528 #
529 # Cloud Run for Anthos: supported
530 #
531 # Probe describes a health check to be performed against a container to
532 # determine whether it is alive or ready to receive traffic.
533 &quot;httpGet&quot;: { # Cloud Run fully managed: not supported # (Optional)
534 #
535 # Cloud Run fully managed: not supported
536 #
537 # Cloud Run for Anthos: supported
538 #
539 # HTTPGet specifies the http request to perform.
540 #
541 # A field inlined from the Handler message.
542 #
543 # Cloud Run for Anthos: supported
544 #
545 # HTTPGetAction describes an action based on HTTP Get requests.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700546 &quot;host&quot;: &quot;A String&quot;, # (Optional)
547 #
548 # Cloud Run fully managed: not supported
549 #
550 # Cloud Run for Anthos: supported
551 #
552 # Host name to connect to, defaults to the pod IP. You probably want to set
553 # &quot;Host&quot; in httpHeaders instead.
554 &quot;scheme&quot;: &quot;A String&quot;, # (Optional)
555 #
556 # Cloud Run fully managed: not supported
557 #
558 # Cloud Run for Anthos: supported
559 #
560 # Scheme to use for connecting to the host.
561 # Defaults to HTTP.
Bu Sun Kim65020912020-05-20 12:08:20 -0700562 &quot;httpHeaders&quot;: [ # (Optional)
563 #
564 # Cloud Run fully managed: not supported
565 #
566 # Cloud Run for Anthos: supported
567 #
568 # Custom headers to set in the request. HTTP allows repeated headers.
569 { # Cloud Run fully managed: not supported
570 #
571 # Cloud Run for Anthos: supported
572 #
573 # HTTPHeader describes a custom header to be used in HTTP probes
574 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
575 #
576 # Cloud Run for Anthos: supported
577 #
578 # The header field name
579 &quot;value&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
580 #
581 # Cloud Run for Anthos: supported
582 #
583 # The header field value
584 },
585 ],
586 &quot;path&quot;: &quot;A String&quot;, # (Optional)
587 #
588 # Cloud Run fully managed: not supported
589 #
590 # Cloud Run for Anthos: supported
591 #
592 # Path to access on the HTTP server.
Bu Sun Kim65020912020-05-20 12:08:20 -0700593 },
594 &quot;failureThreshold&quot;: 42, # (Optional)
595 #
596 # Cloud Run fully managed: not supported
597 #
598 # Cloud Run for Anthos: supported
599 #
600 # Minimum consecutive failures for the probe to be considered failed after
601 # having succeeded. Defaults to 3. Minimum value is 1.
602 &quot;exec&quot;: { # Cloud Run fully managed: not supported # (Optional)
603 #
604 # Cloud Run fully managed: not supported
605 #
606 # Cloud Run for Anthos: supported
607 #
608 # One and only one of the following should be specified.
609 # Exec specifies the action to take.
610 #
611 # A field inlined from the Handler message.
612 #
613 # Cloud Run for Anthos: supported
614 #
615 # ExecAction describes a &quot;run in container&quot; action.
616 &quot;command&quot;: &quot;A String&quot;, # (Optional)
617 #
618 # Cloud Run fully managed: not supported
619 #
620 # Cloud Run for Anthos: supported
621 #
622 # Command is the command line to execute inside the container, the working
623 # directory for the command is root (&#x27;/&#x27;) in the container&#x27;s filesystem. The
624 # command is simply exec&#x27;d, it is not run inside a shell, so traditional
625 # shell instructions (&#x27;|&#x27;, etc) won&#x27;t work. To use a shell, you need to
626 # explicitly call out to that shell. Exit status of 0 is treated as
627 # live/healthy and non-zero is unhealthy.
628 },
629 &quot;initialDelaySeconds&quot;: 42, # (Optional)
630 #
631 # Cloud Run fully managed: not supported
632 #
633 # Cloud Run for Anthos: supported
634 #
635 # Number of seconds after the container has started before liveness probes
636 # are initiated. More info:
637 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
638 &quot;timeoutSeconds&quot;: 42, # (Optional)
639 #
640 # Cloud Run fully managed: not supported
641 #
642 # Cloud Run for Anthos: supported
643 #
644 # Number of seconds after which the probe times out.
645 # Defaults to 1 second. Minimum value is 1.
646 # More info:
647 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
648 &quot;successThreshold&quot;: 42, # (Optional)
649 #
650 # Cloud Run fully managed: not supported
651 #
652 # Cloud Run for Anthos: supported
653 #
654 # Minimum consecutive successes for the probe to be considered successful
655 # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value
656 # is 1.
657 &quot;periodSeconds&quot;: 42, # (Optional)
658 #
659 # Cloud Run fully managed: not supported
660 #
661 # Cloud Run for Anthos: supported
662 #
663 # How often (in seconds) to perform the probe.
664 # Default to 10 seconds. Minimum value is 1.
665 &quot;tcpSocket&quot;: { # Cloud Run fully managed: not supported # (Optional)
666 #
667 # Cloud Run fully managed: not supported
668 #
669 # Cloud Run for Anthos: supported
670 #
671 # TCPSocket specifies an action involving a TCP port.
672 # TCP hooks not yet supported
673 #
674 # A field inlined from the Handler message.
675 #
676 # Cloud Run for Anthos: supported
677 #
678 # TCPSocketAction describes an action based on opening a socket
679 &quot;port&quot;: 42, # Cloud Run fully managed: not supported
680 #
681 # Cloud Run for Anthos: supported
682 #
683 # Number or name of the port to access on the container.
684 # Number must be in the range 1 to 65535.
685 # Name must be an IANA_SVC_NAME.
686 #
687 # This field is currently limited to integer types only because of proto&#x27;s
688 # inability to properly support the IntOrString golang type.
689 &quot;host&quot;: &quot;A String&quot;, # (Optional)
690 #
691 # Cloud Run fully managed: not supported
692 #
693 # Cloud Run for Anthos: supported
694 #
695 # Optional: Host name to connect to, defaults to the pod IP.
696 },
697 },
698 &quot;env&quot;: [ # (Optional)
699 #
700 # Cloud Run fully managed: supported
701 #
702 # Cloud Run for Anthos: supported
703 #
704 # List of environment variables to set in the container.
705 { # EnvVar represents an environment variable present in a Container.
706 &quot;name&quot;: &quot;A String&quot;, # Name of the environment variable. Must be a C_IDENTIFIER.
707 &quot;valueFrom&quot;: { # Cloud Run fully managed: not supported # (Optional)
708 #
709 # Cloud Run fully managed: not supported
710 #
711 # Cloud Run for Anthos: supported
712 #
713 # Source for the environment variable&#x27;s value. Cannot be used if value is not
714 # empty.
715 #
716 # Cloud Run for Anthos: supported
717 #
718 # EnvVarSource represents a source for the value of an EnvVar.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700719 &quot;configMapKeyRef&quot;: { # Cloud Run fully managed: not supported # (Optional)
720 #
721 # Cloud Run fully managed: not supported
722 #
723 # Cloud Run for Anthos: supported
724 #
725 # Selects a key of a ConfigMap.
726 #
727 # Cloud Run for Anthos: supported
728 #
729 # Selects a key from a ConfigMap.
730 &quot;optional&quot;: True or False, # (Optional)
731 #
732 # Cloud Run fully managed: not supported
733 #
734 # Cloud Run for Anthos: supported
735 #
736 # Specify whether the ConfigMap or its key must be defined
737 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
738 #
739 # Cloud Run for Anthos: supported
740 #
741 # The key to select.
742 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
743 #
744 # Cloud Run for Anthos: supported
745 #
746 # The ConfigMap to select from.
747 &quot;localObjectReference&quot;: { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined
748 # directly into the message. Use the &quot;name&quot; field instead.
749 #
750 # Cloud Run for Anthos: supported
751 #
752 # LocalObjectReference contains enough information to let you locate the
753 # referenced object inside the same namespace.
754 &quot;name&quot;: &quot;A String&quot;, # (Optional)
755 #
756 # Cloud Run fully managed: not supported
757 #
758 # Cloud Run for Anthos: supported
759 #
760 # Name of the referent.
761 # More info:
762 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
763 },
764 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700765 &quot;secretKeyRef&quot;: { # Cloud Run fully managed: not supported # (Optional)
766 #
767 # Cloud Run fully managed: not supported
768 #
769 # Cloud Run for Anthos: supported
770 #
771 # Selects a key of a secret in the pod&#x27;s namespace
772 #
773 # Cloud Run for Anthos: supported
774 #
775 # SecretKeySelector selects a key of a Secret.
776 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
777 #
778 # Cloud Run for Anthos: supported
779 #
780 # The key of the secret to select from. Must be a valid secret key.
781 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
782 #
783 # Cloud Run for Anthos: supported
784 #
785 # The name of the secret in the pod&#x27;s namespace to select from.
786 &quot;localObjectReference&quot;: { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined
787 # directly into the message. Use the &quot;name&quot; field instead.
788 #
789 # Cloud Run for Anthos: supported
790 #
791 # LocalObjectReference contains enough information to let you locate the
792 # referenced object inside the same namespace.
793 &quot;name&quot;: &quot;A String&quot;, # (Optional)
794 #
795 # Cloud Run fully managed: not supported
796 #
797 # Cloud Run for Anthos: supported
798 #
799 # Name of the referent.
800 # More info:
801 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
802 },
803 &quot;optional&quot;: True or False, # (Optional)
804 #
805 # Cloud Run fully managed: not supported
806 #
807 # Cloud Run for Anthos: supported
808 #
809 # Specify whether the Secret or its key must be defined
810 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700811 },
812 &quot;value&quot;: &quot;A String&quot;, # (Optional)
813 #
814 # Variable references $(VAR_NAME) are expanded
815 # using the previous defined environment variables in the container and
816 # any route environment variables. If a variable cannot be resolved,
817 # the reference in the input string will be unchanged. The $(VAR_NAME)
818 # syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped
819 # references will never be expanded, regardless of whether the variable
820 # exists or not.
821 # Defaults to &quot;&quot;.
822 },
823 ],
824 &quot;resources&quot;: { # ResourceRequirements describes the compute resource requirements. # (Optional)
825 #
826 # Cloud Run fully managed: supported
827 #
828 # Cloud Run for Anthos: supported
829 #
830 # Compute Resources required by this container.
831 # More info:
832 # https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
833 &quot;limits&quot;: { # (Optional)
834 #
835 # Cloud Run fully managed: Only memory and CPU are supported. Note: The only
836 # supported value for CPU is &#x27;1&#x27;.
837 #
838 # Cloud Run for Anthos: supported
839 #
840 # Limits describes the maximum amount of compute resources allowed.
841 # The values of the map is string form of the &#x27;quantity&#x27; k8s type:
842 # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
843 &quot;a_key&quot;: &quot;A String&quot;,
844 },
845 &quot;requests&quot;: { # (Optional)
846 #
847 # Cloud Run fully managed: Only memory and CPU are supported. Note: The only
848 # supported value for CPU is &#x27;1&#x27;.
849 #
850 # Cloud Run for Anthos: supported
851 #
852 # Requests describes the minimum amount of compute resources required.
853 # If Requests is omitted for a container, it defaults to Limits if that is
854 # explicitly specified, otherwise to an implementation-defined value.
855 # The values of the map is string form of the &#x27;quantity&#x27; k8s type:
856 # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
857 &quot;a_key&quot;: &quot;A String&quot;,
858 },
859 },
860 &quot;readinessProbe&quot;: { # Cloud Run fully managed: not supported # (Optional)
861 #
862 # Cloud Run fully managed: not supported
863 #
864 # Cloud Run for Anthos: supported
865 #
866 # Periodic probe of container service readiness.
867 # Container will be removed from service endpoints if the probe fails.
868 # More info:
869 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
870 #
871 # Cloud Run for Anthos: supported
872 #
873 # Probe describes a health check to be performed against a container to
874 # determine whether it is alive or ready to receive traffic.
875 &quot;httpGet&quot;: { # Cloud Run fully managed: not supported # (Optional)
876 #
877 # Cloud Run fully managed: not supported
878 #
879 # Cloud Run for Anthos: supported
880 #
881 # HTTPGet specifies the http request to perform.
882 #
883 # A field inlined from the Handler message.
884 #
885 # Cloud Run for Anthos: supported
886 #
887 # HTTPGetAction describes an action based on HTTP Get requests.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700888 &quot;host&quot;: &quot;A String&quot;, # (Optional)
889 #
890 # Cloud Run fully managed: not supported
891 #
892 # Cloud Run for Anthos: supported
893 #
894 # Host name to connect to, defaults to the pod IP. You probably want to set
895 # &quot;Host&quot; in httpHeaders instead.
896 &quot;scheme&quot;: &quot;A String&quot;, # (Optional)
897 #
898 # Cloud Run fully managed: not supported
899 #
900 # Cloud Run for Anthos: supported
901 #
902 # Scheme to use for connecting to the host.
903 # Defaults to HTTP.
Bu Sun Kim65020912020-05-20 12:08:20 -0700904 &quot;httpHeaders&quot;: [ # (Optional)
905 #
906 # Cloud Run fully managed: not supported
907 #
908 # Cloud Run for Anthos: supported
909 #
910 # Custom headers to set in the request. HTTP allows repeated headers.
911 { # Cloud Run fully managed: not supported
912 #
913 # Cloud Run for Anthos: supported
914 #
915 # HTTPHeader describes a custom header to be used in HTTP probes
916 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
917 #
918 # Cloud Run for Anthos: supported
919 #
920 # The header field name
921 &quot;value&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
922 #
923 # Cloud Run for Anthos: supported
924 #
925 # The header field value
926 },
927 ],
928 &quot;path&quot;: &quot;A String&quot;, # (Optional)
929 #
930 # Cloud Run fully managed: not supported
931 #
932 # Cloud Run for Anthos: supported
933 #
934 # Path to access on the HTTP server.
Bu Sun Kim65020912020-05-20 12:08:20 -0700935 },
936 &quot;failureThreshold&quot;: 42, # (Optional)
937 #
938 # Cloud Run fully managed: not supported
939 #
940 # Cloud Run for Anthos: supported
941 #
942 # Minimum consecutive failures for the probe to be considered failed after
943 # having succeeded. Defaults to 3. Minimum value is 1.
944 &quot;exec&quot;: { # Cloud Run fully managed: not supported # (Optional)
945 #
946 # Cloud Run fully managed: not supported
947 #
948 # Cloud Run for Anthos: supported
949 #
950 # One and only one of the following should be specified.
951 # Exec specifies the action to take.
952 #
953 # A field inlined from the Handler message.
954 #
955 # Cloud Run for Anthos: supported
956 #
957 # ExecAction describes a &quot;run in container&quot; action.
958 &quot;command&quot;: &quot;A String&quot;, # (Optional)
959 #
960 # Cloud Run fully managed: not supported
961 #
962 # Cloud Run for Anthos: supported
963 #
964 # Command is the command line to execute inside the container, the working
965 # directory for the command is root (&#x27;/&#x27;) in the container&#x27;s filesystem. The
966 # command is simply exec&#x27;d, it is not run inside a shell, so traditional
967 # shell instructions (&#x27;|&#x27;, etc) won&#x27;t work. To use a shell, you need to
968 # explicitly call out to that shell. Exit status of 0 is treated as
969 # live/healthy and non-zero is unhealthy.
970 },
971 &quot;initialDelaySeconds&quot;: 42, # (Optional)
972 #
973 # Cloud Run fully managed: not supported
974 #
975 # Cloud Run for Anthos: supported
976 #
977 # Number of seconds after the container has started before liveness probes
978 # are initiated. More info:
979 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
980 &quot;timeoutSeconds&quot;: 42, # (Optional)
981 #
982 # Cloud Run fully managed: not supported
983 #
984 # Cloud Run for Anthos: supported
985 #
986 # Number of seconds after which the probe times out.
987 # Defaults to 1 second. Minimum value is 1.
988 # More info:
989 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
990 &quot;successThreshold&quot;: 42, # (Optional)
991 #
992 # Cloud Run fully managed: not supported
993 #
994 # Cloud Run for Anthos: supported
995 #
996 # Minimum consecutive successes for the probe to be considered successful
997 # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value
998 # is 1.
999 &quot;periodSeconds&quot;: 42, # (Optional)
1000 #
1001 # Cloud Run fully managed: not supported
1002 #
1003 # Cloud Run for Anthos: supported
1004 #
1005 # How often (in seconds) to perform the probe.
1006 # Default to 10 seconds. Minimum value is 1.
1007 &quot;tcpSocket&quot;: { # Cloud Run fully managed: not supported # (Optional)
1008 #
1009 # Cloud Run fully managed: not supported
1010 #
1011 # Cloud Run for Anthos: supported
1012 #
1013 # TCPSocket specifies an action involving a TCP port.
1014 # TCP hooks not yet supported
1015 #
1016 # A field inlined from the Handler message.
1017 #
1018 # Cloud Run for Anthos: supported
1019 #
1020 # TCPSocketAction describes an action based on opening a socket
1021 &quot;port&quot;: 42, # Cloud Run fully managed: not supported
1022 #
1023 # Cloud Run for Anthos: supported
1024 #
1025 # Number or name of the port to access on the container.
1026 # Number must be in the range 1 to 65535.
1027 # Name must be an IANA_SVC_NAME.
1028 #
1029 # This field is currently limited to integer types only because of proto&#x27;s
1030 # inability to properly support the IntOrString golang type.
1031 &quot;host&quot;: &quot;A String&quot;, # (Optional)
1032 #
1033 # Cloud Run fully managed: not supported
1034 #
1035 # Cloud Run for Anthos: supported
1036 #
1037 # Optional: Host name to connect to, defaults to the pod IP.
1038 },
1039 },
1040 &quot;imagePullPolicy&quot;: &quot;A String&quot;, # (Optional)
1041 #
1042 # Cloud Run fully managed: not supported
1043 #
1044 # Cloud Run for Anthos: supported
1045 #
1046 # Image pull policy.
1047 # One of Always, Never, IfNotPresent.
1048 # Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
1049 # More info:
1050 # https://kubernetes.io/docs/concepts/containers/images#updating-images
1051 &quot;terminationMessagePath&quot;: &quot;A String&quot;, # (Optional)
1052 #
1053 # Cloud Run fully managed: not supported
1054 #
1055 # Cloud Run for Anthos: supported
1056 #
1057 # Path at which the file to which the container&#x27;s termination
1058 # message will be written is mounted into the container&#x27;s filesystem. Message
1059 # written is intended to be brief final status, such as an assertion failure
1060 # message. Will be truncated by the node if greater than 4096 bytes. The
1061 # total message length across all containers will be limited to 12kb.
1062 # Defaults to /dev/termination-log.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001063 &quot;volumeMounts&quot;: [ # (Optional)
1064 #
1065 # Cloud Run fully managed: not supported
1066 #
1067 # Cloud Run for Anthos: supported
1068 #
1069 # Pod volumes to mount into the container&#x27;s filesystem.
1070 { # Cloud Run fully managed: not supported
1071 #
1072 # Cloud Run for Anthos: supported
1073 #
1074 # VolumeMount describes a mounting of a Volume within a container.
1075 &quot;mountPath&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1076 #
1077 # Cloud Run for Anthos: supported
1078 #
1079 # Path within the container at which the volume should be mounted. Must
1080 # not contain &#x27;:&#x27;.
1081 &quot;subPath&quot;: &quot;A String&quot;, # (Optional)
1082 #
1083 # Cloud Run fully managed: not supported
1084 #
1085 # Cloud Run for Anthos: supported
1086 #
1087 # Path within the volume from which the container&#x27;s volume should be mounted.
1088 # Defaults to &quot;&quot; (volume&#x27;s root).
1089 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1090 #
1091 # Cloud Run for Anthos: supported
1092 #
1093 # This must match the Name of a Volume.
1094 &quot;readOnly&quot;: True or False, # (Optional)
1095 #
1096 # Cloud Run fully managed: not supported
1097 #
1098 # Cloud Run for Anthos: supported
1099 #
1100 # Only true is accepted.
1101 # Defaults to true.
1102 },
1103 ],
1104 &quot;args&quot;: [ # (Optional)
1105 #
1106 # Cloud Run fully managed: supported
1107 #
1108 # Cloud Run for Anthos: supported
1109 #
1110 # Arguments to the entrypoint.
1111 # The docker image&#x27;s CMD is used if this is not provided.
1112 # Variable references $(VAR_NAME) are expanded using the container&#x27;s
1113 # environment. If a variable cannot be resolved, the reference in the input
1114 # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
1115 # double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
1116 # regardless of whether the variable exists or not.
1117 # More info:
1118 # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
1119 &quot;A String&quot;,
1120 ],
1121 &quot;workingDir&quot;: &quot;A String&quot;, # (Optional)
1122 #
1123 # Cloud Run fully managed: not supported
1124 #
1125 # Cloud Run for Anthos: supported
1126 #
1127 # Container&#x27;s working directory.
1128 # If not specified, the container runtime&#x27;s default will be used, which
1129 # might be configured in the container image.
1130 &quot;ports&quot;: [ # (Optional)
1131 #
1132 # List of ports to expose from the container. Only a single port can be
1133 # specified. The specified ports must be listening on all interfaces
1134 # (0.0.0.0) within the container to be accessible.
1135 #
1136 # If omitted, a port number will be chosen and passed to the container
1137 # through the PORT environment variable for the container to listen on.
1138 { # ContainerPort represents a network port in a single container.
1139 &quot;containerPort&quot;: 42, # (Optional)
1140 #
1141 # Port number the container listens on.
1142 # This must be a valid port number, 0 &lt; x &lt; 65536.
1143 &quot;protocol&quot;: &quot;A String&quot;, # (Optional)
1144 #
1145 # Cloud Run fully managed: not supported
1146 #
1147 # Cloud Run for Anthos: supported
1148 #
1149 # Protocol for port. Must be &quot;TCP&quot;.
1150 # Defaults to &quot;TCP&quot;.
1151 &quot;name&quot;: &quot;A String&quot;, # (Optional)
1152 #
1153 # Cloud Run fully managed: not supported
1154 #
1155 # Cloud Run for Anthos: supported
1156 #
1157 # If specified, used to specify which protocol to use.
1158 # Allowed values are &quot;http1&quot; and &quot;h2c&quot;.
1159 },
1160 ],
1161 &quot;image&quot;: &quot;A String&quot;, # Cloud Run fully managed: only supports containers from Google Container
1162 # Registry
1163 #
1164 # Cloud Run for Anthos: supported
1165 #
1166 # URL of the Container image.
1167 # More info: https://kubernetes.io/docs/concepts/containers/images
1168 &quot;envFrom&quot;: [ # (Optional)
1169 #
1170 # Cloud Run fully managed: not supported
1171 #
1172 # Cloud Run for Anthos: supported
1173 #
1174 # List of sources to populate environment variables in the container.
1175 # The keys defined within a source must be a C_IDENTIFIER. All invalid keys
1176 # will be reported as an event when the container is starting. When a key
1177 # exists in multiple sources, the value associated with the last source will
1178 # take precedence. Values defined by an Env with a duplicate key will take
1179 # precedence. Cannot be updated.
1180 { # Cloud Run fully managed: not supported
1181 #
1182 # Cloud Run for Anthos: supported
1183 #
1184 # EnvFromSource represents the source of a set of ConfigMaps
1185 &quot;secretRef&quot;: { # Cloud Run fully managed: not supported # (Optional)
1186 #
1187 # Cloud Run fully managed: not supported
1188 #
1189 # Cloud Run for Anthos: supported
1190 #
1191 # The Secret to select from
1192 #
1193 # Cloud Run for Anthos: supported
1194 #
1195 # SecretEnvSource selects a Secret to populate the environment
1196 # variables with.
1197 #
1198 # The contents of the target Secret&#x27;s Data field will represent the
1199 # key-value pairs as environment variables.
1200 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1201 #
1202 # Cloud Run for Anthos: supported
1203 #
1204 # The Secret to select from.
1205 &quot;localObjectReference&quot;: { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined
1206 # directly into the message. Use the &quot;name&quot; field instead.
1207 #
1208 # Cloud Run for Anthos: supported
1209 #
1210 # LocalObjectReference contains enough information to let you locate the
1211 # referenced object inside the same namespace.
1212 &quot;name&quot;: &quot;A String&quot;, # (Optional)
1213 #
1214 # Cloud Run fully managed: not supported
1215 #
1216 # Cloud Run for Anthos: supported
1217 #
1218 # Name of the referent.
1219 # More info:
1220 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1221 },
1222 &quot;optional&quot;: True or False, # (Optional)
1223 #
1224 # Cloud Run fully managed: not supported
1225 #
1226 # Cloud Run for Anthos: supported
1227 #
1228 # Specify whether the Secret must be defined
1229 },
1230 &quot;prefix&quot;: &quot;A String&quot;, # (Optional)
1231 #
1232 # Cloud Run fully managed: not supported
1233 #
1234 # Cloud Run for Anthos: supported
1235 #
1236 # An optional identifier to prepend to each key in the ConfigMap. Must be a
1237 # C_IDENTIFIER.
1238 &quot;configMapRef&quot;: { # Cloud Run fully managed: not supported # (Optional)
1239 #
1240 # Cloud Run fully managed: not supported
1241 #
1242 # Cloud Run for Anthos: supported
1243 #
1244 # The ConfigMap to select from
1245 #
1246 # Cloud Run for Anthos: supported
1247 #
1248 # ConfigMapEnvSource selects a ConfigMap to populate the environment
1249 # variables with.
1250 #
1251 # The contents of the target ConfigMap&#x27;s Data field will represent the
1252 # key-value pairs as environment variables.
1253 &quot;localObjectReference&quot;: { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined
1254 # directly into the message. Use the &quot;name&quot; field instead.
1255 #
1256 # Cloud Run for Anthos: supported
1257 #
1258 # LocalObjectReference contains enough information to let you locate the
1259 # referenced object inside the same namespace.
1260 &quot;name&quot;: &quot;A String&quot;, # (Optional)
1261 #
1262 # Cloud Run fully managed: not supported
1263 #
1264 # Cloud Run for Anthos: supported
1265 #
1266 # Name of the referent.
1267 # More info:
1268 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1269 },
1270 &quot;optional&quot;: True or False, # (Optional)
1271 #
1272 # Cloud Run fully managed: not supported
1273 #
1274 # Cloud Run for Anthos: supported
1275 #
1276 # Specify whether the ConfigMap must be defined
1277 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1278 #
1279 # Cloud Run for Anthos: supported
1280 #
1281 # The ConfigMap to select from.
1282 },
1283 },
1284 ],
1285 &quot;name&quot;: &quot;A String&quot;, # (Optional)
1286 #
1287 # Name of the container specified as a DNS_LABEL.
1288 &quot;command&quot;: [
1289 &quot;A String&quot;,
1290 ],
1291 &quot;terminationMessagePolicy&quot;: &quot;A String&quot;, # (Optional)
1292 #
1293 # Cloud Run fully managed: not supported
1294 #
1295 # Cloud Run for Anthos: supported
1296 #
1297 # Indicate how the termination message should be populated. File will use the
1298 # contents of terminationMessagePath to populate the container status message
1299 # on both success and failure. FallbackToLogsOnError will use the last chunk
1300 # of container log output if the termination message file is empty and the
1301 # container exited with an error. The log output is limited to 2048 bytes or
1302 # 80 lines, whichever is smaller. Defaults to File. Cannot be updated.
Bu Sun Kim65020912020-05-20 12:08:20 -07001303 },
1304 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001305 &quot;volumes&quot;: [
1306 { # Cloud Run fully managed: not supported
1307 #
1308 # Cloud Run for Anthos: supported
1309 #
1310 # Volume represents a named volume in a container.
1311 &quot;configMap&quot;: { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
1312 #
1313 # Cloud Run for Anthos: supported
1314 #
1315 # Cloud Run for Anthos: supported
1316 #
1317 # Adapts a ConfigMap into a volume.
1318 # The contents of the target ConfigMap&#x27;s Data field will be presented in a
1319 # volume as files using the keys in the Data field as the file names, unless
1320 # the items element is populated with specific mappings of keys to paths.
1321 &quot;optional&quot;: True or False, # (Optional)
1322 #
1323 # Cloud Run fully managed: not supported
1324 #
1325 # Cloud Run for Anthos: supported
1326 #
1327 # Specify whether the Secret or its keys must be defined.
1328 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1329 #
1330 # Cloud Run for Anthos: supported
1331 #
1332 # Name of the config.
1333 &quot;defaultMode&quot;: 42, # (Optional)
1334 #
1335 # Cloud Run fully managed: not supported
1336 #
1337 # Cloud Run for Anthos: supported
1338 #
1339 # Mode bits to use on created files by default. Must be a value between 0 and
1340 # 0777. Defaults to 0644. Directories within the path are not affected by
1341 # this setting. This might be in conflict with other options that affect the
1342 # file mode, like fsGroup, and the result can be other mode bits set.
1343 &quot;items&quot;: [ # (Optional)
1344 #
1345 # Cloud Run fully managed: not supported
1346 #
1347 # Cloud Run for Anthos: supported
1348 #
1349 # If unspecified, each key-value pair in the Data field of the referenced
1350 # Secret will be projected into the volume as a file whose name is the
1351 # key and content is the value. If specified, the listed keys will be
1352 # projected into the specified paths, and unlisted keys will not be
1353 # present. If a key is specified which is not present in the Secret,
1354 # the volume setup will error unless it is marked optional.
1355 { # Cloud Run fully managed: not supported
1356 #
1357 # Cloud Run for Anthos: supported
1358 #
1359 # Maps a string key to a path within a volume.
1360 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1361 #
1362 # Cloud Run for Anthos: supported
1363 #
1364 # The key to project.
1365 &quot;path&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1366 #
1367 # Cloud Run for Anthos: supported
1368 #
1369 # The relative path of the file to map the key to.
1370 # May not be an absolute path.
1371 # May not contain the path element &#x27;..&#x27;.
1372 # May not start with the string &#x27;..&#x27;.
1373 &quot;mode&quot;: 42, # (Optional)
1374 #
1375 # Cloud Run fully managed: not supported
1376 #
1377 # Cloud Run for Anthos: supported
1378 #
1379 # Mode bits to use on this file, must be a value between 0 and 0777. If not
1380 # specified, the volume defaultMode will be used. This might be in conflict
1381 # with other options that affect the file mode, like fsGroup, and the result
1382 # can be other mode bits set.
1383 },
1384 ],
1385 },
1386 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1387 #
1388 # Cloud Run for Anthos: supported
1389 #
1390 # Volume&#x27;s name.
1391 &quot;secret&quot;: { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
1392 #
1393 # Cloud Run for Anthos: supported
1394 #
1395 # Cloud Run for Anthos: supported
1396 #
1397 # The contents of the target Secret&#x27;s Data field will be presented in a volume
1398 # as files using the keys in the Data field as the file names.
1399 &quot;secretName&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1400 #
1401 # Cloud Run for Anthos: supported
1402 #
1403 # Name of the secret in the container&#x27;s namespace to use.
1404 &quot;items&quot;: [ # (Optional)
1405 #
1406 # Cloud Run fully managed: not supported
1407 #
1408 # Cloud Run for Anthos: supported
1409 #
1410 # If unspecified, each key-value pair in the Data field of the referenced
1411 # Secret will be projected into the volume as a file whose name is the
1412 # key and content is the value. If specified, the listed keys will be
1413 # projected into the specified paths, and unlisted keys will not be
1414 # present. If a key is specified which is not present in the Secret,
1415 # the volume setup will error unless it is marked optional.
1416 { # Cloud Run fully managed: not supported
1417 #
1418 # Cloud Run for Anthos: supported
1419 #
1420 # Maps a string key to a path within a volume.
1421 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1422 #
1423 # Cloud Run for Anthos: supported
1424 #
1425 # The key to project.
1426 &quot;path&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1427 #
1428 # Cloud Run for Anthos: supported
1429 #
1430 # The relative path of the file to map the key to.
1431 # May not be an absolute path.
1432 # May not contain the path element &#x27;..&#x27;.
1433 # May not start with the string &#x27;..&#x27;.
1434 &quot;mode&quot;: 42, # (Optional)
1435 #
1436 # Cloud Run fully managed: not supported
1437 #
1438 # Cloud Run for Anthos: supported
1439 #
1440 # Mode bits to use on this file, must be a value between 0 and 0777. If not
1441 # specified, the volume defaultMode will be used. This might be in conflict
1442 # with other options that affect the file mode, like fsGroup, and the result
1443 # can be other mode bits set.
1444 },
1445 ],
1446 &quot;optional&quot;: True or False, # (Optional)
1447 #
1448 # Cloud Run fully managed: not supported
1449 #
1450 # Cloud Run for Anthos: supported
1451 #
1452 # Specify whether the Secret or its keys must be defined.
1453 &quot;defaultMode&quot;: 42, # (Optional)
1454 #
1455 # Cloud Run fully managed: not supported
1456 #
1457 # Cloud Run for Anthos: supported
1458 #
1459 # Mode bits to use on created files by default. Must be a value between 0 and
1460 # 0777. Defaults to 0644. Directories within the path are not affected by
1461 # this setting. This might be in conflict with other options that affect the
1462 # file mode, like fsGroup, and the result can be other mode bits set.
1463 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001464 },
1465 ],
1466 },
1467 }</pre>
1468</div>
1469
1470<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001471 <code class="details" id="list">list(parent, resourceVersion=None, includeUninitialized=None, fieldSelector=None, continue=None, limit=None, watch=None, labelSelector=None, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -07001472 <pre>List revisions.
1473
1474Args:
1475 parent: string, The namespace from which the revisions should be listed.
1476For Cloud Run (fully managed), replace {namespace_id} with the project ID
1477or number. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -07001478 resourceVersion: string, The baseline resource version from which the list or watch operation should
1479start. Not currently used by Cloud Run.
1480 includeUninitialized: boolean, Not currently used by Cloud Run.
1481 fieldSelector: string, Allows to filter resources based on a specific value for a field name.
1482Send this in a query string format. i.e. &#x27;metadata.name%3Dlorem&#x27;.
1483Not currently used by Cloud Run.
1484 continue: string, Optional encoded string to continue paging.
1485 limit: integer, The maximum number of records that should be returned.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001486 watch: boolean, Flag that indicates that the client expects to watch this resource as well.
1487Not currently used by Cloud Run.
1488 labelSelector: string, Allows to filter resources based on a label. Supported operations are
1489=, !=, exists, in, and notIn.
Bu Sun Kim65020912020-05-20 12:08:20 -07001490 x__xgafv: string, V1 error format.
1491 Allowed values
1492 1 - v1 error format
1493 2 - v2 error format
1494
1495Returns:
1496 An object of the form:
1497
1498 { # ListRevisionsResponse is a list of Revision resources.
1499 &quot;metadata&quot;: { # ListMeta describes metadata that synthetic resources must have, including # Metadata associated with this revision list.
1500 # lists and various status objects. A resource may have only one of
1501 # {ObjectMeta, ListMeta}.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001502 &quot;selfLink&quot;: &quot;A String&quot;, # SelfLink is a URL representing this object.
1503 # Populated by the system.
1504 # Read-only.
1505 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07001506 &quot;resourceVersion&quot;: &quot;A String&quot;, # String that identifies the server&#x27;s internal version of this object that
1507 # can be used by clients to determine when objects have changed. Value must
1508 # be treated as opaque by clients and passed unmodified back to the server.
1509 # Populated by the system.
1510 # Read-only.
1511 # More info:
1512 # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
1513 # +optional
1514 &quot;continue&quot;: &quot;A String&quot;, # continue may be set if the user set a limit on the number of items
1515 # returned, and indicates that the server has more data available. The value
1516 # is opaque and may be used to issue another request to the endpoint that
1517 # served this list to retrieve the next set of available objects. Continuing
1518 # a list may not be possible if the server configuration has changed or more
1519 # than a few minutes have passed. The resourceVersion field returned when
1520 # using this continue value will be identical to the value in the first
1521 # response.
Bu Sun Kim65020912020-05-20 12:08:20 -07001522 },
1523 &quot;items&quot;: [ # List of Revisions.
1524 { # Revision is an immutable snapshot of code and configuration. A revision
1525 # references a container image. Revisions are created by updates to a
1526 # Configuration.
1527 #
1528 # See also:
1529 # https://github.com/knative/serving/blob/master/docs/spec/overview.md#revision
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001530 &quot;kind&quot;: &quot;A String&quot;, # The kind of this resource, in this case &quot;Revision&quot;.
1531 &quot;metadata&quot;: { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Metadata associated with this Revision, including name, namespace, labels,
1532 # and annotations.
1533 # persisted resources must have, which includes all objects users must create.
1534 &quot;annotations&quot;: { # (Optional)
1535 #
1536 # Annotations is an unstructured key value map stored with a resource that
1537 # may be set by external tools to store and retrieve arbitrary metadata. They
1538 # are not queryable and should be preserved when modifying objects. More
1539 # info: http://kubernetes.io/docs/user-guide/annotations
1540 &quot;a_key&quot;: &quot;A String&quot;,
1541 },
1542 &quot;generateName&quot;: &quot;A String&quot;, # (Optional)
1543 #
1544 # Cloud Run fully managed: not supported
1545 #
1546 # Cloud Run for Anthos: supported
1547 #
1548 # GenerateName is an optional prefix, used by the server, to generate a
1549 # unique name ONLY IF the Name field has not been provided. If this field is
1550 # used, the name returned to the client will be different than the name
1551 # passed. This value will also be combined with a unique suffix. The provided
1552 # value has the same validation rules as the Name field, and may be truncated
1553 # by the length of the suffix required to make the value unique on the
1554 # server.
1555 #
1556 # If this field is specified and the generated name exists, the server will
1557 # NOT return a 409 - instead, it will either return 201 Created or 500 with
1558 # Reason ServerTimeout indicating a unique name could not be found in the
1559 # time allotted, and the client should retry (optionally after the time
1560 # indicated in the Retry-After header).
1561 #
1562 # Applied only if Name is not specified.
1563 # More info:
1564 # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency
1565 # string generateName = 2;
1566 &quot;name&quot;: &quot;A String&quot;, # Name must be unique within a namespace, within a Cloud Run region.
1567 # Is required when creating
1568 # resources, although some resources may allow a client to request the
1569 # generation of an appropriate name automatically. Name is primarily intended
1570 # for creation idempotence and configuration definition. Cannot be updated.
1571 # More info: http://kubernetes.io/docs/user-guide/identifiers#names
1572 # +optional
1573 &quot;deletionGracePeriodSeconds&quot;: 42, # (Optional)
1574 #
1575 # Cloud Run fully managed: not supported
1576 #
1577 # Cloud Run for Anthos: supported
1578 #
1579 # Number of seconds allowed for this object to gracefully terminate before
1580 # it will be removed from the system. Only set when deletionTimestamp is also
1581 # set. May only be shortened. Read-only.
1582 &quot;clusterName&quot;: &quot;A String&quot;, # (Optional)
1583 #
1584 # Cloud Run fully managed: not supported
1585 #
1586 # Cloud Run for Anthos: supported
1587 #
1588 # The name of the cluster which the object belongs to.
1589 # This is used to distinguish resources with same name and namespace in
1590 # different clusters. This field is not set anywhere right now and apiserver
1591 # is going to ignore it if set in create or update request.
1592 &quot;finalizers&quot;: [ # (Optional)
1593 #
1594 # Cloud Run fully managed: not supported
1595 #
1596 # Cloud Run for Anthos: supported
1597 #
1598 # Must be empty before the object is deleted from the registry. Each entry
1599 # is an identifier for the responsible component that will remove the entry
1600 # from the list. If the deletionTimestamp of the object is non-nil, entries
1601 # in this list can only be removed.
1602 # +patchStrategy=merge
1603 &quot;A String&quot;,
1604 ],
1605 &quot;deletionTimestamp&quot;: &quot;A String&quot;, # (Optional)
1606 #
1607 # Cloud Run fully managed: not supported
1608 #
1609 # Cloud Run for Anthos: supported
1610 #
1611 # DeletionTimestamp is RFC 3339 date and time at which this resource will be
1612 # deleted. This field is set by the server when a graceful deletion is
1613 # requested by the user, and is not directly settable by a client. The
1614 # resource is expected to be deleted (no longer visible from resource lists,
1615 # and not reachable by name) after the time in this field, once the
1616 # finalizers list is empty. As long as the finalizers list contains items,
1617 # deletion is blocked. Once the deletionTimestamp is set, this value may not
1618 # be unset or be set further into the future, although it may be shortened or
1619 # the resource may be deleted prior to this time. For example, a user may
1620 # request that a pod is deleted in 30 seconds. The Kubelet will react by
1621 # sending a graceful termination signal to the containers in the pod. After
1622 # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL)
1623 # to the container and after cleanup, remove the pod from the API. In the
1624 # presence of network partitions, this object may still exist after this
1625 # timestamp, until an administrator or automated process can determine the
1626 # resource is fully terminated.
1627 # If not set, graceful deletion of the object has not been requested.
1628 #
1629 # Populated by the system when a graceful deletion is requested.
1630 # Read-only.
1631 # More info:
1632 # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
1633 &quot;ownerReferences&quot;: [ # (Optional)
1634 #
1635 # Cloud Run fully managed: not supported
1636 #
1637 # Cloud Run for Anthos: supported
1638 #
1639 # List of objects that own this object. If ALL objects in the list have
1640 # been deleted, this object will be garbage collected.
1641 { # OwnerReference contains enough information to let you identify an owning
1642 # object. Currently, an owning object must be in the same namespace, so there
1643 # is no namespace field.
1644 &quot;controller&quot;: True or False, # If true, this reference points to the managing controller.
1645 # +optional
1646 &quot;kind&quot;: &quot;A String&quot;, # Kind of the referent.
1647 # More info:
1648 # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
1649 &quot;blockOwnerDeletion&quot;: True or False, # If true, AND if the owner has the &quot;foregroundDeletion&quot; finalizer, then
1650 # the owner cannot be deleted from the key-value store until this
1651 # reference is removed.
1652 # Defaults to false.
1653 # To set this field, a user needs &quot;delete&quot; permission of the owner,
1654 # otherwise 422 (Unprocessable Entity) will be returned.
1655 # +optional
1656 &quot;apiVersion&quot;: &quot;A String&quot;, # API version of the referent.
1657 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
1658 # More info: http://kubernetes.io/docs/user-guide/identifiers#names
1659 &quot;uid&quot;: &quot;A String&quot;, # UID of the referent.
1660 # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
1661 },
1662 ],
1663 &quot;creationTimestamp&quot;: &quot;A String&quot;, # (Optional)
1664 #
1665 # CreationTimestamp is a timestamp representing the server time when this
1666 # object was created. It is not guaranteed to be set in happens-before order
1667 # across separate operations. Clients may not set this value. It is
1668 # represented in RFC3339 form and is in UTC.
1669 #
1670 # Populated by the system.
1671 # Read-only.
1672 # Null for lists.
1673 # More info:
1674 # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
1675 &quot;labels&quot;: { # (Optional)
1676 #
1677 # Map of string keys and values that can be used to organize and categorize
1678 # (scope and select) objects. May match selectors of replication controllers
1679 # and routes.
1680 # More info: http://kubernetes.io/docs/user-guide/labels
1681 &quot;a_key&quot;: &quot;A String&quot;,
1682 },
1683 &quot;generation&quot;: 42, # (Optional)
1684 #
1685 # A sequence number representing a specific generation of the desired state.
1686 # Populated by the system. Read-only.
1687 &quot;resourceVersion&quot;: &quot;A String&quot;, # (Optional)
1688 #
1689 # An opaque value that represents the internal version of this object that
1690 # can be used by clients to determine when objects have changed. May be used
1691 # for optimistic concurrency, change detection, and the watch operation on a
1692 # resource or set of resources. Clients must treat these values as opaque and
1693 # passed unmodified back to the server. They may only be valid for a
1694 # particular resource or set of resources.
1695 #
1696 # Populated by the system.
1697 # Read-only.
1698 # Value must be treated as opaque by clients and .
1699 # More info:
1700 # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
1701 &quot;selfLink&quot;: &quot;A String&quot;, # (Optional)
1702 #
1703 # SelfLink is a URL representing this object.
1704 # Populated by the system.
1705 # Read-only.
1706 # string selfLink = 4;
1707 &quot;uid&quot;: &quot;A String&quot;, # (Optional)
1708 #
1709 # UID is the unique in time and space value for this object. It is typically
1710 # generated by the server on successful creation of a resource and is not
1711 # allowed to change on PUT operations.
1712 #
1713 # Populated by the system.
1714 # Read-only.
1715 # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
1716 &quot;namespace&quot;: &quot;A String&quot;, # Namespace defines the space within each name must be unique, within a
1717 # Cloud Run region. In Cloud Run the namespace must be equal to either the
1718 # project ID or project number.
1719 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001720 &quot;status&quot;: { # RevisionStatus communicates the observed state of the Revision (from the # Status communicates the observed state of the Revision (from the
1721 # controller).
1722 # controller).
1723 &quot;conditions&quot;: [ # Conditions communicates information about ongoing/complete
1724 # reconciliation processes that bring the &quot;spec&quot; inline with the observed
1725 # state of the world.
1726 #
1727 # As a Revision is being prepared, it will incrementally
1728 # update conditions. Revision-specific conditions include:
1729 # * &quot;ResourcesAvailable&quot;: True when underlying resources have been
1730 # provisioned.
1731 # * &quot;ContainerHealthy&quot;: True when the Revision readiness check completes.
1732 # * &quot;Active&quot;: True when the Revision may receive traffic.
1733 { # Condition defines a generic condition for a Resource
1734 &quot;message&quot;: &quot;A String&quot;, # Optional. Human readable message indicating details about the current status.
1735 &quot;lastTransitionTime&quot;: &quot;A String&quot;, # Optional. Last time the condition transitioned from one status to another.
1736 &quot;status&quot;: &quot;A String&quot;, # Status of the condition, one of True, False, Unknown.
1737 &quot;severity&quot;: &quot;A String&quot;, # Optional. How to interpret failures of this condition, one of Error, Warning, Info
1738 &quot;reason&quot;: &quot;A String&quot;, # Optional. One-word CamelCase reason for the condition&#x27;s last transition.
1739 &quot;type&quot;: &quot;A String&quot;, # type is used to communicate the status of the reconciliation process.
1740 # See also:
1741 # https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting
1742 # Types common to all resources include:
1743 # * &quot;Ready&quot;: True when the Resource is ready.
1744 },
1745 ],
1746 &quot;observedGeneration&quot;: 42, # ObservedGeneration is the &#x27;Generation&#x27; of the Revision that
1747 # was last processed by the controller.
1748 #
1749 # Clients polling for completed reconciliation should poll until
1750 # observedGeneration = metadata.generation, and the Ready condition&#x27;s status
1751 # is True or False.
1752 &quot;imageDigest&quot;: &quot;A String&quot;, # ImageDigest holds the resolved digest for the image specified
1753 # within .Spec.Container.Image. The digest is resolved during the creation
1754 # of Revision. This field holds the digest value regardless of whether
1755 # a tag or digest was originally specified in the Container object.
1756 &quot;logUrl&quot;: &quot;A String&quot;, # Specifies the generated logging url for this particular revision
1757 # based on the revision url template specified in the controller&#x27;s config.
1758 # +optional
1759 &quot;serviceName&quot;: &quot;A String&quot;, # Not currently used by Cloud Run.
1760 },
1761 &quot;apiVersion&quot;: &quot;A String&quot;, # The API version for this call such as &quot;serving.knative.dev/v1&quot;.
1762 &quot;spec&quot;: { # RevisionSpec holds the desired state of the Revision (from the client). # Spec holds the desired state of the Revision (from the client).
Bu Sun Kim65020912020-05-20 12:08:20 -07001763 &quot;containerConcurrency&quot;: 42, # (Optional)
1764 #
1765 # ContainerConcurrency specifies the maximum allowed in-flight (concurrent)
1766 # requests per container instance of the Revision.
1767 #
1768 # Cloud Run fully managed: supported, defaults to 80
1769 #
1770 # Cloud Run for Anthos: supported, defaults to 0, which means concurrency
1771 # to the application is not limited, and the system decides the
1772 # target concurrency for the autoscaler.
1773 &quot;timeoutSeconds&quot;: 42, # TimeoutSeconds holds the max duration the instance is allowed for
1774 # responding to a request.
1775 # Not currently used by Cloud Run.
1776 &quot;serviceAccountName&quot;: &quot;A String&quot;, # Email address of the IAM service account associated with the revision
1777 # of the service. The service account represents the identity of the
1778 # running revision, and determines what permissions the revision has. If
1779 # not provided, the revision will use the project&#x27;s default service account.
1780 &quot;containers&quot;: [ # Containers holds the single container that defines the unit of execution
1781 # for this Revision. In the context of a Revision, we disallow a number of
1782 # fields on this Container, including: name and lifecycle.
1783 # In Cloud Run, only a single container may be provided.
1784 # The runtime contract is documented here:
1785 # https://github.com/knative/serving/blob/master/docs/runtime-contract.md
1786 { # A single application container.
1787 # This specifies both the container to run, the command to run in the container
1788 # and the arguments to supply to it.
1789 # Note that additional arguments may be supplied by the system to the container
1790 # at runtime.
Bu Sun Kim65020912020-05-20 12:08:20 -07001791 &quot;securityContext&quot;: { # Cloud Run fully managed: not supported # (Optional)
1792 #
1793 # Cloud Run fully managed: not supported
1794 #
1795 # Cloud Run for Anthos: supported
1796 #
1797 # Security options the pod should run with.
1798 # More info: https://kubernetes.io/docs/concepts/policy/security-context/
1799 # More info:
1800 # https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
1801 #
1802 # Cloud Run for Anthos: supported
1803 #
1804 # SecurityContext holds security configuration that will be applied to a
1805 # container. Some fields are present in both SecurityContext and
1806 # PodSecurityContext. When both are set, the values in SecurityContext take
1807 # precedence.
1808 &quot;runAsUser&quot;: 42, # (Optional)
1809 #
1810 # Cloud Run fully managed: not supported
1811 #
1812 # Cloud Run for Anthos: supported
1813 #
1814 # The UID to run the entrypoint of the container process.
1815 # Defaults to user specified in image metadata if unspecified.
1816 # May also be set in PodSecurityContext. If set in both SecurityContext and
1817 # PodSecurityContext, the value specified in SecurityContext takes
1818 # precedence.
1819 },
1820 &quot;livenessProbe&quot;: { # Cloud Run fully managed: not supported # (Optional)
1821 #
1822 # Cloud Run fully managed: not supported
1823 #
1824 # Cloud Run for Anthos: supported
1825 #
1826 # Periodic probe of container liveness.
1827 # Container will be restarted if the probe fails.
1828 # More info:
1829 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
1830 #
1831 # Cloud Run for Anthos: supported
1832 #
1833 # Probe describes a health check to be performed against a container to
1834 # determine whether it is alive or ready to receive traffic.
1835 &quot;httpGet&quot;: { # Cloud Run fully managed: not supported # (Optional)
1836 #
1837 # Cloud Run fully managed: not supported
1838 #
1839 # Cloud Run for Anthos: supported
1840 #
1841 # HTTPGet specifies the http request to perform.
1842 #
1843 # A field inlined from the Handler message.
1844 #
1845 # Cloud Run for Anthos: supported
1846 #
1847 # HTTPGetAction describes an action based on HTTP Get requests.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001848 &quot;host&quot;: &quot;A String&quot;, # (Optional)
1849 #
1850 # Cloud Run fully managed: not supported
1851 #
1852 # Cloud Run for Anthos: supported
1853 #
1854 # Host name to connect to, defaults to the pod IP. You probably want to set
1855 # &quot;Host&quot; in httpHeaders instead.
1856 &quot;scheme&quot;: &quot;A String&quot;, # (Optional)
1857 #
1858 # Cloud Run fully managed: not supported
1859 #
1860 # Cloud Run for Anthos: supported
1861 #
1862 # Scheme to use for connecting to the host.
1863 # Defaults to HTTP.
Bu Sun Kim65020912020-05-20 12:08:20 -07001864 &quot;httpHeaders&quot;: [ # (Optional)
1865 #
1866 # Cloud Run fully managed: not supported
1867 #
1868 # Cloud Run for Anthos: supported
1869 #
1870 # Custom headers to set in the request. HTTP allows repeated headers.
1871 { # Cloud Run fully managed: not supported
1872 #
1873 # Cloud Run for Anthos: supported
1874 #
1875 # HTTPHeader describes a custom header to be used in HTTP probes
1876 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1877 #
1878 # Cloud Run for Anthos: supported
1879 #
1880 # The header field name
1881 &quot;value&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1882 #
1883 # Cloud Run for Anthos: supported
1884 #
1885 # The header field value
1886 },
1887 ],
1888 &quot;path&quot;: &quot;A String&quot;, # (Optional)
1889 #
1890 # Cloud Run fully managed: not supported
1891 #
1892 # Cloud Run for Anthos: supported
1893 #
1894 # Path to access on the HTTP server.
Bu Sun Kim65020912020-05-20 12:08:20 -07001895 },
1896 &quot;failureThreshold&quot;: 42, # (Optional)
1897 #
1898 # Cloud Run fully managed: not supported
1899 #
1900 # Cloud Run for Anthos: supported
1901 #
1902 # Minimum consecutive failures for the probe to be considered failed after
1903 # having succeeded. Defaults to 3. Minimum value is 1.
1904 &quot;exec&quot;: { # Cloud Run fully managed: not supported # (Optional)
1905 #
1906 # Cloud Run fully managed: not supported
1907 #
1908 # Cloud Run for Anthos: supported
1909 #
1910 # One and only one of the following should be specified.
1911 # Exec specifies the action to take.
1912 #
1913 # A field inlined from the Handler message.
1914 #
1915 # Cloud Run for Anthos: supported
1916 #
1917 # ExecAction describes a &quot;run in container&quot; action.
1918 &quot;command&quot;: &quot;A String&quot;, # (Optional)
1919 #
1920 # Cloud Run fully managed: not supported
1921 #
1922 # Cloud Run for Anthos: supported
1923 #
1924 # Command is the command line to execute inside the container, the working
1925 # directory for the command is root (&#x27;/&#x27;) in the container&#x27;s filesystem. The
1926 # command is simply exec&#x27;d, it is not run inside a shell, so traditional
1927 # shell instructions (&#x27;|&#x27;, etc) won&#x27;t work. To use a shell, you need to
1928 # explicitly call out to that shell. Exit status of 0 is treated as
1929 # live/healthy and non-zero is unhealthy.
1930 },
1931 &quot;initialDelaySeconds&quot;: 42, # (Optional)
1932 #
1933 # Cloud Run fully managed: not supported
1934 #
1935 # Cloud Run for Anthos: supported
1936 #
1937 # Number of seconds after the container has started before liveness probes
1938 # are initiated. More info:
1939 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
1940 &quot;timeoutSeconds&quot;: 42, # (Optional)
1941 #
1942 # Cloud Run fully managed: not supported
1943 #
1944 # Cloud Run for Anthos: supported
1945 #
1946 # Number of seconds after which the probe times out.
1947 # Defaults to 1 second. Minimum value is 1.
1948 # More info:
1949 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
1950 &quot;successThreshold&quot;: 42, # (Optional)
1951 #
1952 # Cloud Run fully managed: not supported
1953 #
1954 # Cloud Run for Anthos: supported
1955 #
1956 # Minimum consecutive successes for the probe to be considered successful
1957 # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value
1958 # is 1.
1959 &quot;periodSeconds&quot;: 42, # (Optional)
1960 #
1961 # Cloud Run fully managed: not supported
1962 #
1963 # Cloud Run for Anthos: supported
1964 #
1965 # How often (in seconds) to perform the probe.
1966 # Default to 10 seconds. Minimum value is 1.
1967 &quot;tcpSocket&quot;: { # Cloud Run fully managed: not supported # (Optional)
1968 #
1969 # Cloud Run fully managed: not supported
1970 #
1971 # Cloud Run for Anthos: supported
1972 #
1973 # TCPSocket specifies an action involving a TCP port.
1974 # TCP hooks not yet supported
1975 #
1976 # A field inlined from the Handler message.
1977 #
1978 # Cloud Run for Anthos: supported
1979 #
1980 # TCPSocketAction describes an action based on opening a socket
1981 &quot;port&quot;: 42, # Cloud Run fully managed: not supported
1982 #
1983 # Cloud Run for Anthos: supported
1984 #
1985 # Number or name of the port to access on the container.
1986 # Number must be in the range 1 to 65535.
1987 # Name must be an IANA_SVC_NAME.
1988 #
1989 # This field is currently limited to integer types only because of proto&#x27;s
1990 # inability to properly support the IntOrString golang type.
1991 &quot;host&quot;: &quot;A String&quot;, # (Optional)
1992 #
1993 # Cloud Run fully managed: not supported
1994 #
1995 # Cloud Run for Anthos: supported
1996 #
1997 # Optional: Host name to connect to, defaults to the pod IP.
1998 },
1999 },
2000 &quot;env&quot;: [ # (Optional)
2001 #
2002 # Cloud Run fully managed: supported
2003 #
2004 # Cloud Run for Anthos: supported
2005 #
2006 # List of environment variables to set in the container.
2007 { # EnvVar represents an environment variable present in a Container.
2008 &quot;name&quot;: &quot;A String&quot;, # Name of the environment variable. Must be a C_IDENTIFIER.
2009 &quot;valueFrom&quot;: { # Cloud Run fully managed: not supported # (Optional)
2010 #
2011 # Cloud Run fully managed: not supported
2012 #
2013 # Cloud Run for Anthos: supported
2014 #
2015 # Source for the environment variable&#x27;s value. Cannot be used if value is not
2016 # empty.
2017 #
2018 # Cloud Run for Anthos: supported
2019 #
2020 # EnvVarSource represents a source for the value of an EnvVar.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002021 &quot;configMapKeyRef&quot;: { # Cloud Run fully managed: not supported # (Optional)
2022 #
2023 # Cloud Run fully managed: not supported
2024 #
2025 # Cloud Run for Anthos: supported
2026 #
2027 # Selects a key of a ConfigMap.
2028 #
2029 # Cloud Run for Anthos: supported
2030 #
2031 # Selects a key from a ConfigMap.
2032 &quot;optional&quot;: True or False, # (Optional)
2033 #
2034 # Cloud Run fully managed: not supported
2035 #
2036 # Cloud Run for Anthos: supported
2037 #
2038 # Specify whether the ConfigMap or its key must be defined
2039 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2040 #
2041 # Cloud Run for Anthos: supported
2042 #
2043 # The key to select.
2044 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2045 #
2046 # Cloud Run for Anthos: supported
2047 #
2048 # The ConfigMap to select from.
2049 &quot;localObjectReference&quot;: { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined
2050 # directly into the message. Use the &quot;name&quot; field instead.
2051 #
2052 # Cloud Run for Anthos: supported
2053 #
2054 # LocalObjectReference contains enough information to let you locate the
2055 # referenced object inside the same namespace.
2056 &quot;name&quot;: &quot;A String&quot;, # (Optional)
2057 #
2058 # Cloud Run fully managed: not supported
2059 #
2060 # Cloud Run for Anthos: supported
2061 #
2062 # Name of the referent.
2063 # More info:
2064 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2065 },
2066 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002067 &quot;secretKeyRef&quot;: { # Cloud Run fully managed: not supported # (Optional)
2068 #
2069 # Cloud Run fully managed: not supported
2070 #
2071 # Cloud Run for Anthos: supported
2072 #
2073 # Selects a key of a secret in the pod&#x27;s namespace
2074 #
2075 # Cloud Run for Anthos: supported
2076 #
2077 # SecretKeySelector selects a key of a Secret.
2078 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2079 #
2080 # Cloud Run for Anthos: supported
2081 #
2082 # The key of the secret to select from. Must be a valid secret key.
2083 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2084 #
2085 # Cloud Run for Anthos: supported
2086 #
2087 # The name of the secret in the pod&#x27;s namespace to select from.
2088 &quot;localObjectReference&quot;: { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined
2089 # directly into the message. Use the &quot;name&quot; field instead.
2090 #
2091 # Cloud Run for Anthos: supported
2092 #
2093 # LocalObjectReference contains enough information to let you locate the
2094 # referenced object inside the same namespace.
2095 &quot;name&quot;: &quot;A String&quot;, # (Optional)
2096 #
2097 # Cloud Run fully managed: not supported
2098 #
2099 # Cloud Run for Anthos: supported
2100 #
2101 # Name of the referent.
2102 # More info:
2103 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2104 },
2105 &quot;optional&quot;: True or False, # (Optional)
2106 #
2107 # Cloud Run fully managed: not supported
2108 #
2109 # Cloud Run for Anthos: supported
2110 #
2111 # Specify whether the Secret or its key must be defined
2112 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002113 },
2114 &quot;value&quot;: &quot;A String&quot;, # (Optional)
2115 #
2116 # Variable references $(VAR_NAME) are expanded
2117 # using the previous defined environment variables in the container and
2118 # any route environment variables. If a variable cannot be resolved,
2119 # the reference in the input string will be unchanged. The $(VAR_NAME)
2120 # syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped
2121 # references will never be expanded, regardless of whether the variable
2122 # exists or not.
2123 # Defaults to &quot;&quot;.
2124 },
2125 ],
2126 &quot;resources&quot;: { # ResourceRequirements describes the compute resource requirements. # (Optional)
2127 #
2128 # Cloud Run fully managed: supported
2129 #
2130 # Cloud Run for Anthos: supported
2131 #
2132 # Compute Resources required by this container.
2133 # More info:
2134 # https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
2135 &quot;limits&quot;: { # (Optional)
2136 #
2137 # Cloud Run fully managed: Only memory and CPU are supported. Note: The only
2138 # supported value for CPU is &#x27;1&#x27;.
2139 #
2140 # Cloud Run for Anthos: supported
2141 #
2142 # Limits describes the maximum amount of compute resources allowed.
2143 # The values of the map is string form of the &#x27;quantity&#x27; k8s type:
2144 # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
2145 &quot;a_key&quot;: &quot;A String&quot;,
2146 },
2147 &quot;requests&quot;: { # (Optional)
2148 #
2149 # Cloud Run fully managed: Only memory and CPU are supported. Note: The only
2150 # supported value for CPU is &#x27;1&#x27;.
2151 #
2152 # Cloud Run for Anthos: supported
2153 #
2154 # Requests describes the minimum amount of compute resources required.
2155 # If Requests is omitted for a container, it defaults to Limits if that is
2156 # explicitly specified, otherwise to an implementation-defined value.
2157 # The values of the map is string form of the &#x27;quantity&#x27; k8s type:
2158 # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
2159 &quot;a_key&quot;: &quot;A String&quot;,
2160 },
2161 },
2162 &quot;readinessProbe&quot;: { # Cloud Run fully managed: not supported # (Optional)
2163 #
2164 # Cloud Run fully managed: not supported
2165 #
2166 # Cloud Run for Anthos: supported
2167 #
2168 # Periodic probe of container service readiness.
2169 # Container will be removed from service endpoints if the probe fails.
2170 # More info:
2171 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
2172 #
2173 # Cloud Run for Anthos: supported
2174 #
2175 # Probe describes a health check to be performed against a container to
2176 # determine whether it is alive or ready to receive traffic.
2177 &quot;httpGet&quot;: { # Cloud Run fully managed: not supported # (Optional)
2178 #
2179 # Cloud Run fully managed: not supported
2180 #
2181 # Cloud Run for Anthos: supported
2182 #
2183 # HTTPGet specifies the http request to perform.
2184 #
2185 # A field inlined from the Handler message.
2186 #
2187 # Cloud Run for Anthos: supported
2188 #
2189 # HTTPGetAction describes an action based on HTTP Get requests.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002190 &quot;host&quot;: &quot;A String&quot;, # (Optional)
2191 #
2192 # Cloud Run fully managed: not supported
2193 #
2194 # Cloud Run for Anthos: supported
2195 #
2196 # Host name to connect to, defaults to the pod IP. You probably want to set
2197 # &quot;Host&quot; in httpHeaders instead.
2198 &quot;scheme&quot;: &quot;A String&quot;, # (Optional)
2199 #
2200 # Cloud Run fully managed: not supported
2201 #
2202 # Cloud Run for Anthos: supported
2203 #
2204 # Scheme to use for connecting to the host.
2205 # Defaults to HTTP.
Bu Sun Kim65020912020-05-20 12:08:20 -07002206 &quot;httpHeaders&quot;: [ # (Optional)
2207 #
2208 # Cloud Run fully managed: not supported
2209 #
2210 # Cloud Run for Anthos: supported
2211 #
2212 # Custom headers to set in the request. HTTP allows repeated headers.
2213 { # Cloud Run fully managed: not supported
2214 #
2215 # Cloud Run for Anthos: supported
2216 #
2217 # HTTPHeader describes a custom header to be used in HTTP probes
2218 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2219 #
2220 # Cloud Run for Anthos: supported
2221 #
2222 # The header field name
2223 &quot;value&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2224 #
2225 # Cloud Run for Anthos: supported
2226 #
2227 # The header field value
2228 },
2229 ],
2230 &quot;path&quot;: &quot;A String&quot;, # (Optional)
2231 #
2232 # Cloud Run fully managed: not supported
2233 #
2234 # Cloud Run for Anthos: supported
2235 #
2236 # Path to access on the HTTP server.
Bu Sun Kim65020912020-05-20 12:08:20 -07002237 },
2238 &quot;failureThreshold&quot;: 42, # (Optional)
2239 #
2240 # Cloud Run fully managed: not supported
2241 #
2242 # Cloud Run for Anthos: supported
2243 #
2244 # Minimum consecutive failures for the probe to be considered failed after
2245 # having succeeded. Defaults to 3. Minimum value is 1.
2246 &quot;exec&quot;: { # Cloud Run fully managed: not supported # (Optional)
2247 #
2248 # Cloud Run fully managed: not supported
2249 #
2250 # Cloud Run for Anthos: supported
2251 #
2252 # One and only one of the following should be specified.
2253 # Exec specifies the action to take.
2254 #
2255 # A field inlined from the Handler message.
2256 #
2257 # Cloud Run for Anthos: supported
2258 #
2259 # ExecAction describes a &quot;run in container&quot; action.
2260 &quot;command&quot;: &quot;A String&quot;, # (Optional)
2261 #
2262 # Cloud Run fully managed: not supported
2263 #
2264 # Cloud Run for Anthos: supported
2265 #
2266 # Command is the command line to execute inside the container, the working
2267 # directory for the command is root (&#x27;/&#x27;) in the container&#x27;s filesystem. The
2268 # command is simply exec&#x27;d, it is not run inside a shell, so traditional
2269 # shell instructions (&#x27;|&#x27;, etc) won&#x27;t work. To use a shell, you need to
2270 # explicitly call out to that shell. Exit status of 0 is treated as
2271 # live/healthy and non-zero is unhealthy.
2272 },
2273 &quot;initialDelaySeconds&quot;: 42, # (Optional)
2274 #
2275 # Cloud Run fully managed: not supported
2276 #
2277 # Cloud Run for Anthos: supported
2278 #
2279 # Number of seconds after the container has started before liveness probes
2280 # are initiated. More info:
2281 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
2282 &quot;timeoutSeconds&quot;: 42, # (Optional)
2283 #
2284 # Cloud Run fully managed: not supported
2285 #
2286 # Cloud Run for Anthos: supported
2287 #
2288 # Number of seconds after which the probe times out.
2289 # Defaults to 1 second. Minimum value is 1.
2290 # More info:
2291 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
2292 &quot;successThreshold&quot;: 42, # (Optional)
2293 #
2294 # Cloud Run fully managed: not supported
2295 #
2296 # Cloud Run for Anthos: supported
2297 #
2298 # Minimum consecutive successes for the probe to be considered successful
2299 # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value
2300 # is 1.
2301 &quot;periodSeconds&quot;: 42, # (Optional)
2302 #
2303 # Cloud Run fully managed: not supported
2304 #
2305 # Cloud Run for Anthos: supported
2306 #
2307 # How often (in seconds) to perform the probe.
2308 # Default to 10 seconds. Minimum value is 1.
2309 &quot;tcpSocket&quot;: { # Cloud Run fully managed: not supported # (Optional)
2310 #
2311 # Cloud Run fully managed: not supported
2312 #
2313 # Cloud Run for Anthos: supported
2314 #
2315 # TCPSocket specifies an action involving a TCP port.
2316 # TCP hooks not yet supported
2317 #
2318 # A field inlined from the Handler message.
2319 #
2320 # Cloud Run for Anthos: supported
2321 #
2322 # TCPSocketAction describes an action based on opening a socket
2323 &quot;port&quot;: 42, # Cloud Run fully managed: not supported
2324 #
2325 # Cloud Run for Anthos: supported
2326 #
2327 # Number or name of the port to access on the container.
2328 # Number must be in the range 1 to 65535.
2329 # Name must be an IANA_SVC_NAME.
2330 #
2331 # This field is currently limited to integer types only because of proto&#x27;s
2332 # inability to properly support the IntOrString golang type.
2333 &quot;host&quot;: &quot;A String&quot;, # (Optional)
2334 #
2335 # Cloud Run fully managed: not supported
2336 #
2337 # Cloud Run for Anthos: supported
2338 #
2339 # Optional: Host name to connect to, defaults to the pod IP.
2340 },
2341 },
2342 &quot;imagePullPolicy&quot;: &quot;A String&quot;, # (Optional)
2343 #
2344 # Cloud Run fully managed: not supported
2345 #
2346 # Cloud Run for Anthos: supported
2347 #
2348 # Image pull policy.
2349 # One of Always, Never, IfNotPresent.
2350 # Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
2351 # More info:
2352 # https://kubernetes.io/docs/concepts/containers/images#updating-images
2353 &quot;terminationMessagePath&quot;: &quot;A String&quot;, # (Optional)
2354 #
2355 # Cloud Run fully managed: not supported
2356 #
2357 # Cloud Run for Anthos: supported
2358 #
2359 # Path at which the file to which the container&#x27;s termination
2360 # message will be written is mounted into the container&#x27;s filesystem. Message
2361 # written is intended to be brief final status, such as an assertion failure
2362 # message. Will be truncated by the node if greater than 4096 bytes. The
2363 # total message length across all containers will be limited to 12kb.
2364 # Defaults to /dev/termination-log.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002365 &quot;volumeMounts&quot;: [ # (Optional)
2366 #
2367 # Cloud Run fully managed: not supported
2368 #
2369 # Cloud Run for Anthos: supported
2370 #
2371 # Pod volumes to mount into the container&#x27;s filesystem.
2372 { # Cloud Run fully managed: not supported
2373 #
2374 # Cloud Run for Anthos: supported
2375 #
2376 # VolumeMount describes a mounting of a Volume within a container.
2377 &quot;mountPath&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2378 #
2379 # Cloud Run for Anthos: supported
2380 #
2381 # Path within the container at which the volume should be mounted. Must
2382 # not contain &#x27;:&#x27;.
2383 &quot;subPath&quot;: &quot;A String&quot;, # (Optional)
2384 #
2385 # Cloud Run fully managed: not supported
2386 #
2387 # Cloud Run for Anthos: supported
2388 #
2389 # Path within the volume from which the container&#x27;s volume should be mounted.
2390 # Defaults to &quot;&quot; (volume&#x27;s root).
2391 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2392 #
2393 # Cloud Run for Anthos: supported
2394 #
2395 # This must match the Name of a Volume.
2396 &quot;readOnly&quot;: True or False, # (Optional)
2397 #
2398 # Cloud Run fully managed: not supported
2399 #
2400 # Cloud Run for Anthos: supported
2401 #
2402 # Only true is accepted.
2403 # Defaults to true.
2404 },
2405 ],
2406 &quot;args&quot;: [ # (Optional)
2407 #
2408 # Cloud Run fully managed: supported
2409 #
2410 # Cloud Run for Anthos: supported
2411 #
2412 # Arguments to the entrypoint.
2413 # The docker image&#x27;s CMD is used if this is not provided.
2414 # Variable references $(VAR_NAME) are expanded using the container&#x27;s
2415 # environment. If a variable cannot be resolved, the reference in the input
2416 # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
2417 # double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
2418 # regardless of whether the variable exists or not.
2419 # More info:
2420 # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
2421 &quot;A String&quot;,
2422 ],
2423 &quot;workingDir&quot;: &quot;A String&quot;, # (Optional)
2424 #
2425 # Cloud Run fully managed: not supported
2426 #
2427 # Cloud Run for Anthos: supported
2428 #
2429 # Container&#x27;s working directory.
2430 # If not specified, the container runtime&#x27;s default will be used, which
2431 # might be configured in the container image.
2432 &quot;ports&quot;: [ # (Optional)
2433 #
2434 # List of ports to expose from the container. Only a single port can be
2435 # specified. The specified ports must be listening on all interfaces
2436 # (0.0.0.0) within the container to be accessible.
2437 #
2438 # If omitted, a port number will be chosen and passed to the container
2439 # through the PORT environment variable for the container to listen on.
2440 { # ContainerPort represents a network port in a single container.
2441 &quot;containerPort&quot;: 42, # (Optional)
2442 #
2443 # Port number the container listens on.
2444 # This must be a valid port number, 0 &lt; x &lt; 65536.
2445 &quot;protocol&quot;: &quot;A String&quot;, # (Optional)
2446 #
2447 # Cloud Run fully managed: not supported
2448 #
2449 # Cloud Run for Anthos: supported
2450 #
2451 # Protocol for port. Must be &quot;TCP&quot;.
2452 # Defaults to &quot;TCP&quot;.
2453 &quot;name&quot;: &quot;A String&quot;, # (Optional)
2454 #
2455 # Cloud Run fully managed: not supported
2456 #
2457 # Cloud Run for Anthos: supported
2458 #
2459 # If specified, used to specify which protocol to use.
2460 # Allowed values are &quot;http1&quot; and &quot;h2c&quot;.
2461 },
2462 ],
2463 &quot;image&quot;: &quot;A String&quot;, # Cloud Run fully managed: only supports containers from Google Container
2464 # Registry
2465 #
2466 # Cloud Run for Anthos: supported
2467 #
2468 # URL of the Container image.
2469 # More info: https://kubernetes.io/docs/concepts/containers/images
2470 &quot;envFrom&quot;: [ # (Optional)
2471 #
2472 # Cloud Run fully managed: not supported
2473 #
2474 # Cloud Run for Anthos: supported
2475 #
2476 # List of sources to populate environment variables in the container.
2477 # The keys defined within a source must be a C_IDENTIFIER. All invalid keys
2478 # will be reported as an event when the container is starting. When a key
2479 # exists in multiple sources, the value associated with the last source will
2480 # take precedence. Values defined by an Env with a duplicate key will take
2481 # precedence. Cannot be updated.
2482 { # Cloud Run fully managed: not supported
2483 #
2484 # Cloud Run for Anthos: supported
2485 #
2486 # EnvFromSource represents the source of a set of ConfigMaps
2487 &quot;secretRef&quot;: { # Cloud Run fully managed: not supported # (Optional)
2488 #
2489 # Cloud Run fully managed: not supported
2490 #
2491 # Cloud Run for Anthos: supported
2492 #
2493 # The Secret to select from
2494 #
2495 # Cloud Run for Anthos: supported
2496 #
2497 # SecretEnvSource selects a Secret to populate the environment
2498 # variables with.
2499 #
2500 # The contents of the target Secret&#x27;s Data field will represent the
2501 # key-value pairs as environment variables.
2502 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2503 #
2504 # Cloud Run for Anthos: supported
2505 #
2506 # The Secret to select from.
2507 &quot;localObjectReference&quot;: { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined
2508 # directly into the message. Use the &quot;name&quot; field instead.
2509 #
2510 # Cloud Run for Anthos: supported
2511 #
2512 # LocalObjectReference contains enough information to let you locate the
2513 # referenced object inside the same namespace.
2514 &quot;name&quot;: &quot;A String&quot;, # (Optional)
2515 #
2516 # Cloud Run fully managed: not supported
2517 #
2518 # Cloud Run for Anthos: supported
2519 #
2520 # Name of the referent.
2521 # More info:
2522 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2523 },
2524 &quot;optional&quot;: True or False, # (Optional)
2525 #
2526 # Cloud Run fully managed: not supported
2527 #
2528 # Cloud Run for Anthos: supported
2529 #
2530 # Specify whether the Secret must be defined
2531 },
2532 &quot;prefix&quot;: &quot;A String&quot;, # (Optional)
2533 #
2534 # Cloud Run fully managed: not supported
2535 #
2536 # Cloud Run for Anthos: supported
2537 #
2538 # An optional identifier to prepend to each key in the ConfigMap. Must be a
2539 # C_IDENTIFIER.
2540 &quot;configMapRef&quot;: { # Cloud Run fully managed: not supported # (Optional)
2541 #
2542 # Cloud Run fully managed: not supported
2543 #
2544 # Cloud Run for Anthos: supported
2545 #
2546 # The ConfigMap to select from
2547 #
2548 # Cloud Run for Anthos: supported
2549 #
2550 # ConfigMapEnvSource selects a ConfigMap to populate the environment
2551 # variables with.
2552 #
2553 # The contents of the target ConfigMap&#x27;s Data field will represent the
2554 # key-value pairs as environment variables.
2555 &quot;localObjectReference&quot;: { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined
2556 # directly into the message. Use the &quot;name&quot; field instead.
2557 #
2558 # Cloud Run for Anthos: supported
2559 #
2560 # LocalObjectReference contains enough information to let you locate the
2561 # referenced object inside the same namespace.
2562 &quot;name&quot;: &quot;A String&quot;, # (Optional)
2563 #
2564 # Cloud Run fully managed: not supported
2565 #
2566 # Cloud Run for Anthos: supported
2567 #
2568 # Name of the referent.
2569 # More info:
2570 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2571 },
2572 &quot;optional&quot;: True or False, # (Optional)
2573 #
2574 # Cloud Run fully managed: not supported
2575 #
2576 # Cloud Run for Anthos: supported
2577 #
2578 # Specify whether the ConfigMap must be defined
2579 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2580 #
2581 # Cloud Run for Anthos: supported
2582 #
2583 # The ConfigMap to select from.
2584 },
2585 },
2586 ],
2587 &quot;name&quot;: &quot;A String&quot;, # (Optional)
2588 #
2589 # Name of the container specified as a DNS_LABEL.
2590 &quot;command&quot;: [
2591 &quot;A String&quot;,
2592 ],
2593 &quot;terminationMessagePolicy&quot;: &quot;A String&quot;, # (Optional)
2594 #
2595 # Cloud Run fully managed: not supported
2596 #
2597 # Cloud Run for Anthos: supported
2598 #
2599 # Indicate how the termination message should be populated. File will use the
2600 # contents of terminationMessagePath to populate the container status message
2601 # on both success and failure. FallbackToLogsOnError will use the last chunk
2602 # of container log output if the termination message file is empty and the
2603 # container exited with an error. The log output is limited to 2048 bytes or
2604 # 80 lines, whichever is smaller. Defaults to File. Cannot be updated.
Bu Sun Kim65020912020-05-20 12:08:20 -07002605 },
2606 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002607 &quot;volumes&quot;: [
2608 { # Cloud Run fully managed: not supported
2609 #
2610 # Cloud Run for Anthos: supported
2611 #
2612 # Volume represents a named volume in a container.
2613 &quot;configMap&quot;: { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
2614 #
2615 # Cloud Run for Anthos: supported
2616 #
2617 # Cloud Run for Anthos: supported
2618 #
2619 # Adapts a ConfigMap into a volume.
2620 # The contents of the target ConfigMap&#x27;s Data field will be presented in a
2621 # volume as files using the keys in the Data field as the file names, unless
2622 # the items element is populated with specific mappings of keys to paths.
2623 &quot;optional&quot;: True or False, # (Optional)
2624 #
2625 # Cloud Run fully managed: not supported
2626 #
2627 # Cloud Run for Anthos: supported
2628 #
2629 # Specify whether the Secret or its keys must be defined.
2630 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2631 #
2632 # Cloud Run for Anthos: supported
2633 #
2634 # Name of the config.
2635 &quot;defaultMode&quot;: 42, # (Optional)
2636 #
2637 # Cloud Run fully managed: not supported
2638 #
2639 # Cloud Run for Anthos: supported
2640 #
2641 # Mode bits to use on created files by default. Must be a value between 0 and
2642 # 0777. Defaults to 0644. Directories within the path are not affected by
2643 # this setting. This might be in conflict with other options that affect the
2644 # file mode, like fsGroup, and the result can be other mode bits set.
2645 &quot;items&quot;: [ # (Optional)
2646 #
2647 # Cloud Run fully managed: not supported
2648 #
2649 # Cloud Run for Anthos: supported
2650 #
2651 # If unspecified, each key-value pair in the Data field of the referenced
2652 # Secret will be projected into the volume as a file whose name is the
2653 # key and content is the value. If specified, the listed keys will be
2654 # projected into the specified paths, and unlisted keys will not be
2655 # present. If a key is specified which is not present in the Secret,
2656 # the volume setup will error unless it is marked optional.
2657 { # Cloud Run fully managed: not supported
2658 #
2659 # Cloud Run for Anthos: supported
2660 #
2661 # Maps a string key to a path within a volume.
2662 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2663 #
2664 # Cloud Run for Anthos: supported
2665 #
2666 # The key to project.
2667 &quot;path&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2668 #
2669 # Cloud Run for Anthos: supported
2670 #
2671 # The relative path of the file to map the key to.
2672 # May not be an absolute path.
2673 # May not contain the path element &#x27;..&#x27;.
2674 # May not start with the string &#x27;..&#x27;.
2675 &quot;mode&quot;: 42, # (Optional)
2676 #
2677 # Cloud Run fully managed: not supported
2678 #
2679 # Cloud Run for Anthos: supported
2680 #
2681 # Mode bits to use on this file, must be a value between 0 and 0777. If not
2682 # specified, the volume defaultMode will be used. This might be in conflict
2683 # with other options that affect the file mode, like fsGroup, and the result
2684 # can be other mode bits set.
2685 },
2686 ],
2687 },
2688 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2689 #
2690 # Cloud Run for Anthos: supported
2691 #
2692 # Volume&#x27;s name.
2693 &quot;secret&quot;: { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
2694 #
2695 # Cloud Run for Anthos: supported
2696 #
2697 # Cloud Run for Anthos: supported
2698 #
2699 # The contents of the target Secret&#x27;s Data field will be presented in a volume
2700 # as files using the keys in the Data field as the file names.
2701 &quot;secretName&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2702 #
2703 # Cloud Run for Anthos: supported
2704 #
2705 # Name of the secret in the container&#x27;s namespace to use.
2706 &quot;items&quot;: [ # (Optional)
2707 #
2708 # Cloud Run fully managed: not supported
2709 #
2710 # Cloud Run for Anthos: supported
2711 #
2712 # If unspecified, each key-value pair in the Data field of the referenced
2713 # Secret will be projected into the volume as a file whose name is the
2714 # key and content is the value. If specified, the listed keys will be
2715 # projected into the specified paths, and unlisted keys will not be
2716 # present. If a key is specified which is not present in the Secret,
2717 # the volume setup will error unless it is marked optional.
2718 { # Cloud Run fully managed: not supported
2719 #
2720 # Cloud Run for Anthos: supported
2721 #
2722 # Maps a string key to a path within a volume.
2723 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2724 #
2725 # Cloud Run for Anthos: supported
2726 #
2727 # The key to project.
2728 &quot;path&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2729 #
2730 # Cloud Run for Anthos: supported
2731 #
2732 # The relative path of the file to map the key to.
2733 # May not be an absolute path.
2734 # May not contain the path element &#x27;..&#x27;.
2735 # May not start with the string &#x27;..&#x27;.
2736 &quot;mode&quot;: 42, # (Optional)
2737 #
2738 # Cloud Run fully managed: not supported
2739 #
2740 # Cloud Run for Anthos: supported
2741 #
2742 # Mode bits to use on this file, must be a value between 0 and 0777. If not
2743 # specified, the volume defaultMode will be used. This might be in conflict
2744 # with other options that affect the file mode, like fsGroup, and the result
2745 # can be other mode bits set.
2746 },
2747 ],
2748 &quot;optional&quot;: True or False, # (Optional)
2749 #
2750 # Cloud Run fully managed: not supported
2751 #
2752 # Cloud Run for Anthos: supported
2753 #
2754 # Specify whether the Secret or its keys must be defined.
2755 &quot;defaultMode&quot;: 42, # (Optional)
2756 #
2757 # Cloud Run fully managed: not supported
2758 #
2759 # Cloud Run for Anthos: supported
2760 #
2761 # Mode bits to use on created files by default. Must be a value between 0 and
2762 # 0777. Defaults to 0644. Directories within the path are not affected by
2763 # this setting. This might be in conflict with other options that affect the
2764 # file mode, like fsGroup, and the result can be other mode bits set.
2765 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002766 },
2767 ],
2768 },
2769 },
2770 ],
2771 &quot;apiVersion&quot;: &quot;A String&quot;, # The API version for this call such as &quot;serving.knative.dev/v1&quot;.
2772 &quot;kind&quot;: &quot;A String&quot;, # The kind of this resource, in this case &quot;RevisionList&quot;.
2773 &quot;unreachable&quot;: [ # Locations that could not be reached.
2774 &quot;A String&quot;,
2775 ],
2776 }</pre>
2777</div>
2778
2779</body></html>