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

INTLY-6505 3scale 2.8 #570

Merged
merged 5 commits into from Apr 14, 2020

Conversation

KevFan
Copy link
Contributor

@KevFan KevFan commented Apr 1, 2020

Description

Upgrade 3scale version to version 2.8

Jira:

There is a known issue that is preventing the completion of walkthrough 4 on 3scale 2.8:

Verification (Locally)

Install

  • Install RHMI from this branch
  • Verify 3scale sucessfully installs

Upgrade

  • Checkout master branch
  • Install RHMI
  • Verify 3scale installs successfully
  • Stop running the operator locally
  • Checkout this branch
  • Run the operator
  • Observe that there will be an upgrade for 3scale and that it will install and complete successfully

Verification (OLM)

Install via OLM

apiVersion: operators.coreos.com/v1
kind: OperatorSource
metadata:
  name: RHMI
  namespace: openshift-marketplace
spec:
  authorizationToken: {}
  displayName: RHMI Operators
  endpoint: 'https://quay.io/cnr'
  publisher: Integreatly Publisher
  registryNamespace: ${REPO}
  type: appregistry
  • Create operator namespace and setup secrets
    • make cluster/prepare/project && make cluster/prepare/smtp && make cluster/prepare/dms && make cluster/prepare/pagerduty
  • Install RHMI from operator hub to the redhat-rhmi-operator namespace

Upgradel via OLM

  • Checkout master
  • Change makefile ORG to your own quay.io registry
  • Push csv to your registry
    • make push/csv REPO=<your_registry> QUAY_USERNAME=<your_registry> QUAY_PASSWORD=<password>
  • Install operator source with your registry
apiVersion: operators.coreos.com/v1
kind: OperatorSource
metadata:
  name: RHMI
  namespace: openshift-marketplace
spec:
  authorizationToken: {}
  displayName: RHMI Operators
  endpoint: 'https://quay.io/cnr'
  publisher: Integreatly Publisher
  registryNamespace: ${REPO}
  type: appregistry

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • This change requires a documentation update
  • I have added tests that prove my fix is effective or that my feature works
  • Verified independently on a cluster by reviewer

@coveralls
Copy link

coveralls commented Apr 1, 2020

Coverage Status

Coverage increased (+0.04%) to 58.405% when pulling 20068af on KevFan:INTLY-6505-3scale-2.8 into c444b66 on integr8ly:master.

@KevFan KevFan changed the title [WIP]INTLY-6505 3scale 2.8 [WIP] INTLY-6505 3scale 2.8 Apr 2, 2020
@KevFan KevFan force-pushed the INTLY-6505-3scale-2.8 branch 2 times, most recently from e42349c to 1b5f35f Compare April 6, 2020 10:05
@KevFan
Copy link
Contributor Author

KevFan commented Apr 6, 2020

@jjaferson @philbrookes Noticed something visually wrong after an upgrade for 3scale, where the version is not updated in the RHMI CR afterwards. I think it's due to this config map, where we get and set the product version from is not updated by the 3scale operator to the latest version.

cm := &corev1.ConfigMap{}
// if this errors it can be ignored
err := serverClient.Get(ctx, k8sclient.ObjectKey{Name: "system-environment", Namespace: r.Config.GetNamespace()}, cm)
if err == nil && string(r.Config.GetProductVersion()) != cm.Data["AMP_RELEASE"] {
r.Config.SetProductVersion(cm.Data["AMP_RELEASE"])
r.ConfigManager.WriteConfig(r.Config)
}

Wondering what's your opinion on this? Update the config map to always match the version of 3scale or remove this part of the code and just always use the hardcoded version? 🤔

Screenshot from 2020-04-06 17-03-00

@KevFan KevFan changed the title [WIP] INTLY-6505 3scale 2.8 INTLY-6505 3scale 2.8 Apr 7, 2020
@KevFan
Copy link
Contributor Author

KevFan commented Apr 7, 2020

/cc @jjaferson

@briangallagher
Copy link
Contributor

/lgtm

@davidffrench
Copy link
Member

@KevFan Looks like it needs a rebase

Copy link
Member

@davidffrench davidffrench left a comment

Choose a reason for hiding this comment

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

@KevFan Just one comment from me.

go.mod Outdated Show resolved Hide resolved
@davidffrench
Copy link
Member

/lgtm
/approve

Thanks @KevFan . I have not verified, approving based on code review and previous verification

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: davidffrench

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

@davidffrench
Copy link
Member

/test e2e

1 similar comment
@davidffrench
Copy link
Member

/test e2e

@davidffrench
Copy link
Member

/test e2e

@openshift-merge-robot openshift-merge-robot merged commit 2842433 into integr8ly:master Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants