Skip to content

Commit 0fac9e8

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add a new fleet registration feature
Users can now register their clusters to a fleet by setting cluster.fleet.project. Please see https://cloud.google.com/anthos/fleet-management/docs/fleet-concepts for more details about fleet management. PiperOrigin-RevId: 520023539
1 parent 61b3dca commit 0fac9e8

2 files changed

Lines changed: 23 additions & 12 deletions

File tree

google/container/v1/cluster_service.proto

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1813,6 +1813,9 @@ message Cluster {
18131813
// fields, and may be sent on update requests to ensure the client has an
18141814
// up-to-date value before proceeding.
18151815
string etag = 139;
1816+
1817+
// Fleet information for the cluster.
1818+
Fleet fleet = 140;
18161819
}
18171820

18181821
// Node pool configs that apply to all auto-provisioned node pools
@@ -4211,8 +4214,9 @@ message UsableSubnetworkSecondaryRange {
42114214
// UNUSED denotes that this range is unclaimed by any cluster.
42124215
UNUSED = 1;
42134216

4214-
// IN_USE_SERVICE denotes that this range is claimed by a cluster for
4215-
// services. It cannot be used for other clusters.
4217+
// IN_USE_SERVICE denotes that this range is claimed by cluster(s) for
4218+
// services. User-managed services range can be shared between clusters
4219+
// within the same subnetwork.
42164220
IN_USE_SERVICE = 2;
42174221

42184222
// IN_USE_SHAREABLE_POD denotes this range was created by the network admin
@@ -4622,6 +4626,23 @@ message ManagedPrometheusConfig {
46224626
bool enabled = 1;
46234627
}
46244628

4629+
// Fleet is the fleet configuration for the cluster.
4630+
message Fleet {
4631+
// The Fleet host project(project ID or project number) where this cluster
4632+
// will be registered to. This field cannot be changed after the cluster has
4633+
// been registered.
4634+
string project = 1;
4635+
4636+
// [Output only] The full resource name of the registered fleet membership of
4637+
// the cluster, in the format
4638+
// `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
4639+
string membership = 2;
4640+
4641+
// [Output only] Whether the cluster has been registered through the fleet
4642+
// API.
4643+
bool pre_registered = 3;
4644+
}
4645+
46254646
// Possible values for IP stack type
46264647
enum StackType {
46274648
// Default value, will be defaulted as IPV4 only

google/container/v1/container_v1.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,3 @@ authentication:
3434
oauth:
3535
canonical_scopes: |-
3636
https://www.googleapis.com/auth/cloud-platform
37-
38-
publishing:
39-
organization: CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED
40-
new_issue_uri: ''
41-
documentation_uri: ''
42-
api_short_name: ''
43-
github_label: ''
44-
doc_tag_prefix: ''
45-
codeowner_github_teams:
46-
library_settings:

0 commit comments

Comments
 (0)