aws-efs-csi-driver icon indicating copy to clipboard operation
aws-efs-csi-driver copied to clipboard

Should not pass in mount option of awscredsuri

Open Ashley-wenyizha opened this issue 2 years ago • 11 comments

Is this a bug fix or adding new feature?

Should not pass in mount option of awscredsuri as there is no EKS customer should be using it, the uri is used together with ECS metadata endpoint. We should ignore that option if customer passed it in efs-csi-driver.

What is this PR about? / Why do we need it?

What testing is done?

Ashley-wenyizha avatar Aug 11 '22 16:08 Ashley-wenyizha

/lgtm

wangnyue avatar Aug 11 '22 16:08 wangnyue

@wangnyue: changing LGTM is restricted to collaborators

In response to this:

/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Aug 11 '22 16:08 k8s-ci-robot

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Ashley-wenyizha, wangnyue, yinsihaws

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • ~~OWNERS~~ [Ashley-wenyizha]

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot avatar Aug 11 '22 16:08 k8s-ci-robot

/re-test

Ashley-wenyizha avatar Aug 11 '22 16:08 Ashley-wenyizha

After running hack/update-gofmt, pull-aws-efs-csi-driver-verify still fails, similar in https://github.com/kubernetes-sigs/aws-efs-csi-driver/pull/752

Ashley-wenyizha avatar Aug 11 '22 16:08 Ashley-wenyizha

failed test was able to be fixed updating Go to latest version and run /hack/update-gofmt

Ashley-wenyizha avatar Aug 11 '22 21:08 Ashley-wenyizha

Added on above comment:

  1. Can we add some unit test for this change? Basically validating when the option is passed, the csi-driver won't fail the mount but post a warn log, or that option is not passed to efs-utils at all.
  2. I think we should ignore the netns option as well, but that could be in a separate PR.

Cappuccinuo avatar Aug 12 '22 01:08 Cappuccinuo

/lgtm

nckturner avatar Aug 12 '22 17:08 nckturner

/re-test

Ashley-wenyizha avatar Aug 12 '22 18:08 Ashley-wenyizha

/retest

nckturner avatar Aug 12 '22 18:08 nckturner

/lgtm

nckturner avatar Aug 17 '22 22:08 nckturner