Skip to content

Commit b65fc52

Browse files
committed
make access in mcp status optional
1 parent c99d96f commit b65fc52

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/core/v2alpha1/managedcontrolplane_types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ type ManagedControlPlaneV2Status struct {
1818
// Each referenced secret is expected to contain a 'kubeconfig' key with the kubeconfig that was generated for the respective OIDC provider for the ManagedControlPlaneV2.
1919
// The default OIDC provider, if configured, uses the name "default" in this mapping.
2020
// The "default" key is also used if the ClusterProvider does not support OIDC-based access and created a serviceaccount with a token instead.
21-
Access map[string]commonapi.LocalObjectReference `json:"access"`
21+
// +optional
22+
Access map[string]commonapi.LocalObjectReference `json:"access,omitempty"`
2223
}
2324

2425
type IAMConfig struct {

api/crds/manifests/core.openmcp.cloud_managedcontrolplanev2s.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,6 @@ spec:
362362
description: Phase is the current phase of the resource.
363363
type: string
364364
required:
365-
- access
366365
- observedGeneration
367366
- phase
368367
type: object

0 commit comments

Comments
 (0)