@@ -12,6 +12,12 @@ type AccessRequestSpec struct {
1212 // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="clusterRef is immutable"
1313 ClusterRef NamespacedObjectReference `json:"clusterRef"`
1414
15+ // RequestRef is the reference to the ClusterRequest for whose Cluster access is requested.
16+ // Exactly one of clusterRef or requestRef must be set.
17+ // This value is immutable.
18+ // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="requestRef is immutable"
19+ RequestRef NamespacedObjectReference `json:"requestRef"`
20+
1521 // Permissions are the requested permissions.
1622 Permissions []PermissionsRequest `json:"permissions"`
1723}
@@ -34,12 +40,13 @@ type AccessRequestStatus struct {
3440 // Phase is the current phase of the request.
3541 Phase RequestPhase `json:"phase"`
3642
37- // TODO: expose actual access information
43+ // SecretRef holds the reference to the secret that contains the actual credentials.
44+ SecretRef * NamespacedObjectReference `json:"secretRef,omitempty"`
3845}
3946
4047// +kubebuilder:object:root=true
4148// +kubebuilder:subresource:status
42- // +kubebuilder:metadata:labels="openmcp.cloud/cluster=onboarding "
49+ // +kubebuilder:metadata:labels="openmcp.cloud/cluster=platform "
4350
4451// AccessRequest is the Schema for the accessrequests API
4552type AccessRequest struct {
0 commit comments