Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Extend targetObjectRef properties to labels #58

Open
philippselle opened this issue Oct 27, 2021 · 1 comment
Open

Extend targetObjectRef properties to labels #58

philippselle opened this issue Oct 27, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@philippselle
Copy link

Hi,
This is just an idea and maybe helpful for some use cases.

Use Case:

  1. We use the resource-locker operator to patch files via ArgoCD. We need to perform it this way, because the resources we need to patch are created by operators (e.g. service mesh) and are not stored in our git repository. To maintain our project completely in Git the resource-locker operator is a good way to go. Unfortunately some resources we need to patch will have a generated name and therefore we can not fully automate the process. Idea: as we know the label of the generated resource, it would be great to extend the targetObjectRef properties to allow patching resources with a specific label. E.g.
patches:
  - targetObjectRef:
      apiVersion: v1
      kind: ConfigMap
      labels:
        app: my-sample-app
      namespace: default

an other use case might be;
2. Performing a mass patch on all resources of one type with the same label.

Thank you and have a good day.
Philipp

@raffaelespazzoli raffaelespazzoli added the enhancement New feature or request label Oct 27, 2021
@raffaelespazzoli
Copy link
Contributor

this is a good feature to possibly have. I had planned adding it, but never got to it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants