Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit f774719

Browse files
feat: added High Throughput Logging API for Google Kubernetes Engine (#297)
- [ ] Regenerate this pull request now. docs: ReservationAffinity key field docs incorrect docs: missing period in description for min CPU platform PiperOrigin-RevId: 474706444 Source-Link: googleapis/googleapis@a5a8829 Source-Link: https://github.com/googleapis/googleapis-gen/commit/992389d809ed37f8fd4d787209048551d9e61154 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTkyMzg5ZDgwOWVkMzdmOGZkNGQ3ODcyMDkwNDg1NTFkOWU2MTE1NCJ9 PiperOrigin-RevId: 474671838 Source-Link: googleapis/googleapis@9212f73 Source-Link: https://github.com/googleapis/googleapis-gen/commit/37e23437f2e8778b75d034d29401f75cca97493c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzdlMjM0MzdmMmU4Nzc4Yjc1ZDAzNGQyOTQwMWY3NWNjYTk3NDkzYyJ9
1 parent 5efe96e commit f774719

File tree

9 files changed

+167
-9
lines changed

9 files changed

+167
-9
lines changed

google/cloud/container/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
ListUsableSubnetworksResponse,
8383
LoggingComponentConfig,
8484
LoggingConfig,
85+
LoggingVariantConfig,
8586
MaintenanceExclusionOptions,
8687
MaintenancePolicy,
8788
MaintenanceWindow,
@@ -106,6 +107,7 @@
106107
NodePoolAutoConfig,
107108
NodePoolAutoscaling,
108109
NodePoolDefaults,
110+
NodePoolLoggingConfig,
109111
NodePoolUpdateStrategy,
110112
NodeTaint,
111113
NodeTaints,
@@ -219,6 +221,7 @@
219221
"ListUsableSubnetworksResponse",
220222
"LoggingComponentConfig",
221223
"LoggingConfig",
224+
"LoggingVariantConfig",
222225
"MaintenanceExclusionOptions",
223226
"MaintenancePolicy",
224227
"MaintenanceWindow",
@@ -243,6 +246,7 @@
243246
"NodePoolAutoConfig",
244247
"NodePoolAutoscaling",
245248
"NodePoolDefaults",
249+
"NodePoolLoggingConfig",
246250
"NodeTaint",
247251
"NodeTaints",
248252
"NotificationConfig",

google/cloud/container_v1/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
ListUsableSubnetworksResponse,
7878
LoggingComponentConfig,
7979
LoggingConfig,
80+
LoggingVariantConfig,
8081
MaintenanceExclusionOptions,
8182
MaintenancePolicy,
8283
MaintenanceWindow,
@@ -101,6 +102,7 @@
101102
NodePoolAutoConfig,
102103
NodePoolAutoscaling,
103104
NodePoolDefaults,
105+
NodePoolLoggingConfig,
104106
NodePoolUpdateStrategy,
105107
NodeTaint,
106108
NodeTaints,
@@ -215,6 +217,7 @@
215217
"ListUsableSubnetworksResponse",
216218
"LoggingComponentConfig",
217219
"LoggingConfig",
220+
"LoggingVariantConfig",
218221
"MaintenanceExclusionOptions",
219222
"MaintenancePolicy",
220223
"MaintenanceWindow",
@@ -239,6 +242,7 @@
239242
"NodePoolAutoConfig",
240243
"NodePoolAutoscaling",
241244
"NodePoolDefaults",
245+
"NodePoolLoggingConfig",
242246
"NodePoolUpdateStrategy",
243247
"NodeTaint",
244248
"NodeTaints",

google/cloud/container_v1/types/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
ListUsableSubnetworksResponse,
7676
LoggingComponentConfig,
7777
LoggingConfig,
78+
LoggingVariantConfig,
7879
MaintenanceExclusionOptions,
7980
MaintenancePolicy,
8081
MaintenanceWindow,
@@ -99,6 +100,7 @@
99100
NodePoolAutoConfig,
100101
NodePoolAutoscaling,
101102
NodePoolDefaults,
103+
NodePoolLoggingConfig,
102104
NodePoolUpdateStrategy,
103105
NodeTaint,
104106
NodeTaints,
@@ -210,6 +212,7 @@
210212
"ListUsableSubnetworksResponse",
211213
"LoggingComponentConfig",
212214
"LoggingConfig",
215+
"LoggingVariantConfig",
213216
"MaintenanceExclusionOptions",
214217
"MaintenancePolicy",
215218
"MaintenanceWindow",
@@ -234,6 +237,7 @@
234237
"NodePoolAutoConfig",
235238
"NodePoolAutoscaling",
236239
"NodePoolDefaults",
240+
"NodePoolLoggingConfig",
237241
"NodeTaint",
238242
"NodeTaints",
239243
"NotificationConfig",

google/cloud/container_v1/types/cluster_service.py

Lines changed: 72 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@
154154
"LoggingConfig",
155155
"LoggingComponentConfig",
156156
"MonitoringConfig",
157+
"NodePoolLoggingConfig",
158+
"LoggingVariantConfig",
157159
"MonitoringComponentConfig",
158160
"ManagedPrometheusConfig",
159161
},
@@ -469,6 +471,8 @@ class NodeConfig(proto.Message):
469471
Confidential nodes config.
470472
All the nodes in the node pool will be
471473
Confidential VM once enabled.
474+
logging_config (google.cloud.container_v1.types.NodePoolLoggingConfig):
475+
Logging configuration.
472476
"""
473477

474478
machine_type = proto.Field(
@@ -593,6 +597,11 @@ class NodeConfig(proto.Message):
593597
number=35,
594598
message="ConfidentialNodes",
595599
)
600+
logging_config = proto.Field(
601+
proto.MESSAGE,
602+
number=38,
603+
message="NodePoolLoggingConfig",
604+
)
596605

597606

598607
class AdvancedMachineFeatures(proto.Message):
@@ -795,8 +804,8 @@ class ReservationAffinity(proto.Message):
795804
key (str):
796805
Corresponds to the label key of a reservation resource. To
797806
target a SPECIFIC_RESERVATION by name, specify
798-
"googleapis.com/reservation-name" as the key and specify the
799-
name of your reservation as its value.
807+
"compute.googleapis.com/reservation-name" as the key and
808+
specify the name of your reservation as its value.
800809
values (Sequence[str]):
801810
Corresponds to the label value(s) of
802811
reservation resource(s).
@@ -2290,13 +2299,20 @@ class NodeConfigDefaults(proto.Message):
22902299
gcfs_config (google.cloud.container_v1.types.GcfsConfig):
22912300
GCFS (Google Container File System, also
22922301
known as Riptide) options.
2302+
logging_config (google.cloud.container_v1.types.NodePoolLoggingConfig):
2303+
Logging configuration for node pools.
22932304
"""
22942305

