kubernetes / kompose

Convert Compose to Kubernetes
http://kompose.io
Apache License 2.0
9.5k stars 749 forks source link

[BUG] --with-kompose-annotation=false flag removes custom annotations defined in labels as well #1885

Closed jancespivo closed 3 months ago

jancespivo commented 3 months ago

Expected Behavior

--with-kompose-annotation=false should remove only kompose.* annotations not all annotations

Actual Behavior

--with-kompose-annotation=false removes also custom annotations defined in service[].labels

Steps To Reproduce

kompose convert --with-kompose-annotation=false

Kompose Version

1.33.0 (3ce457399)

Docker-Compose file

services:
  web:
    image: nginx
    labels:
      mycustom.annotation: true

Anything else?

No response