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

internal/pkg/scaffold/helm/role.go: add custom rules for namespaced scope #1456

Merged

Conversation

joelanford
Copy link
Member

Description of the change:
Always add custom roles when generating Helm role rules, regardless of whether the operator is cluster-scoped or not.

Motivation for the change:
This is a regression that should be fixed. We didn't catch it in reviews and CI somehow passed for #1434.

@joelanford joelanford requested a review from hasbro17 May 20, 2019 22:39
@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label May 20, 2019
Copy link
Contributor

@hasbro17 hasbro17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hasbro17 hasbro17 added the kind/bug Categorizes issue or PR as related to a bug. label May 20, 2019
@hasbro17
Copy link
Contributor

Need to backport this to the v0.8.x branch as well.

@joelanford joelanford merged commit e9a6ee2 into operator-framework:master May 20, 2019
@joelanford joelanford deleted the helm-namespaced-role branch May 21, 2019 00:28
joelanford added a commit to joelanford/operator-sdk that referenced this pull request May 21, 2019
joelanford added a commit to joelanford/operator-sdk that referenced this pull request May 21, 2019
joelanford added a commit to joelanford/operator-sdk that referenced this pull request May 21, 2019
joelanford added a commit that referenced this pull request May 21, 2019
* internal/pkg/scaffold/helm/role.go: return on role generation error

* internal/pkg/scaffold/helm/role.go: handle OCP k8s versions

* hack/tests/e2e-helm.sh: fail on failed RBAC generation

* CHANGELOG.md: added lines for fixes from #1456 and #1461
joelanford added a commit to joelanford/operator-sdk that referenced this pull request May 21, 2019
joelanford added a commit to joelanford/operator-sdk that referenced this pull request May 21, 2019
* internal/pkg/scaffold/helm/role.go: return on role generation error

* internal/pkg/scaffold/helm/role.go: handle OCP k8s versions

* hack/tests/e2e-helm.sh: fail on failed RBAC generation

* CHANGELOG.md: added lines for fixes from operator-framework#1456 and operator-framework#1461
joelanford added a commit that referenced this pull request May 21, 2019
* internal/pkg/scaffold/helm/role.go: return on role generation error

* internal/pkg/scaffold/helm/role.go: handle OCP k8s versions

* hack/tests/e2e-helm.sh: fail on failed RBAC generation

* CHANGELOG.md: added lines for fixes from #1456 and #1461
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants