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

Add optional selective cache refresh option #777

Merged
merged 5 commits into from
Sep 25, 2023

Conversation

sboardwell
Copy link
Contributor

This PR adds the ability to selectively refresh cached elements.

Inspiration taken from https://bluegrid.io/edu/how-to-purge-the-nginx-cache

@@ -61,6 +71,10 @@ data:

# Default location for cached requests
location / {
{{- if .Values.proxy.proxyBypass.enabled -}}
add_header Cache $upstream_cache_status;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Cache header is, of course, optional but I like the transparency it provides.

@dduportal
Copy link
Contributor

Thanks @sboardwell ! Are you at ease with helm unitest to add some to cover the code in this change?
Otherwise do you allow me to push a set of unittests in this PR instead?
We can pair if you are interested

@sboardwell
Copy link
Contributor Author

I can add some. Was a little busy today but wanted to get something in for you to look at.

@dduportal
Copy link
Contributor

(btw: you have to bump the chart version in order to have the checks validating your PR)

@sboardwell
Copy link
Contributor Author

@dduportal - should be good to go now

Copy link
Contributor

@dduportal dduportal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍🏼

@dduportal dduportal merged commit fd6d098 into jenkins-infra:main Sep 25, 2023
@sboardwell sboardwell deleted the add-optional-proxy-bypass branch November 15, 2023 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants