Skip to content

Add support for Project display names via project-title annotations #2469

Open
@marc1404

Description

@marc1404

What would you like to be added:

It should be possible to add a "display name" to Projects by using an annotation. As display name is a quite technical term, "Project Title" will be used as a shorter and more semantic name.

Annotation:
dashboard.gardener.cloud/project-title: "My awesome project with a lengthy name"

The dashboard should check for this annotation and use it as a display name in certain places of the UI.

In the navigation on the left-hand side, Projects with a title annotation should use a visual cue indicating that the project name has been overridden using the title. The Project's name moves to the second line in front of the Project owner's name.
As Project titles have no uniqueness restriction, the visual cue helps to differentiate Project's with a title, and showing the original name in the subline helps to differentiate potential duplicates.

Image

– Mockup for the Project title in the navigation on the left-hand side

In the Shoot cluster list, a new column "Project Title" should be introduced. It's hidden by default and, naturally, only shown in the "All Projects" view.

Image

– Mockup for the Shoot cluster list in the "All Projects"-scope

Why is this needed:

A Project name is limited to 10 characters. This is because the combination of Project and Shoot cluster name is used for resource labels and the DNS subdomain.
The restriction can make the navigation in the project dropdown or the all clusters view difficult since Project names are often abbreviated. If automation is used for Project creation, the name might be randomly generated entirely.

Image
– Example for a generated Project name

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions