Skip to content

Commit 3906bbe

Browse files
authored
Merge pull request #1366 from afarbos/main
feat: add support for identity service in GCPManagedControlPlane
2 parents d4f7981 + 6ef3edf commit 3906bbe

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

cloud/services/container/clusters/reconcile.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,9 @@ func (s *Service) createCluster(ctx context.Context, log *logr.Logger) error {
259259
Autopilot: &containerpb.Autopilot{
260260
Enabled: s.scope.GCPManagedControlPlane.Spec.EnableAutopilot,
261261
},
262+
IdentityServiceConfig: &containerpb.IdentityServiceConfig{
263+
Enabled: s.scope.GCPManagedControlPlane.Spec.EnableIdentityService,
264+
},
262265
ReleaseChannel: &containerpb.ReleaseChannel{
263266
Channel: convertToSdkReleaseChannel(s.scope.GCPManagedControlPlane.Spec.ReleaseChannel),
264267
},

config/crd/bases/infrastructure.cluster.x-k8s.io_gcpmanagedcontrolplanes.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ spec:
141141
description: EnableAutopilot indicates whether to enable autopilot
142142
for this GKE cluster.
143143
type: boolean
144+
enableIdentityService:
145+
description: EnableIdentityService indicates whether to enable Identity
146+
Service component for this GKE cluster.
147+
type: boolean
144148
endpoint:
145149
description: Endpoint represents the endpoint used to communicate
146150
with the control plane.

exp/api/v1beta1/gcpmanagedcontrolplane_types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ type GCPManagedControlPlaneSpec struct {
133133
// EnableAutopilot indicates whether to enable autopilot for this GKE cluster.
134134
// +optional
135135
EnableAutopilot bool `json:"enableAutopilot"`
136+
// EnableIdentityService indicates whether to enable Identity Service component for this GKE cluster.
137+
// +optional
138+
EnableIdentityService bool `json:"enableIdentityService"`
136139
// ReleaseChannel represents the release channel of the GKE cluster.
137140
// +optional
138141
ReleaseChannel *ReleaseChannel `json:"releaseChannel,omitempty"`

0 commit comments

Comments
 (0)