harbor-container-webhook icon indicating copy to clipboard operation
harbor-container-webhook copied to clipboard

Allow env variable string substitution in rewrite rules

Open matin-nayob opened this issue 7 months ago • 0 comments

Firstly, thank you for this project, it really is awesome!

We have multiple isolated K8s clusters, with separate Harbor instances in each one, accessible on different domains.

It would be super neat if the rules config allowed you to substitute parts of the replace section with an environment variable value, like:

replace: '${HARBOR_DOMAIN}/dockerhub-proxy

As we use kustomize with helm to generate the final k8s manifests for this project, we end up repeating the values.yaml file for each cluster with only the harbor domain being different in each file.

Not a big deal, but if you think its a good ideal, thats cool.

Once again, thank you for this project, it really has made switching to Harbor so much easier.

matin-nayob avatar Jul 10 '24 11:07 matin-nayob