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

[extension/observer/k8sobserver] add k8s.ingress endpoint #33005

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

M0NsTeRRR
Copy link

Description: Add support for k8s.ingress endpoint

As described in the issue, this will allow users to dynamically obtain Kubernetes ingress ressource, facilitating the monitoring of certificate expiration with the Blackbox Exporter for example.
I didn't create a global ingress resource with sub-endpoints for each path because I don't see a relevant 'target'. I'm uncertain about the impact of my decision regarding the 'UID' as it's structured as '{namespace}/{ingress UID}/{host}{path}'. Since a path automatically starts with a '/', and can contain other '/', should I escape them ?

Link to tracking Issue:
#32971

Testing:

  • Endpoint unit test
  • Handler unit test

Documentation:
I've updated the documentation I've found.

PS : I don't write a lot of go and it's also my first contribution to the project I've probably missed some points :)

Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
@M0NsTeRRR M0NsTeRRR requested review from a team and dmitryax as code owners May 11, 2024 22:46
@M0NsTeRRR M0NsTeRRR changed the title [extension/k8sobserver] add k8s.ingress endpoint [extension/observer/k8sobserver] add k8s.ingress endpoint May 11, 2024
@M0NsTeRRR
Copy link
Author

/label extension/observer/k8sobserver

Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
@M0NsTeRRR M0NsTeRRR requested a review from ChrsMark May 20, 2024 14:25
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants