GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - codeready-toolchain/member-operator: CodeReady Toolchain Member Operator

BranchesTags
Open more actions menu

Latest commit

 

History

689 Commits
689 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
build
build
 
 
cmd
cmd
 
 
config
config
 
 
controllers
controllers
 
 
deploy
deploy
 
 
hack
hack
 
 
make
make
 
 
openshift-ci
openshift-ci
 
 
pkg
pkg
 
 
test
test
 
 
version
version
 
 
.codecov.yaml
.codecov.yaml
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
.golangci.yml
.golangci.yml
 
 
.yamllint
.yamllint
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
OWNERS
OWNERS
 
 
PROJECT
PROJECT
 
 
README.md
README.md
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
sonar-project.properties
sonar-project.properties
 
 
tools.go
tools.go
 
 

Repository files navigation

Member Operator

Go Report Card GoDoc Codecov.io Operator CD Image Repository on Quay

This is the CodeReady Toolchain Member Operator repository. It contains the OpenShift Operator that is deployed on the "member" cluster in the SaaS.

Build

Requires Go version 1.26.x (1.26.5 or higher) - download for your development environment here.

This repository uses Go modules.

Development

The dev.mk targets in the toolchain-e2e repository can be used to build and deploy the host and member operators for development, or follow the guide.

Releasing operator

The releases of the operator are automatically managed via GitHub Actions workflow defined in this repository.

Broken release

If there is any broken release that cannot be built & pushed through the pipeline - for example because of this error:

Invalid bundle toolchain-member-operator.v0.0.204-commit-a765b6a, bundle specifies a non-existent replacement toolchain-member-operator.v0.0.203-commit-d24cbac

then the release has to be fixed manually. In such a case, please follow these steps:

  1. Log in to quay.io using an account that has the write permissions in quay.io/codeready-toolchain/member-operator repo.
  2. Checkout to the problematic (missing) commit that failed in the pipeline and that has to be manually released.
  3. Run make podman-push QUAY_NAMESPACE=codeready-toolchain
  4. Run make push-to-quay-staging QUAY_NAMESPACE=codeready-toolchain

End-to-End tests

Background & pairing

E2E tests are not located in this repository - all e2e tests are in the toolchain-e2e repo, however, it's still possible to run them locally from this repo - see Running End-to-End Tests.

When there is a change introduced in this repository that should be either covered by e2e tests or requires changes in the already existing tests, then all needed changes should go into the toolchain-e2e repo. The logic that executes tests in openshift-ci automatically tries to pair any PR opened for this (member-operator) repository with a branch that potentially exists in the developer's fork of the toolchain-e2e repo. This pairing is based on the current branch name.

For example, if a developer with a GH account cooljohn opens a PR (for member-operator repo) from a branch fix-reconcile, then the logic checks if there is a branch named fix-reconcile also in the cooljohn/toolchain-e2e fork. If there is a match, then the logic:

  1. clones the latest changes from codeready-toolchain/toolchain-e2e
  2. fetches the fix-reconcile branch from cooljohn/toolchain-e2e fork
  3. merges the master branch with the changes from fix-reconcile branch
  4. clones the latest changes from host-operator repo, then builds and deploys the host-operator image out of it
  5. builds & deploys the member-operator image from the code that is in the PR
  6. runs the e2e tests against both operators from the merged branch of the toolchain-e2e repo

If the branch with the same name does not exist, then it only clones the latest changes from toolchain-e2e and runs e2e tests from the master.

If you still don't know what to do with e2e tests in some use-cases, go to What to do section where all use-cases are covered.

Running End-to-End Tests

Although the e2e tests are in the separated repository, it's still possible to run them from this repo (member-operator) and also against the current code that is the local repository (directory). There are two Makefile targets that will execute the e2e tests:

  • make test-e2e - this target clones latest changes from toolchain-e2e and runs e2e tests for both operators from the master. As deployment for member-operator it uses the current code that is in the local repository.
  • make test-e2e-local - this target doesn't clone anything, but it runs run e2e tests for both operators from the directory ../toolchain-e2e. As deployment for member-operator it uses the current code that is in the local repository.

The tests executed within toolchain-e2e repo will take care of creating all needed namespaces with random names (or see below for enforcing some specific namespace names). It will also create all required CRDs, role and role bindings for the service accounts, build the images for both operators and push them to the image registry. Finally, it will deploy the operators and run the tests.

NOTE: you can override the default namespace names where the end-to-end tests are going to be executed - eg.: make test-e2e HOST_NS=my-host MEMBER_NS=my-member file.

What to do

If you are still confused by the e2e location, execution and branch pairing, see the following cases and needed steps:

  • Working locally:

    • Need to test your code using the latest version of e2e tests from toolchain-e2e repo:
      • execute make test-e2e
    • Need to test your code using e2e tests located in ../toolchain-e2e repo:
      • execute make test-e2e-local
  • Creating a PR:

    • Your PR doesn't need any changes in toolchain-e2e repo:
      • check the name of a branch you are going to create a PR for
      • make sure that your fork of toolchain-e2e repo doesn't contain branch with the same name
      • create a PR
    • Your PR requires changes in toolchain-e2e repo:
      • check the name of a branch you are going to create a PR for
      • create a branch with the same name within your fork of toolchain-e2e repo and put all necessary changes there
      • push all changes into both forks of the repositories toolchain-e2e and member-operator
      • create a PR for member-operator
      • create a PR for toolchain-e2e

About

CodeReady Toolchain Member Operator

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

5 stars

Watchers

6 watching

Forks

45 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.