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
Bundle lib 0.2 #946
Bundle lib 0.2 #946
Conversation
| rules := make([]rbac.PolicyRule, 0, len(in)) | ||
| for _, rule := range in { | ||
| // We need to split this rule into multiple rules for RBAC | ||
| if isResourceRule(&rule) && isNonResourceRule(&rule) { |
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.
Nit: This reads a bit strange but I can understand what it is doing. I had to read the definitions of the functions to get it though
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.
Change looks good to me
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.
Approved pending release branch.
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.
forgot to hit approve
|
@shawn-hurley seeing an issue on this branch with the watchBundle: Investigating further. Looks like the WatchRunningBundle method is nil and never set to the Which seemed to solve the problem |
|
Not sure if these are related to my local environment but also seeing the following error during provision of the hello world database apb from the ansibleplaybookbundle org using OpenShift 3.9 |
|
@maleck13 any chance you can submit the patch to bundle lib? |
|
@shawn-hurley For the second issue it looks to me like there is an attempt to exec into the container to get the credentials |
|
@shawn-hurley @mhrivnak have a fix on the way for the second issue around the runtime label (discussed on IRC yesterday). Taking the approach of defaulting to using the previous label but overriding with if it is present. |
7901e55
to
2a8ffa1
Compare
2a8ffa1
to
cbc9a5c
Compare
| ) | ||
|
|
||
| //ConvertAPIPolicyRulesToRBACPolicyRules - Convert Policy Rules. | ||
| func ConvertAPIPolicyRulesToRBACPolicyRules(in []v1.PolicyRule) []rbac.PolicyRule { |
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.
👍, happy if we can rip this out of bundle-lib.
|
I retested this and things worked fine. Let me know if we should merge. |
|
Something looks to have changed with the state work mount looks like this but the actual config map is now copied over as investigating |
|
The issue here is the mount is using the configmap name from the broker ns. This is set on the execution context as StateName but actually the configmap in the temporary ns is named after the pod. So I think the following needs to change Also seem to have lost the pod env var for the state location for the module to use https://github.com/ansibleplaybookbundle/ansible-asb-modules/pull/15/files#diff-626ec7d8b94f76ad88ac6d856a17b660R34 |
|
rebased to pick up the travis changes from @djzager |
Describe what this PR does and why we need it:
Bump bundle lib for next release
Changes proposed in this pull request
Does this PR depend on another PR (Use this to track when PRs should be merged)
This depends on a release branch being created and master to open up for new development.