File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
sdk/apis/operator/v1alpha1 Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff 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
4750type 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
5466type KubeconfigStatus struct {
5567 // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
You can’t perform that action at this time.
0 commit comments