Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cloud/services/container/clusters/reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ func (s *Service) createCluster(ctx context.Context, log *logr.Logger) error {
Autopilot: &containerpb.Autopilot{
Enabled: s.scope.GCPManagedControlPlane.Spec.EnableAutopilot,
},
IdentityServiceConfig: &containerpb.IdentityServiceConfig{
Enabled: s.scope.GCPManagedControlPlane.Spec.EnableIdentityService,
},
ReleaseChannel: &containerpb.ReleaseChannel{
Channel: convertToSdkReleaseChannel(s.scope.GCPManagedControlPlane.Spec.ReleaseChannel),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ spec:
description: EnableAutopilot indicates whether to enable autopilot
for this GKE cluster.
type: boolean
enableIdentityService:
description: EnableIdentityService indicates whether to enable Identity
Service component for this GKE cluster.
type: boolean
endpoint:
description: Endpoint represents the endpoint used to communicate
with the control plane.
Expand Down
5 changes: 4 additions & 1 deletion exp/api/v1beta1/gcpmanagedcontrolplane_types.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2022 The Kubernetes Authors.
Copyright, 2022 The Kubernetes Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -133,6 +133,9 @@ type GCPManagedControlPlaneSpec struct {
// EnableAutopilot indicates whether to enable autopilot for this GKE cluster.
// +optional
EnableAutopilot bool `json:"enableAutopilot"`
// EnableIdentityService indicates whether to enable Identity Service component for this GKE cluster.
// +optional
EnableIdentityService bool `json:"enableIdentityService"`
// ReleaseChannel represents the release channel of the GKE cluster.
// +optional
ReleaseChannel *ReleaseChannel `json:"releaseChannel,omitempty"`
Expand Down