-
Notifications
You must be signed in to change notification settings - Fork 35
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
Get default Mountpoint namespace from env in CSI Controller #366
Get default Mountpoint namespace from env in CSI Controller #366
Conversation
Signed-off-by: Burak Varlı <[email protected]>
@@ -22,7 +22,7 @@ import ( | |||
"github.com/awslabs/aws-s3-csi-driver/pkg/podmounter/mppod" | |||
) | |||
|
|||
var mountpointNamespace = flag.String("mountpoint-namespace", "mount-s3", "Namespace to spawn Mountpoint Pods in.") | |||
var mountpointNamespace = flag.String("mountpoint-namespace", os.Getenv("MOUNTPOINT_NAMESPACE"), "Namespace to spawn Mountpoint Pods in.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we also include an update to set this variable in this PR as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's in an upcoming commit here 57b5699#diff-0ea7410c82938b74ea30e5de3a925389ed5ab54bcaa447f3e59248faa1ae2f93R69-R70. I just wanted to send small unrelated changes first to not have a similar problem as #328
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So currently this code isn't used right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this binary isn't even installed in our Docker images yet, which will be with #364, and then the previously shared commit will add Kubernetes manifest to use this binary. We only run tests for this component yet
To have consistency with other options and to ensure we don't hard-code Mountpoint namespace, get it from
MOUNTPOINT_NAMESPACE
env by default.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.