Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

BACKPORT ENTESB-14596 (includes addition of ConsoleLink fix from upstream) #9052

Merged
merged 2 commits into from
Sep 21, 2020

Conversation

phantomjinx
Copy link
Contributor

No description provided.

* consolev1 api is part of openshift but not available on minikube or
  minishift. Therefore, need to caveat the use of consolev1.consolelink
  to ensure it does not hurt those other platforms.

* run.go
 * Moves addition of scheme to where other schemes are installed

* syndesis_controller.go
 * removeConsoleLink should only be performed if the platform supports the
   api in the first place

* grant_olm_cluster_role.yml.tmpl
* olm_cluster_role.yml.tmpl
 * Adds the extra cluster role and binding that allows permissions on the
   consolelink.console.openshift.io api permissions
 * Caveats with ApiServer.ConsoleLink, ie. api being present on the cluster

* capabilities
 * Checks for consolelinks.console.openshift.io api and sets flag if present

* configuration
 * SetConsoleLink is only performed if ConsoleLink is true

# Conflicts:
#	install/operator/pkg/controller/syndesis/syndesis_controller.go
#	install/operator/pkg/generator/assets_vfsdata.go
#	install/operator/pkg/syndesis/configuration/configuration.go
* Simplification to use golang substitution to determine kind of binding,
  ie. if --cluster specified in grant command then role is marked as ClusterRole

* RoleBindings can reference ClusterRoles or Roles so which is created can
  be dependent on whether the user specified --cluster

* Separates out cluster roles and bindings into their own files

* install_operator.go: no need to create extra cluster roles

* Where bindings reference a service-account, the namespace is required in
  the subject. To avoid other namespaces overwriting, adds the namespace to
  the name of the binding

* Namespaces removed where identified as unnecessary

* ClusterRoleBindings reduced to RoleBindings where applicable

* Adds all required ClusterRoles to csv so the permissions will be made
  available to the operator in the OperatorHub
@phantomjinx phantomjinx merged commit f52254c into syndesisio:1.11.x Sep 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants