Skip to content

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

@jancespivo

Description

@jancespivo

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

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions