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

ENTESB-18466: Introduces control of OLM upgradeability using OLM OperatorCondition flag #9913

Merged
merged 6 commits into from Feb 25, 2022

Commits on Feb 14, 2022

  1. Update the dependencies to allow use of operator-lib

    * operator-lib provides factory functions for setting operator
      conditions
    phantomjinx committed Feb 14, 2022
    Configuration menu
    Copy the full SHA
    1bfe834 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2022

  1. chore: Add ability to create a test catalog index bundle

    * Calling make test-catalog, the bundle will be built, pushed and
      added to a copy of the 4.11 catalog. The resulting image can be
      pushed and used as a catalogsource for testing the OLM install
      of the bundle metadata.
    phantomjinx committed Feb 23, 2022
    Configuration menu
    Copy the full SHA
    deb22e3 View commit details
    Browse the repository at this point in the history
  2. fix: Missing clusterroles required when installing via operator

    * The OLM bundle needs the kafka and public-api cluster roles as
      the operator install action applies the ClusterRoleBindings in
      assets/infrastructure. The bindings call for these roles by
      name so they must be installed by the OLM as well as by the
      syndesis install --cluster-setup
    phantomjinx committed Feb 23, 2022
    Configuration menu
    Copy the full SHA
    bb90e0e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    53d5231 View commit details
    Browse the repository at this point in the history
  4. fix(ENTESB-18466): Flag operator as non-upgradeable

    * When operator is installed via OLM, a separate OperatorCondition
      CR is created which can be updated with an "upgradeable"
      condition flagging whether the OLM can upgrade the operator
    
    * Turn off upgradeable state when
     * operator is initializing
     * operator is upgrading
    
    * Turn on upgradeable state when
     * operator has started
     * operator has completed an upgrade
    
    * Finds the OperatorCondition using the deployment name, deployment
      owner (CSV) and the CSV name (OperatorCondition has same name as
      the CSV).
    
    * Adds conditions tests but cannot completely implement due to
      operator-framework/operator-lib#103
    phantomjinx committed Feb 23, 2022
    Configuration menu
    Copy the full SHA
    5e5b074 View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2022

  1. Fix: kube-openapi boilerplate.go.txt not found

    * By default, openapi-gen looks for a boilerplace.go.txt file in
      ${SRC}/go/src/kube-openapi/boilerplate but `go mod vendor`
      excludes this directory when vendoring dependencies.
    
    * .lib.sh
     * Include our own boilerplate directory and use the
       --go-header-file switch to specify its location
     * Improve the brevity of the openapi-gen function
    
    * boilerplate.go.txt
     * Reflects our licence header rather than kubernetes
    
    * Makefile
     * Replace which with command as latter is posix compliant
    
    * Update to kube-openapi version and generated api files
    phantomjinx committed Feb 24, 2022
    Configuration menu
    Copy the full SHA
    48d4eaa View commit details
    Browse the repository at this point in the history