Skip to content

Commit 53e8f36

Browse files
committed
extend API types
On-behalf-of: @SAP [email protected]
1 parent 93c4948 commit 53e8f36

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

sdk/apis/operator/v1alpha1/kubeconfig_types.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ type KubeconfigSpec struct {
4242
// CertificateTemplate allows to customize the properties on the generated
4343
// certificate for this kubeconfig.
4444
CertificateTemplate *CertificateTemplate `json:"certificateTemplate,omitempty"`
45+
46+
// Authorization allows to provision permissions for this kubeconfig.
47+
Authorization *KubeconfigAuthorization `json:"authorization,omitempty"`
4548
}
4649

4750
type KubeconfigTarget struct {
@@ -50,6 +53,15 @@ type KubeconfigTarget struct {
5053
FrontProxyRef *corev1.LocalObjectReference `json:"frontProxyRef,omitempty"`
5154
}
5255

56+
type KubeconfigAuthorization struct {
57+
ClusterRoleBindings KubeconfigClusterRoleBindings `json:"clusterRoleBindings"`
58+
}
59+
60+
type KubeconfigClusterRoleBindings struct {
61+
WorkspacePath string `json:"workspacePath"`
62+
ClusterRoles []string `json:"clusterRoles"`
63+
}
64+
5365
// KubeconfigStatus defines the observed state of Kubeconfig
5466
type KubeconfigStatus struct {
5567
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster

0 commit comments

Comments
 (0)