How to rename a project

Solution Verified - Updated -

Environment

  • OpenShift Enterprise
    • 3.x

Issue

  • I want to rename my project name. How can I do?

Resolution

  • There is no way to change the actual name of the project or namespace. In fact, you can't rename the resource in openshift or kubernetes.
  • One can modify the display name and the description of the project to indicate its status.
# oc edit project myproject
. . .
      openshift.io/display-name: "rename-me"
. . .
  • You may also be able to export all the resources from ProjectA and create them in ProjectB.
  • Please also refer this community discussion

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.