04 Jul 2024 10:20 AM
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
Solved! Go to Solution.
04 Jul 2024 08:59 PM
You can use:
kubectl edit namespace easytravel
Which starts an editor where you can remove the label.