Skip to content

Commit

Permalink
feat: launch GKE Cost Allocations configuration to the v1 GKE API (#307)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 479682735

Source-Link: https://togithub.com/googleapis/googleapis/commit/4a3979503f6b5814742eef42621c9673d2f929f1

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/aaca9d43d55b767822788f4547e5479a2ce925a5
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWFjYTlkNDNkNTViNzY3ODIyNzg4ZjQ1NDdlNTQ3OWEyY2U5MjVhNSJ9

feat: vulnerability scanning exposed to public
GKE Security Posture launches public preview, exposes relevant features in cluster to public.

PiperOrigin-RevId: 479682645

Source-Link: https://togithub.com/googleapis/googleapis/commit/df8b96730d819af09f82c329a7fc47e4bc24f9c2

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/4d197d8d782cca6d1e4a8199a15e411b5d40952d
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGQxOTdkOGQ3ODJjY2E2ZDFlNGE4MTk5YTE1ZTQxMWI1ZDQwOTUyZCJ9
  • Loading branch information
gcf-owl-bot[bot] authored Oct 16, 2022
1 parent 3e63e55 commit 84254bf
Show file tree
Hide file tree
Showing 6 changed files with 129 additions and 0 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
CompleteNodePoolUpgradeRequest,
ConfidentialNodes,
ConfigConnectorConfig,
CostManagementConfig,
CreateClusterRequest,
CreateNodePoolRequest,
DailyMaintenanceWindow,
Expand All @@ -61,13 +62,15 @@
GetOpenIDConfigResponse,
GetOperationRequest,
GetServerConfigRequest,
GkeBackupAgentConfig,
GPUSharingConfig,
HorizontalPodAutoscaling,
HttpLoadBalancing,
IdentityServiceConfig,
ILBSubsettingConfig,
IntraNodeVisibilityConfig,
IPAllocationPolicy,
IPv6AccessType,
Jwk,
KubernetesDashboard,
LegacyAbac,
Expand Down Expand Up @@ -141,6 +144,7 @@
SetNodePoolSizeRequest,
ShieldedInstanceConfig,
ShieldedNodes,
StackType,
StartIPRotationRequest,
StatusCondition,
TimeWindow,
Expand Down Expand Up @@ -180,6 +184,7 @@
"CompleteNodePoolUpgradeRequest",
"ConfidentialNodes",
"ConfigConnectorConfig",
"CostManagementConfig",
"CreateClusterRequest",
"CreateNodePoolRequest",
"DailyMaintenanceWindow",
Expand All @@ -200,6 +205,7 @@
"GetOpenIDConfigResponse",
"GetOperationRequest",
"GetServerConfigRequest",
"GkeBackupAgentConfig",
"GPUSharingConfig",
"HorizontalPodAutoscaling",
"HttpLoadBalancing",
Expand Down Expand Up @@ -293,7 +299,9 @@
"WorkloadIdentityConfig",
"WorkloadMetadataConfig",
"DatapathProvider",
"IPv6AccessType",
"NodePoolUpdateStrategy",
"PrivateIPv6GoogleAccess",
"StackType",
"UpgradeResourceType",
)
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
CompleteNodePoolUpgradeRequest,
ConfidentialNodes,
ConfigConnectorConfig,
CostManagementConfig,
CreateClusterRequest,
CreateNodePoolRequest,
DailyMaintenanceWindow,
Expand All @@ -56,13 +57,15 @@
GetOpenIDConfigResponse,
GetOperationRequest,
GetServerConfigRequest,
GkeBackupAgentConfig,
GPUSharingConfig,
HorizontalPodAutoscaling,
HttpLoadBalancing,
IdentityServiceConfig,
ILBSubsettingConfig,
IntraNodeVisibilityConfig,
IPAllocationPolicy,
IPv6AccessType,
Jwk,
KubernetesDashboard,
LegacyAbac,
Expand Down Expand Up @@ -136,6 +139,7 @@
SetNodePoolSizeRequest,
ShieldedInstanceConfig,
ShieldedNodes,
StackType,
StartIPRotationRequest,
StatusCondition,
TimeWindow,
Expand Down Expand Up @@ -175,6 +179,7 @@
"CompleteNodePoolUpgradeRequest",
"ConfidentialNodes",
"ConfigConnectorConfig",
"CostManagementConfig",
"CreateClusterRequest",
"CreateNodePoolRequest",
"DNSConfig",
Expand All @@ -197,10 +202,12 @@
"GetOpenIDConfigResponse",
"GetOperationRequest",
"GetServerConfigRequest",
"GkeBackupAgentConfig",
"HorizontalPodAutoscaling",
"HttpLoadBalancing",
"ILBSubsettingConfig",
"IPAllocationPolicy",
"IPv6AccessType",
"IdentityServiceConfig",
"IntraNodeVisibilityConfig",
"Jwk",
Expand Down Expand Up @@ -276,6 +283,7 @@
"SetNodePoolSizeRequest",
"ShieldedInstanceConfig",
"ShieldedNodes",
"StackType",
"StartIPRotationRequest",
"StatusCondition",
"TimeWindow",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
CompleteNodePoolUpgradeRequest,
ConfidentialNodes,
ConfigConnectorConfig,
CostManagementConfig,
CreateClusterRequest,
CreateNodePoolRequest,
DailyMaintenanceWindow,
Expand All @@ -54,13 +55,15 @@
GetOpenIDConfigResponse,
GetOperationRequest,
GetServerConfigRequest,
GkeBackupAgentConfig,
GPUSharingConfig,
HorizontalPodAutoscaling,
HttpLoadBalancing,
IdentityServiceConfig,
ILBSubsettingConfig,
IntraNodeVisibilityConfig,
IPAllocationPolicy,
IPv6AccessType,
Jwk,
KubernetesDashboard,
LegacyAbac,
Expand Down Expand Up @@ -134,6 +137,7 @@
SetNodePoolSizeRequest,
ShieldedInstanceConfig,
ShieldedNodes,
StackType,
StartIPRotationRequest,
StatusCondition,
TimeWindow,
Expand Down Expand Up @@ -171,6 +175,7 @@
"CompleteNodePoolUpgradeRequest",
"ConfidentialNodes",
"ConfigConnectorConfig",
"CostManagementConfig",
"CreateClusterRequest",
"CreateNodePoolRequest",
"DailyMaintenanceWindow",
Expand All @@ -191,6 +196,7 @@
"GetOpenIDConfigResponse",
"GetOperationRequest",
"GetServerConfigRequest",
"GkeBackupAgentConfig",
"GPUSharingConfig",
"HorizontalPodAutoscaling",
"HttpLoadBalancing",
Expand Down Expand Up @@ -284,7 +290,9 @@
"WorkloadIdentityConfig",
"WorkloadMetadataConfig",
"DatapathProvider",
"IPv6AccessType",
"NodePoolUpdateStrategy",
"PrivateIPv6GoogleAccess",
"StackType",
"UpgradeResourceType",
)
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
"UpgradeResourceType",
"DatapathProvider",
"NodePoolUpdateStrategy",
"StackType",
"IPv6AccessType",
"LinuxNodeConfig",
"NodeKubeletConfig",
"NodeConfig",
Expand Down Expand Up @@ -55,6 +57,7 @@
"ConfigConnectorConfig",
"GcePersistentDiskCsiDriverConfig",
"GcpFilestoreCsiDriverConfig",
"GkeBackupAgentConfig",
"MasterAuthorizedNetworksConfig",
"LegacyAbac",
"NetworkPolicy",
Expand Down Expand Up @@ -128,6 +131,7 @@
"Jwk",
"GetJSONWebKeysResponse",
"ReleaseChannel",
"CostManagementConfig",
"IntraNodeVisibilityConfig",
"ILBSubsettingConfig",
"DNSConfig",
Expand Down Expand Up @@ -198,6 +202,20 @@ class NodePoolUpdateStrategy(proto.Enum):
SURGE = 3


