Skip to content

feat: Add fixture to install the MariaDB operator#177

Merged
rnetser merged 2 commits intoopendatahub-io:mainfrom
adolfo-ab:install-mariadb-operator
Mar 17, 2025
Merged

feat: Add fixture to install the MariaDB operator#177
rnetser merged 2 commits intoopendatahub-io:mainfrom
adolfo-ab:install-mariadb-operator

Conversation

@adolfo-ab
Copy link
Copy Markdown
Contributor

Add fixture to install the MariaDB operator, used in some TrustyAIService tests.

Description

Some TrustyAIService tests use the MariaDB operator. As of now we can't expect it to be installed in the cluster by default, since only a few tests use it, and is not a required operator for ODH/RHOAI. So we need to install/uninstall from the test setup through a fixture. We also check if the operator is already installed before attempting the installation, to prevent ConflictError.

How Has This Been Tested?

Running the tests in a working cluster

Merge criteria:

  • The commits are squashed in a cohesive manner and have meaningful messages.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

@adolfo-ab adolfo-ab requested a review from a team as a code owner March 14, 2025 12:15
@adolfo-ab
Copy link
Copy Markdown
Contributor Author

/verified

@github-actions
Copy link
Copy Markdown

The following are automatically added/executed:

Available user actions:

  • To mark a PR as WIP, add /wip in a comment. To remove it from the PR comment /wip cancel to the PR.
  • To block merging of a PR, add /hold in a comment. To un-block merging of PR comment /hold cancel.
  • To mark a PR as approved, add /lgtm in a comment. To remove, add /lgtm cancel.
    lgtm label removed on each new commit push.
  • To mark PR as verified comment /verified to the PR, to un-verify comment /verified cancel to the PR.
    verified label removed on each new commit push.
Supported labels

{'/hold', '/wip', '/verified', '/lgtm'}

@github-actions github-actions bot added size/s Verified Verified pr in Jenkins labels Mar 14, 2025
dbasunag
dbasunag previously approved these changes Mar 14, 2025
Copy link
Copy Markdown
Contributor

@rnetser rnetser left a comment

Choose a reason for hiding this comment

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

small changed to re-use name

deployment = Deployment(
client=admin_client,
namespace=operator_ns.name,
name="mariadb-operator-helm-controller-manager",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
name="mariadb-operator-helm-controller-manager",
name=f"{operator_name}-helm-controller-manager",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

@github-actions github-actions bot removed the Verified Verified pr in Jenkins label Mar 17, 2025
@adolfo-ab adolfo-ab force-pushed the install-mariadb-operator branch from 06393c8 to 1ed5030 Compare March 17, 2025 14:26
@adolfo-ab
Copy link
Copy Markdown
Contributor Author

/verified

@github-actions github-actions bot added the Verified Verified pr in Jenkins label Mar 17, 2025
@rnetser rnetser merged commit 8c34e05 into opendatahub-io:main Mar 17, 2025
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s Verified Verified pr in Jenkins

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants