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

Support Helm3 and OpenShift #130

Merged
merged 4 commits into from
Jun 18, 2020
Merged

Support Helm3 and OpenShift #130

merged 4 commits into from
Jun 18, 2020

Conversation

jeffhoek
Copy link
Contributor

This enhancement adds support for OpenShift and Helm3. To support Helm3 adjustments were made to hook annotations so that resources are applied in proper order during creation and deletion. In addition, in order to successfully install the image/cluster image policies, the patch verb was added in the cluster role resource for apiGroup securityenforcement.admission.cloud.ibm.com.

To support OpenShift a security context contraint was added for the portieris service account. This scc must be in place prior to instantiating the deployment, so the helm pre-install hook annotation was utilized.

Closes: #127
Closes: #124

type: RunAsAny
groups:
- system:cluster-admins
kind: SecurityContextConstraints
Copy link
Member

Choose a reason for hiding this comment

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

Just for readability, could apiVersion, kind, and metadata be moved to the top of this file please? It took me a while to realise this file had those fields. Alphabetical is fine for the other fields.

@molepigeon molepigeon merged commit 4311d26 into IBM:master Jun 18, 2020
@jeffhoek jeffhoek deleted the helm3-openshift branch June 19, 2020 13:51
tim-gp pushed a commit to tim-gp/portieris that referenced this pull request Oct 1, 2020
* Adjust helm hook annotations and add patch to clusterrole.

* Add security context constraint for OpenShift.

* Update readme with Helm3 support

* Adjust scc field ordering for better readability.

Co-authored-by: Jeffrey Hoekman <jeffrey.hoekman@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

helm3 install hangs on OpenShift 4.3 permission denied on Openshift
2 participants