Skip to content

Commit 9bf154e

Browse files
committed
Added Working with projects content
1 parent b8e0a32 commit 9bf154e

12 files changed

+211
-0
lines changed

_topic_map.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ Topics:
4747
- Name: Web console
4848
File: web-console
4949
---
50+
Name: Web console
51+
Dir: web-console
52+
Distros: openshift-*
53+
Topics:
54+
- Name: Working with projects
55+
File: working-with-projects
56+
---
5057
Name: Installing clusters on AWS
5158
Dir: installing-aws
5259
Distros: openshift-origin, openshift-enterprise

applications_and_projects/working-with-projects.adoc

Whitespace-only changes.

modules/adding-to-a-project.adoc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Module included in the following assemblies:
2+
//
3+
// web-console/working-with-projects.adoc
4+
5+
[id='adding-to-a-project-{context}']
6+
= Adding to a project
7+
8+
.Procedure
9+
10+
. Navigate to *Home* -> *Projects*.
11+
12+
. Select a project.
13+
14+
. In the upper right-hand corner of the *Project Status* menu, click *Add*, then
15+
choose from the provided options.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Module included in the following assemblies:
2+
//
3+
// web-console/working-with-projects.adoc
4+
5+
[id='checking-project-status-using-the-CLI{context}']
6+
= Checking project status using the CLI
7+
8+
.Procedure
9+
10+
. Run:
11+
+
12+
----
13+
$ oc status
14+
----
15+
+
16+
This command provides a high-level overview of the current project, with its
17+
components and their relationships.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Module included in the following assemblies:
2+
//
3+
// web-console/working-with-projects.adoc
4+
5+
[id='checking-project-status-using-the-web-console-{context}']
6+
= Checking project status using the web console
7+
8+
.Procedure
9+
10+
. Navigate to *Home* -> *Projects*.
11+
12+
. Select a project to see its status.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// Module included in the following assemblies:
2+
//
3+
// applications_and_projects/working-with-projects.adoc
4+
5+
[id='creating-a-project-using-the-CLI-{context}']
6+
= Creating a project using the CLI
7+
8+
If allowed by your cluster administrator, you can create a new project.
9+
10+
.Procedure
11+
12+
. Run:
13+
14+
----
15+
$ oc new-project <project_name> \
16+
--description="<description>" --display-name="<display_name>"
17+
----
18+
19+
For example:
20+
21+
----
22+
$ oc new-project hello-openshift \
23+
--description="This is an example project" \
24+
--display-name="Hello OpenShift"
25+
----
26+
27+
[NOTE]
28+
====
29+
The number of projects you are allowed to create
30+
ifdef::openshift-enterprise,openshift-origin,openshift-dedicated[]
31+
may be limited by the system administrator.
32+
endif::[]
33+
ifdef::openshift-online[]
34+
is limited.
35+
endif::[]
36+
Once your limit is reached, you might need to delete an existing project in
37+
order to create a new one.
38+
====
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Module included in the following assemblies:
2+
//
3+
// applications_and_projects/working-with-projects.adoc
4+
5+
[id='creating-a-project-using-the-web-console-{context}']
6+
= Creating a project using the web console
7+
8+
If allowed by your cluster administrator, you can create a new project.
9+
10+
.Procedure
11+
12+
. Navigate to *Home* -> *Projects*.
13+
14+
. Click *Create Project*.
15+
16+
. Enter your project details.
17+
18+
. Click *Create*.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Module included in the following assemblies:
2+
//
3+
// web-console/working-with-projects.adoc
4+
5+
[id='deleting-a-project-using-the-CLI{context}']
6+
= Deleting a project using the CLI
7+
8+
When you delete a project, the server updates the project status to
9+
*Terminating* from *Active*. Then, the server clears all content from a project
10+
that is in the *Terminating* state before finally removing the project. While a
11+
project is in *Terminating* status, you cannot add new content to the project.
12+
Projects can be deleted from the CLI or the web console.
13+
14+
.Procedure
15+
16+
. Run:
17+
+
18+
----
19+
$ oc delete project <project_name>
20+
----
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Module included in the following assemblies:
2+
//
3+
// web-console/working-with-projects.adoc
4+
5+
[id='deleting-a-project-using-the-web-console{context}']
6+
= Deleting a project using the web console
7+
8+
.Procedure
9+
10+
. Navigate to *Home* -> *Projects*.
11+
12+
. Locate the project that you want to delete from the list of projects.
13+
14+
. On the far right side of the project listing, select *Delete Project* from the
15+
menu. If you do not have permissions to delete the project, the *Delete Project*
16+
option is grayed out and the option is not clickable.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Module included in the following assemblies:
2+
//
3+
// applications_and_projects/working-with-projects.adoc
4+
5+
[id='viewing-a-project-using-the-CLI-{context}']
6+
= Viewing a project using the CLI
7+
8+
When viewing projects, you are restricted to seeing only the projects you have
9+
access to view based on the authorization policy.
10+
11+
.Procedure
12+
13+
. To view a list of projects, run:
14+
+
15+
----
16+
$ oc get projects
17+
----
18+
19+
. You can change from the current project to a different project for CLI
20+
operations. The specified project is then used in all subsequent operations that
21+
manipulate project-scoped content:
22+
+
23+
----
24+
$ oc project <project_name>
25+
----

0 commit comments

Comments
 (0)