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

Get default Mountpoint namespace from env in CSI Controller #366

Conversation

unexge
Copy link
Contributor

@unexge unexge commented Jan 31, 2025

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.

@unexge unexge requested a review from a team as a code owner January 31, 2025 15:49
@unexge unexge enabled auto-merge January 31, 2025 15:49
@@ -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.")
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

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?

Copy link
Contributor Author

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

@unexge unexge added this pull request to the merge queue Feb 3, 2025
Merged via the queue into awslabs:main with commit e00a42d Feb 3, 2025
27 checks passed
@unexge unexge deleted the csi-controller-get-mountpoint-namespace-from-env-by-default branch February 3, 2025 17:05
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.

2 participants