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

Automatically configure global build strategy #723

Merged
merged 7 commits into from
Jun 7, 2019

Conversation

nicolaferraro
Copy link
Member

Fix #703

This works on OpenShift. I'm checking Kubernetes.

@nicolaferraro nicolaferraro force-pushed the 703-global-operator branch 2 times, most recently from e71e1f3 to 10f212c Compare June 5, 2019 11:06
@nicolaferraro nicolaferraro changed the title [WIP]: automatically configure global build strategy Automatically configure global build strategy Jun 5, 2019
@nicolaferraro
Copy link
Member Author

I've skipped warming phase when the operator is global and I'm not setting builder affinity with the operator. Builder and Publisher, instead are linked by affinity, because they need to share their RWO volume. Publisher can bind to operator or builder pod depending on the config (not sure if we still can use routine for kaniko).

Tested in global configuration in openshift and minikube.

@nicolaferraro
Copy link
Member Author

I feel more and more that we must spend some time improving the integration tests, because we need to make sure that all deployment configuration work...

@astefanutti
Copy link
Member

Awesome work!

I agree the combinatory of use cases may become unsustainable without integration tests!

@astefanutti
Copy link
Member

Should we update the OLM manifest now in preparation of the next release? I just fear we forget to add the cluster-wide permissions for that new installation mode.

@nicolaferraro
Copy link
Member Author

I'll do some tests with that. I was thinking we can add a SNAPSHOT CSV that we keep aligned with latest changes and change it to stable during release.

@astefanutti
Copy link
Member

I'll do some tests with that. I was thinking we can add a SNAPSHOT CSV that we keep aligned with latest changes and change it to stable during release.

I agree, that'd be the best approach.

@nicolaferraro
Copy link
Member Author

No need to set cluster level permissions, OLM creates a clusterrole if you install it for all namespaces.
I've added the manifests and some scripts.

Tested on OCP4 in both local and global mode ;)

@nicolaferraro
Copy link
Member Author

Will open another issue to refactor the different roles...

@astefanutti
Copy link
Member

No need to set cluster level permissions, OLM creates a clusterrole if you install it for all namespaces.
I've added the manifests and some scripts.

Somehow, I hoped it would for a few seconds when I reviewed the PR, otherwise, that would have meant each operator had to define the majorant of all the required roles for all the install modes. So that is a good news.

@astefanutti
Copy link
Member

Will open another issue to refactor the different roles...

May be similar to #516.

@nicolaferraro
Copy link
Member Author

If this gets into master, I'll try to cut 0.3.4 today.

@lburgazzoli lburgazzoli merged commit 8728513 into apache:master Jun 7, 2019
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.

Automatically use pod build strategy in "AllNamespaces" setup
3 participants