22952306
gcfs_config = proto.Field(
22962307
proto.MESSAGE,
22972308
number=1,
22982309
message="GcfsConfig",
22992310
)
2311+
logging_config = proto.Field(
2312+
proto.MESSAGE,
2313+
number=3,
2314+
message="NodePoolLoggingConfig",
2315+
)
23002316

23012317

23022318
class ClusterUpdate(proto.Message):
@@ -2453,6 +2469,9 @@ class ClusterUpdate(proto.Message):
24532469
auto-provisioned node pools in autopilot
24542470
clusters and node auto-provisioning enabled
24552471
clusters.
2472+
desired_node_pool_logging_config (google.cloud.container_v1.types.NodePoolLoggingConfig):
2473+
The desired node pool logging configuration
2474+
defaults for the cluster.
24562475
"""
24572476

24582477
desired_node_version = proto.Field(
@@ -2618,6 +2637,11 @@ class ClusterUpdate(proto.Message):
26182637
number=110,
26192638
message="NetworkTags",
26202639
)
2640+
desired_node_pool_logging_config = proto.Field(
2641+
proto.MESSAGE,
2642+
number=116,
2643+
message="NodePoolLoggingConfig",
2644+
)
26212645

26222646

26232647
class Operation(proto.Message):
@@ -3085,6 +3109,8 @@ class UpdateNodePoolRequest(proto.Message):
30853109
Confidential VM once enabled.
30863110
gvnic (google.cloud.container_v1.types.VirtualNIC):
30873111
Enable or disable gvnic on the node pool.
3112+
logging_config (google.cloud.container_v1.types.NodePoolLoggingConfig):
3113+
Logging configuration.
30883114
"""
30893115

30903116
project_id = proto.Field(
@@ -3174,6 +3200,11 @@ class UpdateNodePoolRequest(proto.Message):
31743200
number=29,
31753201
message="VirtualNIC",
31763202
)
3203+
logging_config = proto.Field(
3204+
proto.MESSAGE,
3205+
number=32,
3206+
message="NodePoolLoggingConfig",
3207+
)
31773208

31783209

31793210
class SetNodePoolAutoscalingRequest(proto.Message):
@@ -5131,7 +5162,7 @@ class AutoprovisioningNodePoolDefaults(proto.Message):
51315162
names of CPU platforms, such as minCpuPlatform: Intel
51325163
Haswell or minCpuPlatform: Intel Sandy Bridge. For more
51335164
information, read `how to specify min CPU
5134-
platform <https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform>`__
5165+
platform <https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform>`__.
51355166
This field is deprecated, min_cpu_platform should be
51365167
specified using
51375168
https://cloud.google.com/requested-min-cpu-platform label
@@ -6862,6 +6893,44 @@ class MonitoringConfig(proto.Message):
68626893
)
68636894

68646895

6896+
class NodePoolLoggingConfig(proto.Message):
6897+
r"""NodePoolLoggingConfig specifies logging configuration for
6898+
nodepools.
6899+
6900+
Attributes:
6901+
variant_config (google.cloud.container_v1.types.LoggingVariantConfig):
6902+
Logging variant configuration.
6903+
"""
6904+
6905+
variant_config = proto.Field(
6906+
proto.MESSAGE,
6907+
number=1,
6908+
message="LoggingVariantConfig",
6909+
)
6910+
6911+
6912+
class LoggingVariantConfig(proto.Message):
6913+
r"""LoggingVariantConfig specifies the behaviour of the logging
6914+
component.
6915+
6916+
Attributes:
6917+
variant (google.cloud.container_v1.types.LoggingVariantConfig.Variant):
6918+
Logging variant deployed on nodes.
6919+
"""
6920+
6921+
class Variant(proto.Enum):
6922+
r"""Logging component variants."""
6923+
VARIANT_UNSPECIFIED = 0
6924+
DEFAULT = 1
6925+
MAX_THROUGHPUT = 2
6926+
6927+
variant = proto.Field(
6928+
proto.ENUM,
6929+
number=1,
6930+
enum=Variant,
6931+
)
6932+
6933+
68656934
class MonitoringComponentConfig(proto.Message):
68666935
r"""MonitoringComponentConfig is cluster monitoring component
68676936
configuration.

google/cloud/container_v1beta1/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
Location,
8787
LoggingComponentConfig,
8888
LoggingConfig,
89+
LoggingVariantConfig,
8990
MaintenanceExclusionOptions,
9091
MaintenancePolicy,
9192
MaintenanceWindow,
@@ -111,6 +112,7 @@
111112
NodePoolAutoConfig,
112113
NodePoolAutoscaling,
113114
NodePoolDefaults,
115+
NodePoolLoggingConfig,
114116
NodePoolUpdateStrategy,
115117
NodeTaint,
116118
NodeTaints,
@@ -241,6 +243,7 @@
241243
"Location",
242244
"LoggingComponentConfig",
243245
"LoggingConfig",
246+
"LoggingVariantConfig",
244247
"MaintenanceExclusionOptions",
245248
"MaintenancePolicy",
246249
"MaintenanceWindow",
@@ -266,6 +269,7 @@
266269
"NodePoolAutoConfig",
267270
"NodePoolAutoscaling",
268271
"NodePoolDefaults",
272+
"NodePoolLoggingConfig",
269273
"NodePoolUpdateStrategy",
270274
"NodeTaint",
271275
"NodeTaints",

google/cloud/container_v1beta1/types/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
Location,
8585
LoggingComponentConfig,
8686
LoggingConfig,
87+
LoggingVariantConfig,
8788
MaintenanceExclusionOptions,
8889
MaintenancePolicy,
8990
MaintenanceWindow,
@@ -109,6 +110,7 @@
109110
NodePoolAutoConfig,
110111
NodePoolAutoscaling,
111112
NodePoolDefaults,
113+
NodePoolLoggingConfig,
112114
NodePoolUpdateStrategy,
113115
NodeTaint,
114116
NodeTaints,
@@ -236,6 +238,7 @@
236238
"Location",
237239
"LoggingComponentConfig",
238240
"LoggingConfig",
241+
"LoggingVariantConfig",
239242
"MaintenanceExclusionOptions",
240243
"MaintenancePolicy",
241244
"MaintenanceWindow",
@@ -261,6 +264,7 @@
261264
"NodePoolAutoConfig",
262265
"NodePoolAutoscaling",
263266
"NodePoolDefaults",
267+
"NodePoolLoggingConfig",
264268
"NodeTaint",
265269
"NodeTaints",
266270
"NotificationConfig",

0 commit comments

Comments
 (0)