Skip to content

Commit

Permalink
feat: Adds support for Startup CPU Boost (GA)
Browse files Browse the repository at this point in the history
feat: Adds support for Session affinity in Service (GA)
feat: New 'port' field for HttpGetAction probe type
feat: New fields/enum values
docs: General documentation fixes.

Startup CPU Boost
 * The new field is found in https://cloud.google.com/run/docs/reference/rest/v2/Container#resourcerequirements.
 * For more information, see https://cloud.google.com/run/docs/configuring/cpu#startup-boost

Session Affinity
 * The new field is found in https://cloud.google.com/run/docs/reference/rest/v2/projects.locations.services#revisiontemplate.
 * For more informaton, see https://cloud.google.com/run/docs/configuring/session-affinity

HttpGetAction probe port
 * The new field is found in https://cloud.google.com/run/docs/reference/rest/v2/Container#httpgetaction

Fields/enum values
* New output-only field satisfiesPzs in Service, Revision, Execution, and Job, currently unused. The field is reserved for future use. It is surfaced to maintain v1<->v2 portability.
* New ExecutionReason.CANCELLING enum value. This is used in output-only field.

Documentation fixes
* Clarified permissions required for Upsert behavior (UpdateServiceRequest.allowMissing)
* Clarified behavior for LaunchStage in all resource types.
* Misc documentation improvements; removed most external references.

PiperOrigin-RevId: 528248744

Source-Link: googleapis/googleapis@a9fb0d2

Source-Link: googleapis/googleapis-gen@8ffce4c
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuUnVuLlYyLy5Pd2xCb3QueWFtbCIsImgiOiI4ZmZjZTRjMTFiOTc5MjhhZThiMTcyNzY1N2FiMjAzZGFkNjU5N2U0In0=
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Apr 30, 2023
1 parent d30c851 commit 32b5017
Show file tree
Hide file tree
Showing 15 changed files with 795 additions and 395 deletions.
18 changes: 11 additions & 7 deletions apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/Condition.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static partial class ConditionReflection {
string.Concat(
"CiNnb29nbGUvY2xvdWQvcnVuL3YyL2NvbmRpdGlvbi5wcm90bxITZ29vZ2xl",
"LmNsb3VkLnJ1bi52MhofZ29vZ2xlL3Byb3RvYnVmL3RpbWVzdGFtcC5wcm90",
"byL/CwoJQ29uZGl0aW9uEgwKBHR5cGUYASABKAkSMwoFc3RhdGUYAiABKA4y",
"byKQDAoJQ29uZGl0aW9uEgwKBHR5cGUYASABKAkSMwoFc3RhdGUYAiABKA4y",
"JC5nb29nbGUuY2xvdWQucnVuLnYyLkNvbmRpdGlvbi5TdGF0ZRIPCgdtZXNz",
"YWdlGAMgASgJEjgKFGxhc3RfdHJhbnNpdGlvbl90aW1lGAQgASgLMhouZ29v",
"Z2xlLnByb3RvYnVmLlRpbWVzdGFtcBI5CghzZXZlcml0eRgFIAEoDjInLmdv",
Expand Down Expand Up @@ -57,12 +57,12 @@ public static partial class ConditionReflection {
"Ch1NSU5fSU5TVEFOQ0VTX05PVF9QUk9WSVNJT05FRBAIEiEKHUFDVElWRV9S",
"RVZJU0lPTl9MSU1JVF9SRUFDSEVEEAkSEQoNTk9fREVQTE9ZTUVOVBAKEhgK",
"FEhFQUxUSF9DSEVDS19TS0lQUEVEEAsSGQoVTUlOX0lOU1RBTkNFU19XQVJN",
"SU5HEAwifgoPRXhlY3V0aW9uUmVhc29uEh4KGkVYRUNVVElPTl9SRUFTT05f",
"VU5ERUZJTkVEEAASJAogSk9CX1NUQVRVU19TRVJWSUNFX1BPTExJTkdfRVJS",
"T1IQARIWChJOT05fWkVST19FWElUX0NPREUQAhINCglDQU5DRUxMRUQQA0IJ",
"CgdyZWFzb25zQlYKF2NvbS5nb29nbGUuY2xvdWQucnVuLnYyQg5Db25kaXRp",
"b25Qcm90b1ABWiljbG91ZC5nb29nbGUuY29tL2dvL3J1bi9hcGl2Mi9ydW5w",
"YjtydW5wYmIGcHJvdG8z"));
"SU5HEAwijgEKD0V4ZWN1dGlvblJlYXNvbhIeChpFWEVDVVRJT05fUkVBU09O",
"X1VOREVGSU5FRBAAEiQKIEpPQl9TVEFUVVNfU0VSVklDRV9QT0xMSU5HX0VS",
"Uk9SEAESFgoSTk9OX1pFUk9fRVhJVF9DT0RFEAISDQoJQ0FOQ0VMTEVEEAMS",
"DgoKQ0FOQ0VMTElORxAEQgkKB3JlYXNvbnNCVgoXY29tLmdvb2dsZS5jbG91",
"ZC5ydW4udjJCDkNvbmRpdGlvblByb3RvUAFaKWNsb3VkLmdvb2dsZS5jb20v",
"Z28vcnVuL2FwaXYyL3J1bnBiO3J1bnBiYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
Expand Down Expand Up @@ -806,6 +806,10 @@ public enum ExecutionReason {
/// The execution was cancelled by users.
/// </summary>
[pbr::OriginalName("CANCELLED")] Cancelled = 3,
/// <summary>
/// The execution is in the process of being cancelled.
/// </summary>
[pbr::OriginalName("CANCELLING")] Cancelling = 4,
}

}
Expand Down
160 changes: 102 additions & 58 deletions apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2/Execution.g.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// source: google/cloud/run/v2/execution.proto
// </auto-generated>
// Original file comments:
// Copyright 2022 Google LLC
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,13 @@ public sealed partial class ExecutionTemplate : pb::IMessage<ExecutionTemplate>
= new pbc::MapField<string, string>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 10);
private readonly pbc::MapField<string, string> labels_ = new pbc::MapField<string, string>();
/// <summary>
/// KRM-style labels for the resource.
/// Unstructured key value map that can be used to organize and categorize
/// objects.
/// User-provided labels are shared with Google's billing system, so they can
/// be used to filter, or break down billing charges by team, component,
/// environment, state, etc. For more information, visit
/// https://cloud.google.com/resource-manager/docs/creating-managing-labels or
/// https://cloud.google.com/run/docs/configuring/labels.
///
/// &lt;p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
/// `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
Expand All @@ -125,12 +131,17 @@ public sealed partial class ExecutionTemplate : pb::IMessage<ExecutionTemplate>
= new pbc::MapField<string, string>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 18);
private readonly pbc::MapField<string, string> annotations_ = new pbc::MapField<string, string>();
/// <summary>
/// KRM-style annotations for the resource.
/// Unstructured key value map that may be set by external tools to store and
/// arbitrary metadata. They are not queryable and should be preserved
/// when modifying objects.
///
/// &lt;p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
/// `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
/// namespaces, and they will be rejected. All system annotations in v1 now
/// have a corresponding field in v2 ExecutionTemplate.
///
/// &lt;p>This field follows Kubernetes annotations' namespacing, limits, and
/// rules.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Expand Down Expand Up @@ -165,9 +176,7 @@ public sealed partial class ExecutionTemplate : pb::IMessage<ExecutionTemplate>
/// <summary>
/// Specifies the desired number of tasks the execution should run.
/// Setting to 1 means that parallelism is limited to 1 and the success of
/// that task signals the success of the execution.
/// More info:
/// https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
/// that task signals the success of the execution. Defaults to 1.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Expand Down
Loading

0 comments on commit 32b5017

Please sign in to comment.