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

feat: add persistentvolumeclaim module type and volumes for containers #1615

Merged
merged 2 commits into from
Feb 19, 2020

Conversation

edvald
Copy link
Collaborator

@edvald edvald commented Feb 18, 2020

What this PR does / why we need it:

This makes it possible to mount persistent volumes in container modules,
including in tasks and tests. With the right storage classes in place,
you can even share volumes between container services, tasks and tests.
These volumes can of course also be referenced in kubernetes and
helm modules.

See the added section to the container modules guide for details on
how to use the new features.

As a small bonus, in order to be able to use the upstream
PersistentVolumeClaim schema, I've added a
joi.customObject().jsonSchema() type, which allows us weave JSON
schemas into our existing Joi schemas. My hope is that we can gradually
get rid of most usages of Joi schemas, at least in our plugin APIs.

Which issue(s) this PR fixes:

Closes #1607

This makes it possible to mount persistent volumes in container modules,
including in tasks and tests. With the right storage classes in place,
you can even share volumes between container services, tasks and tests.
These volumes can of course also be referenced in `kubernetes` and
`helm` modules.

See the added section to the container modules guide for details on
how to use the new features.

As a small bonus, in order to be able to use the upstream
PersistentVolumeClaim schema, I've added a
`joi.customObject().jsonSchema()` type, which allows us weave JSON
schemas into our existing Joi schemas. My hope is that we can gradually
get rid of most usages of Joi schemas, at least in our plugin APIs.
Copy link
Collaborator

@thsig thsig left a comment

Choose a reason for hiding this comment

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

Looks good to me.

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.

Add volume module type for persistent volumes
2 participants