How to preserve offset for a Connector with "_" in his metadata name


tomerikick@...
 

How to preserve offset for a Connector with "_" in his metadata name 


I have connector with "_" in his name and i want to move it using strimzi 
How to move it safely and  to preserve his offset (so it will not start from the beginning again)


Thanks

Tomer

apiVersion: kafka.strimzi.io/v1beta2

kind: KafkaConnector

metadata:

  name: x-y_z

I got a message:

a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')


Jakub Scholz
 

I'm afraid the only option to use a connector with `_` in its name is to not use the KafkaConnector resources but use the REST API directly instead (this is configured on the Connect cluster level through the annotation -> so this would apply to all connectors on given Connect cluster).

Thanks & Regards
Jakub