class StackType(proto.Enum):
r"""Possible values for IP stack type"""
STACK_TYPE_UNSPECIFIED = 0
IPV4 = 1
IPV4_IPV6 = 2


class IPv6AccessType(proto.Enum):
r"""Possible values for IPv6 access type"""
IPV6_ACCESS_TYPE_UNSPECIFIED = 0
INTERNAL = 1
EXTERNAL = 2


class LinuxNodeConfig(proto.Message):
r"""Parameters that can be configured on Linux nodes.
Expand Down Expand Up @@ -1055,6 +1073,9 @@ class AddonsConfig(proto.Message):
gcp_filestore_csi_driver_config (google.cloud.container_v1.types.GcpFilestoreCsiDriverConfig):
Configuration for the GCP Filestore CSI
driver.
gke_backup_agent_config (google.cloud.container_v1.types.GkeBackupAgentConfig):
Configuration for the Backup for GKE agent
addon.
"""

http_load_balancing = proto.Field(
Expand Down Expand Up @@ -1102,6 +1123,11 @@ class AddonsConfig(proto.Message):
number=14,
message="GcpFilestoreCsiDriverConfig",
)
gke_backup_agent_config = proto.Field(
proto.MESSAGE,
number=16,
message="GkeBackupAgentConfig",
)


class HttpLoadBalancing(proto.Message):
Expand Down Expand Up @@ -1366,6 +1392,21 @@ class GcpFilestoreCsiDriverConfig(proto.Message):
)


