Closed programmer04 closed 1 year ago
Currently, oslo supports only labels in the below format
oslo
... metadata: labels: team: "a" ...
check the source code.
OpenSLO spec allows to define them as
... metadata: labels: team: - "a" - "b" ...
too.
Let's support both ways. Don't break the current workflow with oslo.
Under the hood, it should always be unmarshaled into []string. It's doable with the current YAML library.
[]string
Problem to solve
Currently,
oslo
supports only labels in the below formatcheck the source code.
OpenSLO spec allows to define them as
too.
Proposal
Let's support both ways. Don't break the current workflow with oslo.
Further details
Under the hood, it should always be unmarshaled into
[]string
. It's doable with the current YAML library.