Skip to content

Commit b544ae5

Browse files
Kiran Movayasker
Kiran Mova
authored andcommitted
use the correct string for namespace env
When deploying this provisioner in non-default namespace, this provisioning fails with an message about missing local-path-storage. As per the deployment file, Namespace is passed using the string POD_NAMESPACE. (https://github.com/rancher/local-path-provisioner/blob/master/deploy/local-path-storage.yaml#L75) This PR is to correct the variable name used for fetching the namespace.
1 parent c1d3659 commit b544ae5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var (
2323
EnvProvisionerName = "PROVISIONER_NAME"
2424
DefaultProvisionerName = "rancher.io/local-path"
2525
FlagNamespace = "namespace"
26-
EnvNamespace = "NAMESPACE"
26+
EnvNamespace = "POD_NAMESPACE"
2727
DefaultNamespace = "local-path-storage"
2828
FlagHelperImage = "helper-image"
2929
EnvHelperImage = "HELPER_IMAGE"

0 commit comments

Comments
 (0)