class GkeBackupAgentConfig(proto.Message):
r"""Configuration for the Backup for GKE Agent.
Attributes:
enabled (bool):
Whether the Backup for GKE agent is enabled
for this cluster.
"""

enabled = proto.Field(
proto.BOOL,
number=1,
)


class MasterAuthorizedNetworksConfig(proto.Message):
r"""Configuration options for the master authorized networks
feature. Enabled master authorized networks will disallow all
Expand Down Expand Up @@ -1612,6 +1653,11 @@ class IPAllocationPolicy(proto.Message):
true if use_ip_aliases is true. If both use_ip_aliases and
use_routes are false, then the server picks the default IP
allocation mode
stack_type (google.cloud.container_v1.types.StackType):
The IP stack type of the cluster
ipv6_access_type (google.cloud.container_v1.types.IPv6AccessType):
The ipv6 access type (internal or external) when
create_subnetwork is true
"""

use_ip_aliases = proto.Field(
Expand Down Expand Up @@ -1666,6 +1712,16 @@ class IPAllocationPolicy(proto.Message):
proto.BOOL,
number=15,
)
stack_type = proto.Field(
proto.ENUM,
number=16,
enum="StackType",
)
ipv6_access_type = proto.Field(
proto.ENUM,
number=17,
enum="IPv6AccessType",
)


class Cluster(proto.Message):
Expand Down Expand Up @@ -1844,6 +1900,9 @@ class Cluster(proto.Message):
mesh_certificates (google.cloud.container_v1.types.MeshCertificates):
Configuration for issuance of mTLS keys and
certificates to Kubernetes pods.
cost_management_config (google.cloud.container_v1.types.CostManagementConfig):
Configuration for the fine-grained cost
management feature.
notification_config (google.cloud.container_v1.types.NotificationConfig):
Notification configuration of the cluster.
confidential_nodes (google.cloud.container_v1.types.ConfidentialNodes):
Expand Down Expand Up @@ -2133,6 +2192,11 @@ class Status(proto.Enum):
number=67,
message="MeshCertificates",
)
cost_management_config = proto.Field(
proto.MESSAGE,
number=45,
message="CostManagementConfig",
)
notification_config = proto.Field(
proto.MESSAGE,
number=49,
Expand Down Expand Up @@ -2370,6 +2434,9 @@ class ClusterUpdate(proto.Message):
certificates to Kubernetes pods.
desired_shielded_nodes (google.cloud.container_v1.types.ShieldedNodes):
Configuration for Shielded Nodes.
desired_cost_management_config (google.cloud.container_v1.types.CostManagementConfig):
The desired configuration for the
fine-grained cost management feature.
desired_dns_config (google.cloud.container_v1.types.DNSConfig):
DNSConfig contains clusterDNS config for this
cluster.
Expand Down Expand Up @@ -2515,6 +2582,11 @@ class ClusterUpdate(proto.Message):
number=48,
message="ShieldedNodes",
)
desired_cost_management_config = proto.Field(
proto.MESSAGE,
number=49,
message="CostManagementConfig",
)
desired_dns_config = proto.Field(
proto.MESSAGE,
number=53,
Expand Down Expand Up @@ -6088,6 +6160,20 @@ class Channel(proto.Enum):
)


class CostManagementConfig(proto.Message):
r"""Configuration for fine-grained cost management feature.
Attributes:
enabled (bool):
Whether the feature is enabled or not.
"""

enabled = proto.Field(
proto.BOOL,
number=1,
)


class IntraNodeVisibilityConfig(proto.Message):
r"""IntraNodeVisibilityConfig contains the desired config of the
intra-node visibility on this cluster.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2639,14 +2639,33 @@ class ProtectConfig(proto.Message):
enabled for a cluster's workload configurations.
This field is a member of `oneof`_ ``_workload_config``.
workload_vulnerability_mode (google.cloud.container_v1beta1.types.ProtectConfig.WorkloadVulnerabilityMode):
Sets which mode to use for Protect workload
vulnerability scanning feature.
This field is a member of `oneof`_ ``_workload_vulnerability_mode``.
"""

class WorkloadVulnerabilityMode(proto.Enum):
r"""WorkloadVulnerabilityMode defines mode to perform
vulnerability scanning.
"""
WORKLOAD_VULNERABILITY_MODE_UNSPECIFIED = 0
DISABLED = 1
BASIC = 2

workload_config = proto.Field(
proto.MESSAGE,
number=1,
optional=True,
message="WorkloadConfig",
)
workload_vulnerability_mode = proto.Field(
proto.ENUM,
number=2,
optional=True,
enum=WorkloadVulnerabilityMode,
)


class NodePoolDefaults(proto.Message):
Expand Down

0 comments on commit 84254bf

Please sign in to comment.