Skip to content

Commit 0f498c7

Browse files
Google APIscopybara-github
authored andcommitted
feat: add a new fleet registration feature to v1alpha1, v1beta1, v1
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: 520043395
1 parent ed78055 commit 0f498c7

2 files changed

Lines changed: 20 additions & 10 deletions

File tree

google/container/v1beta1/cluster_service.proto

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,6 +1989,9 @@ message Cluster {
19891989
// fields, and may be sent on update requests to ensure the client has an
19901990
// up-to-date value before proceeding.
19911991
string etag = 139;
1992+
1993+
// Fleet information for the cluster.
1994+
Fleet fleet = 140;
19921995
}
19931996

19941997
// WorkloadConfig defines the flags to enable or disable the
@@ -5117,6 +5120,23 @@ enum DatapathProvider {
51175120
ADVANCED_DATAPATH = 2;
51185121
}
51195122

5123+
// Fleet is the fleet configuration for the cluster.
5124+
message Fleet {
5125+
// The Fleet host project(project ID or project number) where this cluster
5126+
// will be registered to. This field cannot be changed after the cluster has
5127+
// been registered.
5128+
string project = 1;
5129+
5130+
// [Output only] The full resource name of the registered fleet membership of
5131+
// the cluster, in the format
5132+
// `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
5133+
string membership = 2;
5134+
5135+
// [Output only] Whether the cluster has been registered through the fleet
5136+
// API.
5137+
bool pre_registered = 3;
5138+
}
5139+
51205140
// Possible values for IP stack type
51215141
enum StackType {
51225142
// By default, the clusters will be IPV4 only

google/container/v1beta1/container_v1beta1.yaml

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

0 commit comments

Comments
 (0)