mock-server / mockserver

MockServer enables easy mocking of any system you integrate with via HTTP or HTTPS with clients written in Java, JavaScript and Ruby. MockServer also includes a proxy that introspects all proxied traffic including encrypted SSL traffic and supports Port Forwarding, Web Proxying (i.e. HTTP proxy), HTTPS Tunneling Proxying (using HTTP CONNECT) and SOCKS Proxying (i.e. dynamic port forwarding).
http://mock-server.com
Apache License 2.0
4.62k stars 1.08k forks source link

add custom labels support for pod-based network policies #1884

Open fvanderwielen opened 4 months ago

fvanderwielen commented 4 months ago

Describe the feature request I would like to set custom labels on the pods of the helm chart, so they match with active network policies on the cluster I need to work on.

What you are trying to do I want to deploy mockserver via helm, to a cluster I cannot do the administation of myself. The cluster has active network policies, using matchLabels to allow the pods to be exposed. To be clear, these network policies are set by administration, and it is not within my possibilities to modify them to run on namespace (like the mockserver helm docs suggest)

The solution you'd like I want to be able to give the pods in the mockserver helm chart custom labels.

Describe alternatives you've considered

ps. I definitely want to give compliments on mockserver. I have been a software developer professionally for well over 10 years, and this project is well above the norm. It was really easy to get up and running locally with docker, and configuring it with curl is also really great, along with the other features allowing for incredible flexibility.

fvanderwielen commented 4 months ago

I downloaded the chart (V 5.15.0 from the tagged release, not 5.14.0 linked on the website), and modded in a podLabels Value similarly to podAnnotations, to get this to work as described. Let me know if a PR would be appreciated.