Skip to content

Conversation

@MStokluska
Copy link
Contributor

@MStokluska MStokluska commented Oct 3, 2022

What's done so far

  • bumped Go to 1.17
  • bumped k8s deps to 0.24.3
  • bumped client-go to 0.24.3
  • bumped controller-runtime v0.12.2
  • bumped controller-gen 0.9.2

4.12 support

  • Replaced the v1beta1 policies with v1

Other changes to suit deps bumps

  • slight refactor to reconcilers
  • slight refactor to apimanager watches
  • update to single unit test
  • update to some deprecated logr commands
  • other changes supporting the dep bumps

Unfortunately, deps could not be bumped any further due to the fact that it would have clashed with other operators that RHOAM has to keep in line with.

TODO:
Some PR tests still failing as this would need to get merged to get them pass: openshift/release#33016
On cluster verification of initial install and upgrade

@MStokluska MStokluska changed the title [WIP] THREESCALE-8535 initial bump THREESCALE-8535 OSD 4.12 support Oct 11, 2022
@MStokluska MStokluska requested a review from eguzki October 11, 2022 08:24
@MStokluska
Copy link
Contributor Author

@eguzki I would appreciate it if you could have a look at it, main areas I'm concerned with are:

  • apimanager reconciler watcher update
  • grafana bump to v4 and removal on the spec.name field (yet to do on cluster upgrade verification)

@MStokluska
Copy link
Contributor Author

/test test-e2e
/test test-unit

Copy link
Member

@eguzki eguzki left a comment

Choose a reason for hiding this comment

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

Awesome work 🎖️

Left some comments

This graphana major version bump needs to be analyzed. What happens when upgrading from earlier version and 3scale has grafana dashboards deployed? The grafana operator needs to be upgraded, before the 3scale operator I guess. Needs to be documented.

summary: Job {{ $labels.job }} on {{ $labels.namespace }} is DOWN
expr: up{job=~".*/apicast-production|.*/apicast-staging",namespace="__NAMESPACE__"} == 0
expr: up{job=~".*/apicast-production|.*/apicast-staging",namespace="__NAMESPACE__"}
== 0
Copy link
Member

Choose a reason for hiding this comment

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

These changes have nothing to do with the purpose of the PR, have they?

If not, I would revert the changes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey, this was done in order to get the prometheus rules tests to pass. I am not sure as of yet why is this required to get the tests pass (what changes the expected format) but will dig deeper.

rules:
- alert: ThreescaleBackendListener5XXRequestsHigh
annotations:
description: Job {{ $labels.job }} on {{ $labels.namespace }} has more than 5000 HTTP 5xx requests in the last 5 minutes
Copy link
Member

Choose a reason for hiding this comment

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

These changes have nothing to do with the purpose of the PR, have they?

If not, I would revert the changes

- alert: ThreescaleBackendWorkerJobsCountRunningHigh
annotations:
description: '{{$labels.container_name}} replica controller on {{$labels.namespace}} project: Has more than 1000 jobs processed in the last 5 minutes'
description: '{{$labels.container_name}} replica controller on {{$labels.namespace}}
Copy link
Member

Choose a reason for hiding this comment

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

These changes have nothing to do with the purpose of the PR, have they?

If not, I would revert the changes

- alert: ThreescaleSystemApp5XXRequestsHigh
annotations:
description: Job {{ $labels.job }} on {{ $labels.namespace }} has more than 50 HTTP 5xx requests in the last minute
description: Job {{ $labels.job }} on {{ $labels.namespace }} has more than
Copy link
Member

Choose a reason for hiding this comment

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

These changes have nothing to do with the purpose of the PR, have they?

If not, I would revert the changes

- alert: ThreescalePodCrashLooping
annotations:
message: Pod {{ $labels.namespace }}/{{ $labels.pod }} ({{ $labels.container }}) is restarting {{ printf "%.2f" $value }} times / 5 minutes.
message: Pod {{ $labels.namespace }}/{{ $labels.pod }} ({{ $labels.container
Copy link
Member

Choose a reason for hiding this comment

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

These changes have nothing to do with the purpose of the PR, have they?

If not, I would revert the changes

@eguzki
Copy link
Member

eguzki commented Oct 11, 2022

update Makefile's go-get-tool method to use go install instead of go get. Maybe rename the method to go-bin-install ??

@MStokluska
Copy link
Contributor Author

/test test-e2e

@MStokluska
Copy link
Contributor Author

E2E fails due to it being tested on ocp 4.6, which does not have policy/v1 but policy/v1beta1. I suggest bumping ocp testing clusters to at least 4.8

@MStokluska
Copy link
Contributor Author

/test test-e2e

@eguzki
Copy link
Member

eguzki commented Oct 11, 2022

I suggest to bump also kustomize and controller-gen,

kustomize v4.5.7
controller-gen v0.9.2

Aligned with the apicast operator #180

@MStokluska MStokluska force-pushed the THREESCALE-8535 branch 2 times, most recently from eb4a81f to c967486 Compare October 11, 2022 15:13
@MStokluska
Copy link
Contributor Author

Note: We need to document the upgrade path for this version.
This version of the 3scale operator will only work with Grafana v4, therefore in order for monitoring to be functional the Grafana Operator needs to be upgraded to v4.

eguzki
eguzki previously approved these changes Oct 24, 2022
@eguzki eguzki dismissed their stale review October 24, 2022 15:25

missing development doc

@eguzki
Copy link
Member

eguzki commented Oct 24, 2022

LGTM, before merging, update /doc/development.md accordingly

Copy link
Member

@eguzki eguzki left a comment

Choose a reason for hiding this comment

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

update /doc/development.md accordingly

@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit 28148d2 and detected 32 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 7
Style 25

View more on Code Climate.

@MStokluska MStokluska requested a review from eguzki October 25, 2022 09:42
@MStokluska MStokluska merged commit 81d3abc into 3scale:master Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants