-
Notifications
You must be signed in to change notification settings - Fork 34
CM-553: Rebase for operator v1.16.0 release with upstream cert-manager v1.16.4 #263
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
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: siddhibhor-56 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
9e148b6
to
725545a
Compare
images/ci/operand.Dockerfile
Outdated
@@ -1,4 +1,4 @@ | |||
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS builder | |||
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 AS builder | |||
|
|||
ARG RELEASE_BRANCH=release-1.15 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ARG RELEASE_BRANCH=release-1.15 | |
ARG RELEASE_BRANCH=release-1.16 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
/test e2e-operator |
e850cf9
to
e35df1c
Compare
/retest |
b29b1a6
to
57ed333
Compare
45edc05
to
e8b23bb
Compare
config/manager/manager.yaml
Outdated
value: quay.io/jetstack/cert-manager-webhook | ||
- name: RELATED_IMAGE_CERT_MANAGER_CA_INJECTOR | ||
value: quay.io/jetstack/cert-manager-cainjector:v1.15.5 | ||
value: quay.io/jetstack/cert-manager-cainjector | ||
- name: RELATED_IMAGE_CERT_MANAGER_CONTROLLER | ||
value: quay.io/jetstack/cert-manager-controller:v1.15.5 | ||
value: quay.io/jetstack/cert-manager-controller |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Due to openshift/release#64190, we would need :latest
appended to these. That should help the fix ImagePullBackOff
on the e2e.
e8b23bb
to
0123fd8
Compare
/retest |
798c9b1
to
0ba495d
Compare
0ba495d
to
fbc2357
Compare
fbc2357
to
14204f2
Compare
- replace github.com/cert-manager/cert-manager => github.com/openshift/jetstack-cert-manager v1.16.4
- make bundle - make update - make update-bindata
- replaces : cert-manager-operator.v1.15.1 - olm.skipRange: '>=1.15.1 <1.16.0'
…atorSpec,PatchOperatorStatus functions Changes
14204f2
to
6d7c421
Compare
/retest |
2a9685a
to
6d7c421
Compare
return nil | ||
} | ||
|
||
func (c OperatorClient) ApplyOperatorStatus(ctx context.Context, fieldManager string, applyConfiguration *applyoperatorv1.OperatorStatusApplyConfiguration) (err error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we're adding custom (non-auto generated) code for this ApplyOperatorStatus which is required required in the deployment_controller (and possibly other controllers) vendored from library-go (eg. traces in https://github.com/search?q=repo%3Aopenshift%2Flibrary-go%20ApplyOperatorStatus&type=code), we need to add unit tests here to ensure this is never broken.
For reference, I added a few unit test cases: f1863ac that would test such scenarios. Today, the operator only adds/updates into status.OperatorStatus.Conditions
and status.OperatorStatus.Generations
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fake client unfortunately does not support client.Apply funcs yet (ref: kubernetes-sigs/controller-runtime#2341) which is why the results of testing the implementation against it are not accurate. We can follow-up with Envtest based integration test instead of unit tests based on fake client, but that'll require some work to add a new CI job where integration tests are run separately.
@siddhibhor-56: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
/cc @Senthamilarasu-STA |
/label docs-approved |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please tidy up the commits to include meaningful chunks of changes in each that doesn't repeat/revert the same changes, update the ApplyOperatorStatus code so it doesn't panic and this should be good to go after.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this entire .idea
directory, also you can add .idea/
to the top-level .gitignore so it's automatically ignored from future git tracking.
@@ -18,12 +18,16 @@ spec: | |||
app.kubernetes.io/name: cainjector | |||
template: | |||
metadata: | |||
annotations: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Notes to my self,
Future TODO: test cainjector metrics, update our ServiceMonitor docs with these metric paths.
@@ -18,12 +18,16 @@ spec: | |||
app.kubernetes.io/name: webhook | |||
template: | |||
metadata: | |||
annotations: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Notes to my self,
Future TODO: test webhook metrics, update our ServiceMonitor docs with these metric paths.
@@ -4,7 +4,7 @@ This repository contains Cert Manager Operator designed for OpenShift. The opera | |||
|
|||
## The operator architecture and design assumptions | |||
|
|||
The Operator uses the [upstream deployment manifests](https://github.com/jetstack/cert-manager/releases/download/v1.15.5/cert-manager.yaml). It divides them into separate files and deploys using 3 controllers: | |||
The Operator uses the [upstream deployment manifests](https://github.com/jetstack/cert-manager/releases/download/v1.16.4/cert-manager.yaml). It divides them into separate files and deploys using 3 controllers: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we make this link generic and update it to https://github.com/cert-manager/cert-manager/releases
so we don't need to update this link during every rebase manually.
@@ -1,4 +1,4 @@ | |||
build_root_image: | |||
name: builder | |||
namespace: ocp | |||
tag: rhel-9-golang-1.22-openshift-4.17 | |||
tag: rhel-9-golang-1.23-openshift-4.19 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's update the CI base image bumps in a different commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have to additionally update starter.go
to with
operatorClient := &operatorclient.OperatorClient{
Informers: certManagerInformers,
Client: certManagerOperatorClient.OperatorV1alpha1(),
+ Clock: cc.Clock,
}
otherwise the OperatorClient's clock stays nil which'll cause panics.
/retitle CM-553: Rebase for operator v1.16.0 release with upstream cert-manager v1.16.4 |
@siddhibhor-56: This pull request references CM-553 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
/reopen |
@swghosh: Failed to re-open PR: state cannot be changed. The repository that submitted this pull request has been deleted. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/reopen |
@swghosh: Failed to re-open PR: state cannot be changed. The repository that submitted this pull request has been deleted. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Rebases downstream operator with upstream cert-manager v1.16.4 for next release [v1.16.4] :
-https://github.com/openshift/jetstack-cert-manager/releases/tag/v1.16.4