- 
                Notifications
    You must be signed in to change notification settings 
- Fork 636
🐛 fix: missing controller permissions #5537
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: missing controller permissions #5537
Conversation
This adds some missing permissions for the controller as found from the e2e tests. Signed-off-by: Richard Case <[email protected]>
| /test ? | 
| @richardcase: The following commands are available to trigger required jobs: The following commands are available to trigger optional jobs: Use  In response to this: 
 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-sigs/prow repository. | 
| /test pull-cluster-api-provider-aws-e2e | 
    
      
        2 similar comments
      
    
  
    | /test pull-cluster-api-provider-aws-e2e | 
| /test pull-cluster-api-provider-aws-e2e | 
20d5eca    to
    0a9bd04      
    Compare
  
    | /test pull-cluster-api-provider-aws-e2e | 
0a9bd04    to
    cf9faa5      
    Compare
  
    | /test pull-cluster-api-provider-aws-e2e | 
Adds an eventually check around the bastion status check. Signed-off-by: Richard Case <[email protected]>
cf9faa5    to
    f5c0e0f      
    Compare
  
    | /test pull-cluster-api-provider-aws-e2e | 
| /cherrypick release-2.8 | 
| @richardcase: once the present PR merges, I will cherry-pick it on top of  In response to this: 
 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-sigs/prow repository. | 
| Expect(actual).To(Not(BeNil())) | ||
| Expect(actual.Type).To(Equal(c.conditionType)) | ||
| Expect(actual.Status).To(Equal(c.status)) | ||
| Expect(actual.Severity).To(Equal(c.severity)) | ||
| Expect(actual.Reason).To(Equal(c.reason)) | 
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.
Just curious: Why these need to be changed?
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.
Previously the tests would only call this once and the assertions would fail the test. However, now we are using an Eventually we need to check the conditions in a loop and so we just return true or false instead of failing an assertion.
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.
/lgtm
| LGTM label has been added. Git tree hash: a5a173024f346fc77f0e59721e14db6cc3d8b016 | 
| /approve | 
| [APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nrb 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  | 
| @richardcase: new pull request created: #5539 In response to this: 
 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-sigs/prow repository. | 
What type of PR is this?
/kind bug
What this PR does / why we need it:
This adds some missing permissions for the controller as found from the e2e tests. Also it adds retry when waiting for the bastion to be ready.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #5535
Special notes for your reviewer:
Checklist:
Release note: