Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

core/install: Add --nomad-csi-volume-name flag to install #3546

Merged
merged 8 commits into from
Jul 29, 2022

Conversation

demophoon
Copy link
Contributor

This commit allows users to specify their own volume names within their
CSI provider. Some cases where the upstream provider is incompatible
with the default name because of limitations on their end make it so
that waypoint is unable to be used within those providers. In my testing
the DigitalOcean CSI provider doesn't handle capitalization of the
volume's name specifically within the runner ID. I suspect other
providers may have different requirements which we should be able to
work around since there is not an explicit requirement in the CSI spec
for the names of volumes within a provider.

Copy link
Contributor

@paladin-devops paladin-devops left a comment

Choose a reason for hiding this comment

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

Nice job considering the flexible requirements of CSI implementations! Just had one suggestion to use a helpful function, but I think we'll need to revise the way the CSI volume is "uninstalled", when we have a customizable name.

internal/runnerinstall/nomad.go Outdated Show resolved Hide resolved
internal/runnerinstall/nomad.go Outdated Show resolved Hide resolved
This commit allows users to specify their own volume names within their
CSI provider. Some cases where the upstream provider is incompatible
with the default name because of limitations on their end make it so
that waypoint is unable to be used within those providers. In my testing
the DigitalOcean CSI provider doesn't handle capitalization of the
volume's name. I suspect other providers may have different requirements
which we should be able to work around since there is not an explicit
requirement in the CSI spec for the names of volumes within a provider.
This commit changes the default runner name from a hard coded string to
the same method for retrieving the default runner names for all other
runner platforms.
internal/runnerinstall/nomad.go Outdated Show resolved Hide resolved
@demophoon demophoon added the backport/0.9.x Automerge PR into release/0.9.x branch after merge to main label Jul 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/0.9.x Automerge PR into release/0.9.x branch after merge to main core website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants