You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* implement accessrequest controller
* accessrequest controller now also adds profile label
* accessrequest controller now also adds cluster reference
* move general openmcp constants into own api package
Copy file name to clipboardExpand all lines: api/clusters/v1alpha1/clusterrequest_types.go
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ type ClusterRequestSpec struct {
11
11
Purposestring`json:"purpose"`
12
12
}
13
13
14
-
// +kubebuilder:validation:XValidation:rule="!has(oldSelf.clusterRef) || has(self.clusterRef)", message="clusterRef may not be removed once set"
14
+
// +kubebuilder:validation:XValidation:rule="!has(oldSelf.cluster) || has(self.cluster)", message="cluster may not be removed once set"
15
15
typeClusterRequestStatusstruct {
16
16
CommonStatus`json:",inline"`
17
17
@@ -23,8 +23,8 @@ type ClusterRequestStatus struct {
23
23
// Cluster is the reference to the Cluster that was returned as a result of a granted request.
24
24
// Note that this information needs to be recoverable in case this status is lost, e.g. by adding a back reference in form of a finalizer to the Cluster resource.
25
25
// +optional
26
-
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="clusterRef is immutable"
Copy file name to clipboardExpand all lines: api/crds/manifests/clusters.openmcp.cloud_clusterrequests.yaml
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,12 @@ spec:
26
26
- jsonPath: .status.phase
27
27
name: Phase
28
28
type: string
29
+
- jsonPath: .status.cluster.name
30
+
name: Cluster
31
+
type: string
32
+
- jsonPath: .status.cluster.namespace
33
+
name: Cluster-NS
34
+
type: string
29
35
name: v1alpha1
30
36
schema:
31
37
openAPIV3Schema:
@@ -62,7 +68,7 @@ spec:
62
68
rule: self == oldSelf
63
69
status:
64
70
properties:
65
-
clusterRef:
71
+
cluster:
66
72
description: |-
67
73
Cluster is the reference to the Cluster that was returned as a result of a granted request.
68
74
Note that this information needs to be recoverable in case this status is lost, e.g. by adding a back reference in form of a finalizer to the Cluster resource.
0 commit comments