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

Avoid unnecessary pod restart on each helm chart version #178

Merged
merged 5 commits into from
Dec 11, 2023

Conversation

jkroepke
Copy link
Contributor

@jkroepke jkroepke commented Dec 10, 2023

This PR changes the the input of the config checksum which triggers the reload.

On main branch, the whole configmap/secret checksum is included as checksum input. The configmap contains labels which includes the helm chart version. Each new helm chart version forces a pod restart which is not always necessary.

By define a finer input for the pod annotation checksum, unnecessary pod restarts can be avoided.

The PR implements this for

  • config
  • alpha config
  • secrets
  • htpasswd

and could be extended to

  • redis
  • email
  • google secret

@pierluigilenoci
Copy link
Contributor

@jkroepke, could you please add an annotation for ArtifactHub to be approved.

Signed-off-by: Jan-Otto Kröpke <[email protected]>
Signed-off-by: Jan-Otto Kröpke <[email protected]>
@jkroepke
Copy link
Contributor Author

@jkroepke, could you please add an annotation for ArtifactHub to be approved.

Done!

@pierluigilenoci
Copy link
Contributor

@jkroepke Thank you for your contribution!

@pierluigilenoci pierluigilenoci merged commit 74e598d into oauth2-proxy:main Dec 11, 2023
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants