Skip to content

Commit f24a290

Browse files
committed
make access in mcp status optional
1 parent 1e9d5f5 commit f24a290

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
@@ -373,7 +373,6 @@ spec:
373373
description: Phase is the current phase of the resource.
374374
type: string
375375
required:
376-
- access
377376
- observedGeneration
378377
- phase
379378
type: object

0 commit comments

Comments
 (0)