-
Notifications
You must be signed in to change notification settings - Fork 101
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
RFE/Question - Turn PV examples into templates #222
Comments
I'm 👍 on this. Our PV examples are, well, just examples right now. This would allow someone to create a pv directly using the The only question I would have is around how we do backup and restore. @fbladilo would this change that process at all? In particular I'm concerned about the hard-coded values for things like the backup pvc, would we also want to template that as a part of this change to be consistent? |
Some more information What I did with the example templates you provide was fairly limited:
I know that might sound confusing. So for example: capacity:
storage: 15Gi Becomes capacity:
storage: "${DB_PV_SIZE}"
# ...
parameters:
- name: DB_PV_SIZE
displayName: PV Size for App DB
required: true
description: The size of the MIQ DB PV given in Gi
value: 15Gi How to process these? During experimentation/study I figured out that this works:
|
PR sent w/ questions for discussion. |
In openshift/openshift-ansible#5336 I converted the server and the postgres db PVs into templates with parameters to make it easier and more natural to use with the openshift-ansible oc_* tools (process, create, etc).
I create the PV templates in here:
And then later I conditionally create each template in here:
name
, it should sayCFME DB PV
, I'll update it)Here's the server PV template and the DB template file:
Server Template
DB Template
Would you consider shipping these updated versions in your repo?
They're a little rough right now, so, if you're open to this then I'll submit a PR and we can get them using language/formatting you prefer.
Thanks!
The text was updated successfully, but these errors were encountered: