Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update proposal (still maintained?) #3

Open
caruccio opened this issue Oct 7, 2023 · 0 comments
Open

Update proposal (still maintained?) #3

caruccio opened this issue Oct 7, 2023 · 0 comments

Comments

@caruccio
Copy link

caruccio commented Oct 7, 2023

Hello.

I'm looking for something like this project to annotate arbitrary objects, using label selectors and jsonpath matchers.

My first use-case is to add some annotations to Ingress objects only if they match a specific host.
I believe the config would be something like this:

# config.yaml
- apiVersion: networking.k8s.io/v1
  kind: Ingress
  namespaceSelector:
    team: web
  selector:
    app: frontend
  annotations:
    haproxy.router.openshift.io/response-header.X-Robots-Tag: "noindex, nofollow"
  matches:
  - '$.spec.rules[?(@.host=="www.example.com")]'
- ...

Is it something you are willing to accept a PR? If not, please let me known and I'll fork it to (try) to implement it myself (not a golang programer though).

Best,
Mateus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant