Skip to content
This repository was archived by the owner on Jun 26, 2024. It is now read-only.

Conversation

sadlerap
Copy link
Contributor

@sadlerap sadlerap commented Oct 7, 2021

Percona is one of the better-used database providers in k8s. Supporting them as best as we can in SBO will be to our benefit.

Motivation

Since Percona doesn't require invasive changes into the operator to support at least some amount of binding, we should try to support it.

Changes

This adds RBAC rules and an acceptance test as a part of this work.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 7, 2021

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@codecov
Copy link

codecov bot commented Oct 7, 2021

Codecov Report

Merging #1050 (75b43fd) into master (c3f5ad1) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1050   +/-   ##
=======================================
  Coverage   58.68%   58.68%           
=======================================
  Files          30       30           
  Lines        1663     1663           
=======================================
  Hits          976      976           
  Misses        561      561           
  Partials      126      126           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c3f5ad1...75b43fd. Read the comment docs.

@sadlerap sadlerap marked this pull request as ready for review October 7, 2021 20:22
@sadlerap sadlerap marked this pull request as draft October 7, 2021 21:28
@@ -158,3 +158,117 @@ Feature: Support a number of existing operator-backed services out of the box
hippo
"""
And File "/bindings/$scenario_id/password" exists in application pod

Scenario: Bind test application to MongoDB provisioned by Percona's MongoDB operator
Given Crunchy Data Postgres operator is running
Copy link
Contributor

Choose a reason for hiding this comment

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

you need here MongoDB operator running, not Postgres :)

Comment on lines 19 to 49
def install_percona_mongodb_operator(_context):
operator = PerconaMongoDBOperator()
if not operator.is_running():
operator.install_operator_subscription()
operator.is_running(wait=True)
print("Percona MongoDB operator is running")
Copy link
Contributor

Choose a reason for hiding this comment

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

This operator is not installed globally, it does not support AllNamespaces feature, take a look at their release.yaml on OperatorHub. Hence, you need to apply here similar approach to their Postgres operator, check https://github.com/redhat-developer/service-binding-operator/blob/master/test/acceptance/features/steps/percona_mysql_operator.py#L19 for the details.

@pedjak pedjak marked this pull request as ready for review October 8, 2021 22:05
@pedjak
Copy link
Contributor

pedjak commented Oct 9, 2021

/retest

@pedjak pedjak force-pushed the percona-mongodb branch 6 times, most recently from e939a5b to 5e56ab4 Compare October 11, 2021 06:36
Percona is one of the better-used database providers in k8s.  Supporting
them as best as we can in SBO will be to our benefit.

Signed-off-by: Andy Sadler <[email protected]>
@baijum
Copy link
Contributor

baijum commented Oct 11, 2021

/lgtm
/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 11, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: baijum

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@pedjak
Copy link
Contributor

pedjak commented Oct 11, 2021

/hold

@pedjak
Copy link
Contributor

pedjak commented Oct 11, 2021

/hold cancel

@openshift-merge-robot openshift-merge-robot merged commit 043a694 into redhat-developer:master Oct 11, 2021
@sadlerap sadlerap deleted the percona-mongodb branch October 13, 2021 12:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants