Skip to content

Commit cbd7ada

Browse files
authored
Merge pull request #614 from zihanKuang/worksapce
doc: Add "Managing Workspaces" Guide
2 parents 5fc6110 + d24ea7c commit cbd7ada

11 files changed

Lines changed: 172 additions & 16 deletions
2.71 MB
Loading
4.77 MB
Loading
157 KB
Loading
1.51 MB
Loading
6.52 MB
Loading
1.63 MB
Loading
246 KB
Loading
126 KB
Loading
128 KB
Loading
Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
---
2+
title: Managing Workspaces
3+
description: "Learn how to create, edit, delete, and configure your Workspaces."
4+
weight: 7
5+
categories: [Spaces]
6+
---
7+
8+
This guide walks you through the practical steps of managing your Workspaces. Here, you'll learn how to create, edit, and delete Workspaces, as well as how to manage access by assigning teams and resources like Environments, Designs, and Views to them.
9+
10+
If you're new to the concept of Workspaces, we recommend starting with the [Workspaces Overview](/cloud/spaces/workspaces/) to understand what a Workspace is and how it relates to key components like Environments, Designs, and Teams.
11+
12+
{{< alert type="info" title="A Note on Permissions" >}}
13+
Every action described in this guide is governed by roles and permissions. To see a detailed breakdown of what your assigned role allows you to do, please refer to the [Default Permissions](/cloud/reference/default-permissions/) documentation.
14+
{{< /alert >}}
15+
16+
### View Workspaces
17+
18+
The [Workspaces page](https://cloud.layer5.io/spaces/workspaces) is where you can see all of the workspaces within the currently selected organization.
19+
20+
> To suit different workflows, you can switch between two distinct layouts: a visual [grid view](#grid-view) and a detailed [table view](#table-view).
21+
22+
#### Grid View
23+
The grid view offers a card-based layout, perfect for quickly identifying workspaces at a glance. Each card displays essential information, and you can flip it to reveal management options like editing or deleting and get audit history.
24+
![Grid view of workspaces showing card-based layout](/cloud/spaces/images/grid-view.png)
25+
26+
#### Table View
27+
The table view provides a dense, list-based format that is ideal for managing a large number of workspaces. This view allows for sorting and gives you more control over the specific details you see.
28+
29+
To customize the information displayed, click the **View Columns** icon and select the attributes you want to see, such as Owner ID or Created Date.
30+
31+
![Table view of workspaces showing list-based format with sorting options](/cloud/spaces/images/table-view.png)
32+
33+
{{< alert type="info" title="Consistent Actions Across Views" >}}
34+
Both the grid and table views provide the same set of management capabilities. You can choose the layout that best fits your needs without losing any functionality.
35+
{{< /alert >}}
36+
37+
### Create a Workspace
38+
39+
Creating a new workspace allows you to manage resources, and define team access.
40+
41+
{{< alert type="info" title="Permissions Required" >}}
42+
Only users with the Workspace Admin or Organization Admin role can create new workspaces.
43+
{{< /alert >}}
44+
45+
To create a workspace:
46+
47+
1. Click the **+ Create** button to open the creation Dialog.
48+
2. From the dropdown menu, select the **Organization** that will own the new workspace. The chosen Organization **cannot be** changed after the workspace is created. Please select carefully.
49+
3. Enter a descriptive **Name** and an optional **Description**, then click **Save**.
50+
4. Your new workspace will now appear on the page.
51+
52+
![Animation showing workspace creation process](/cloud/spaces/images/create-workspace.gif)
53+
54+
### Edit a Workspace
55+
56+
You can modify a workspace's name and description at any time after it has been created.
57+
58+
- **From the Grid View:** Flip the workspace card, then click the **pencil icon**.
59+
- **From the Table View:** Click the **pencil icon** in the row of the workspace you wish to modify.
60+
61+
![Animation showing workspace editing process](/cloud/spaces/images/edit-workspace.gif)
62+
63+
### Delete a Workspace
64+
65+
You can delete a single workspace or multiple workspaces at once.
66+
67+
- **To delete a single workspace:**
68+
69+
- From the **Grid View**, flip the workspace card, then click the **trash can icon**.
70+
- From the **Table View**, click the **trash can icon** in the row of the workspace you wish to delete.
71+
72+
- **To delete multiple workspaces (Grid View only):**
73+
74+
1. Select the checkboxes on the cards of the workspaces you want to delete.
75+
2. Click the **Delete** button that appears at the top of the page.
76+
77+
![Animation showing workspace deletion process](/cloud/spaces/images/delete-workspace.gif)
78+
79+
{{< alert type="info" title="Deletion Restrictions" >}}
80+
Meshery requires at least one workspace to exist within an organization at all times, so you cannot delete the last remaining workspace.
81+
{{< /alert >}}
82+
83+
#### Workspace Deletion Behavior
84+
85+
{{< alert type="danger" title="What Happens When a Workspace is Deleted?" >}}
86+
Deleting a Workspace will permanently delete the Workspace itself and its associated Designs and Views.
87+
{{< /alert >}}
88+
89+
When a Workspace is deleted:
90+
91+
- Deletion is **permanent and irreversible**. Proceed with caution.
92+
- Before deletion, users have the option to transfer associated Designs and Views to another Workspace.
93+
- If no transfer is made, all associated Designs and Views will be permanently deleted along with the Workspace[^1].
94+
- Any associated Teams or Environments will be detached from the Workspace but will remain available for reassignment.
95+
96+
### Assign Teams to a Workspace
97+
Assigning teams is the way you grant users access to a workspace. Once a team is assigned, its members can access all of the Designs, Views, and Environments linked to that workspace.
98+
99+
![Animation showing team assignment process](/cloud/spaces/images/assign-teams.gif)
100+
101+
You can open the team management Dialog from either the grid or table view.
102+
103+
- **From the Grid View:** Click the **Teams** tile.
104+
- **From the Table View:** Click the **Teams icon** in the workspace row. A list of currently assigned teams will appear. From there, click the **Assign Team** button to open the assignment Dialog.
105+
106+
Inside the assignment Dialog, you will see two lists: **Available Teams** on the left and **Assigned Teams** on the right.
107+
108+
1. Select one or more teams from either list.
109+
2. Use the arrow buttons to move the selected teams between the lists:
110+
- **>** Assigns a selected team.
111+
- **<** Unassigns a selected team.
112+
- **>>** Assigns all available teams.
113+
- **<<** Unassigns all assigned teams.
114+
3. Click **Save** to apply your changes.
115+
116+
{{< alert type="info" title="Team and Workspace Relationships" >}}
117+
You can assign multiple teams to a single workspace, and a single team can also be a member of multiple workspaces. This provides flexible access control across your projects. For more restrictions, see [Workspaces documentation](/cloud/spaces/workspaces/).
118+
{{< /alert >}}
119+
120+
### Link Environments to a Workspace
121+
When you link an [Environment](/cloud/spaces/environments/) to a Workspace, you make all the connections (like those to Kubernetes clusters or databases) grouped within that Environment available. This means any team members with access to that Workspace can then deploy their applications or configurations to the resources.
122+
123+
The process of linking environments is almost the same as assigning teams.
124+
![Animation showing environment assignment process](/cloud/spaces/images/assign_environment.png)
125+
126+
{{< alert type="info" title="Many-to-Many Relationship" >}}
127+
An Environment can be linked to multiple Workspaces, and a Workspace can have multiple Environments. This allows you to share common environments across different projects.
128+
{{< /alert >}}
129+
130+
### Move Designs and Views Between Workspaces
131+
132+
Unlike Environments, every Design and View **must belong to exactly one Workspace at all times.**
133+
134+
When you create a new Design, it is automatically added to your current Workspace. Therefore, you don't "link" them in the same way you link an Environment; instead, you **move** them from one Workspace to another.
135+
136+
#### How to Move a Design or View
137+
138+
1. Click the **Designs/Views** tile on the Workspace card (or the equivalent icon in the table view) to open the management Dialog.
139+
2. Inside the Dialog, select the Design(s) or View(s).
140+
3. Use the arrow buttons to move the selected Design(s) or View(s) to the target workspace.
141+
4. Click **Save**.
142+
143+
![Animation showing design and view assignment process](/cloud/spaces/images/assign-designs-views.gif)
144+
145+
{{< alert type="info" title="Exclusive Ownership" >}}
146+
A Design or View can only exist in one Workspace at a time. Moving it to a new Workspace will automatically remove it from its original location. For more detailed information, see [Workspaces documentation](/cloud/spaces/workspaces/).
147+
{{< /alert >}}
148+
149+
### View Recent Activity
150+
151+
Meshery keeps a detailed audit log for each workspace, allowing you to track all significant events. This is useful for maintaining security and troubleshooting issues.
152+
153+
![Workspace audit log showing recent activity](/cloud/spaces/images/security-audit.png)
154+
155+
The activity log captures a variety of events, including:
156+
- The creation or deletion of the workspace.
157+
- Updates to the workspace's name or description.
158+
- The assignment or unassignment of Teams.
159+
- The linking or unlinking of Environments.
160+
- The movement of Designs or Views between workspaces.
161+
162+
At the bottom of the log, you will also find timestamps for when the workspace was initially created and when it was last updated.
163+
164+
{{< alert type="info" title="Putting It All Together: A Hands-on Guide" >}}
165+
To see how managing a Workspace fits into a complete, end-to-end workflow, follow the [Using Workspaces Effectively](https://cloud.layer5.io/academy/learning-paths/mastering-meshery/introduction-to-meshery?chapter=using-workspaces-effectively) learning path.
166+
{{< /alert >}}
167+
168+
[^1]: This functionality is not fully implemented yet. Users might occasionally observe that designs and views are preserved after Workspace deletion.

0 commit comments

Comments
 (0)