Dennis Meissel
Dennis Meissel

Reputation: 2483

Using helm to define relative hostPath

I need to use relative volume host path in kubernetes config.

Is it possible to get the working directory in helm?

Something like $(pwd), but inside helm templates.

Upvotes: 0

Views: 2118

Answers (1)

kool
kool

Reputation: 3613

You can view working directory by running for example:

helm install . --dry-run --debug --set workingDirectory="${PWD}"

It will print the working directory under USER-SUPPLIED VALUES: and COMPUTED VALUES in the last line.

Upvotes: 1

Related Questions