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

fix naming mistake in clusterrolebinding, expose env var to controller via downward api #874

Merged
merged 1 commit into from
May 11, 2021

Conversation

vdhanan
Copy link
Contributor

@vdhanan vdhanan commented May 6, 2021

Is this a bug fix or adding new feature?
fix
What is this PR about? / Why do we need it?
fixes naming mistake
What testing is done?
manually testing now, will finish before merging

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 6, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vdhanan

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:

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 k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 6, 2021
@vdhanan
Copy link
Contributor Author

vdhanan commented May 6, 2021

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 6, 2021
@coveralls
Copy link

coveralls commented May 6, 2021

Pull Request Test Coverage Report for Build 1951

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 79.188%

Totals Coverage Status
Change from base Build 1949: 0.0%
Covered Lines: 1990
Relevant Lines: 2513

💛 - Coveralls

@AndyXiangLi
Copy link
Contributor

AndyXiangLi commented May 10, 2021

/lgtm
Can you also cherry-pick this change to v1.0.0 branch?

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 10, 2021
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 11, 2021
@vdhanan
Copy link
Contributor Author

vdhanan commented May 11, 2021

Disabled instance metadata with the following command:

➜  aws-ebs-csi-driver git:(master) ✗ aws ec2 modify-instance-metadata-options \    --instance-id i-06b71b5a49302390b \                                  
    --http-endpoint disabled

Then deployed the driver, verified csi controller and nodes are running:

➜  aws-ebs-csi-driver git:(master) ✗ kubectl get pods -n kube-systemNAME                                  READY   STATUS    RESTARTS   AGEaws-node-4p4rc                        1/1     Running   0          66d
aws-node-h6qwh                        1/1     Running   0          66d
aws-node-jqk6j                        1/1     Running   0          66d
coredns-559b5db75d-4cggs              1/1     Running   0          66d
coredns-559b5db75d-f8pgl              1/1     Running   0          66d
ebs-csi-controller-85d7fcfd88-2q6wk   6/6     Running   0          29s
ebs-csi-controller-85d7fcfd88-ss8ml   6/6     Running   0          29s
ebs-csi-node-9x8k6                    3/3     Running   0          29s
ebs-csi-node-l9bq8                    3/3     Running   0          29s
ebs-csi-node-rcz5n                    3/3     Running   0          29s
ebs-snapshot-controller-0             1/1     Running   0          29s
kube-proxy-987lz                      1/1     Running   0          66d
kube-proxy-tnbkt                      1/1     Running   0          66d
kube-proxy-z2vzx                      1/1     Running   0          66d

Checked logs for further verification. I added the EC2 instance metadata is not available log, so I'm now positive that the new code path is being exercised:

➜  aws-ebs-csi-driver git:(master) ✗ kubectl logs -n kube-system -c ebs-plugin ebs-csi-controller-85d7fcfd88-2q6wk
I0511 19:27:43.767633       1 driver.go:72] Driver: ebs.csi.aws.com Version: v1.0.0
I0511 19:27:43.767687       1 controller.go:80] [Debug] Retrieving region from metadata service
W0511 19:27:44.030811       1 metadata.go:98] EC2 instance metadata is not available
I0511 19:27:44.044990       1 driver.go:142] Listening for connections on address: &net.UnixAddr{Name:"/var/lib/csi/sockets/pluginproxy/csi.sock", Net:"unix"}
I0511 19:27:44.217135       1 controller.go:360] ControllerGetCapabilities: called with args {XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0}
I0511 19:27:44.218374       1 controller.go:360] ControllerGetCapabilities: called with args {XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0}
I0511 19:27:44.997351       1 controller.go:360] ControllerGetCapabilities: called with args {XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0}
I0511 19:27:45.996488       1 controller.go:360] ControllerGetCapabilities: called with args {XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0}
I0511 19:27:47.669940       1 controller.go:360] ControllerGetCapabilities: called with args {XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0}

Checked that the deployment succeeds with both helm and kustomize.

@vdhanan vdhanan changed the title fix naming mistake in clusterrolebinding fix naming mistake in clusterrolebinding, expose env var to controller via downward api May 11, 2021
@wongma7
Copy link
Contributor

wongma7 commented May 11, 2021

nice, thanks!!

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 11, 2021
@vdhanan
Copy link
Contributor Author

vdhanan commented May 11, 2021

/unhold

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 11, 2021
@k8s-ci-robot k8s-ci-robot merged commit 5f79c8c into kubernetes-sigs:master May 11, 2021
@vdhanan vdhanan mentioned this pull request May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants