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

Use Persistent Volume Claim (PVC) in Helm Chart #1779

Open
MitchelNijdam-Rockstars opened this issue Jul 21, 2023 · 0 comments
Open

Use Persistent Volume Claim (PVC) in Helm Chart #1779

MitchelNijdam-Rockstars opened this issue Jul 21, 2023 · 0 comments

Comments

@MitchelNijdam-Rockstars
Copy link
Contributor

Describe the feature request

MockServer has the ability to persistently save any expectation into a file. When running MockServer on Kubernetes, since pods are ephemeral and clear any files on restart - it would be nice to define a PVC to persistently store the configuration.

What you are trying to do

Keep MockServer's expectations persisted on Kubernetes pod restart.

The solution you'd like

  • New value in values.yaml: app.persistentVolumeClaimName
  • Update templates/deployment.yaml - if variable is defined, add volume & volumeMount
  • Add extra template for PVC - surrounded with {{ if .Values.app.persistentVolumeClaimName }}

Describe alternatives you've considered

Current alternative is manually copy-pasting the whole helm chart to our gitops repository and modifying above manually. Would be nice if it became available for everyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant