Skip to content

Documentation about using labels to identity k8s objects is misleading #43

@CarstenLeue

Description

@CarstenLeue

in https://github.com/ibm-hyper-protect/k8s-operator-hpcr/blob/main/Using-OnPrem.md the examples are using explicit labels for the resource for illustration purposes, e.g. app: onpremtest or config:onpremtest

According to feedback this gives the impression that the labels have to follow a certain pattern, e.g. always app: XXX. The data disk example however uses a different pattern config: YYY. I did this intentionally to point out that there is no semantic or mandatory pattern. Also Notice how the selector config: onpremsample selects the SSH configuration. states that.

However when copy/pasting the example as is it will not work, because the example config has the label app: onpremtest and not config: onpremtest.

@HenryWelborn @Timo-1 do you have a suggestion how to make this clearer or more consumable?
Personally I am not a big fan of copy/paste since this will not scale for more than one resource. Maybe we should leave out explicit labels altogether? What do you think?

cc @vishwabmc

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions