Nicko Glayre
Nicko Glayre

Reputation: 1405

How to customize template metadata.annotations.tags

I've a very simple question: Is it possible to create some custom metadata.annotations.tags within openshift template (in order that they don't fall into the default "Uncategorized" if none is matching what you want) ? If yes how ?

Thank you in advance.

Upvotes: 0

Views: 363

Answers (1)

Graham Dumpleton
Graham Dumpleton

Reputation: 58563

You can't create a new category unless you configure the web console as an admin for the whole cluster, but you can use an existing category. For example:

        "kind": "Template",
        "apiVersion": "v1",
        "metadata": {
            "name": "notebook-builder",
            "annotations": {
                "openshift.io/display-name": "Jupyter Notebook Builder",
                "description": "Template for creating customised Jupyter Notebook images.",
                "iconClass": "icon-python",
                "tags": "python,jupyter"
            }
        },

Here the python tag results in it being added in the Python category.

See tag description for example in:

Upvotes: 1

Related Questions