cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I remove dynatrace.com/inject=true label from namespace

Peter_Lepsis
Participant

Hello,

how can I remove the dynatrace (dynatrace.com/inject=true) label from a namespace?
WHen I use the command: kubectl label namespace easytrade dynatrace.com/inject=true- it gives me this error:
error: invalid label value: "dynatrace.com/inject=true-": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')

Tried to use escape characters but no success

Thanks

Kind regards,

Peter

1 REPLY 1

Julius_Loman
DynaMight Legend
DynaMight Legend

You can use:

kubectl edit namespace easytravel 

Which starts an editor where you can remove the label.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts