config-syncer icon indicating copy to clipboard operation
config-syncer copied to clipboard

allow modify labels/annotations of copied resources

Open profiprog opened this issue 2 years ago • 1 comments

This is solution for issues #509 and #465 Is adding new annotations kubed.appscode.com/sync-labels and kubed.appscode.com/sync-annotations which can be added to source resource...

...
  annotations:
    kubed.appscode.com/sync: copy-this-resource=true

    # label `app.kubernetes.io/instance` will be removed in target resource because doesn't specify any value
    # label  `managed-by` will be created or replaced in target resource by value 'author'
    kubed.appscode.com/sync-labels: |
      app.kubernetes.io/instance
      managed-by=author

    # same logic but applied for target annotations
    kubed.appscode.com/sync-annotations:
...

profiprog avatar Feb 07 '23 22:02 profiprog