Skip to content

Commit 2263f15

Browse files
CM-553: Rebase for operator v1.16.0 release with upstream cert-manager v1.16.4 (#268)
* Bump dependencies with upstream [email protected] - replace github.com/cert-manager/cert-manager => github.com/openshift/jetstack-cert-manager v1.16.4 * updates bundle version to v1.16.4 for next z-stream & updates ripts - make bundle - make update - make update-bindata - changes in update-clientgen.sh * Changes to OLM bundle replaces and SkipRange for v1.16.4 - replaces : cert-manager-operator.v1.15.1 - olm.skipRange: '>=1.15.1 <1.16.0' * Updates CI base imagto 4.19 - updates ci-operator.yaml - dockerfile - images/ci * updates for tools.go and openapi.json * react to library-go bump, adds OperatorClient.ApplyOperatorStatus * Changes
1 parent 81a60fb commit 2263f15

File tree

3,146 files changed

+206359
-77090
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,146 files changed

+206359
-77090
lines changed

.ci-operator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
build_root_image:
22
name: builder
33
namespace: ocp
4-
tag: rhel-9-golang-1.22-openshift-4.17
4+
tag: rhel-9-golang-1.23-openshift-4.19

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM docker.io/golang:1.22 AS builder
1+
FROM docker.io/golang:1.23 AS builder
22
WORKDIR /go/src/github.com/openshift/cert-manager-operator
33
COPY . .
44
RUN make build --warn-undefined-variables

Makefile

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# To re-generate a bundle for another specific version without changing the standard setup, you can:
55
# - use the BUNDLE_VERSION as arg of the bundle target (e.g make bundle BUNDLE_VERSION=0.0.2)
66
# - use environment variables to overwrite this value (e.g export BUNDLE_VERSION=0.0.2)
7-
BUNDLE_VERSION ?= 1.15.1
8-
CERT_MANAGER_VERSION ?= "v1.15.5"
7+
BUNDLE_VERSION ?= 1.16.0
8+
CERT_MANAGER_VERSION ?= "v1.16.4"
99
ISTIO_CSR_VERSION ?= "v0.14.0"
1010

1111
# CHANNELS define the bundle channels used in the bundle.
@@ -128,7 +128,8 @@ manifests: ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefin
128128

129129
.PHONY: generate
130130
generate: ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
131-
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."
131+
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./api/..."
132+
hack/update-clientgen.sh
132133

133134
.PHONY: fmt
134135
fmt: ## Run go fmt against code.
@@ -149,13 +150,8 @@ update-manifests: $(HELM_BIN)
149150
hack/update-istio-csr-manifests.sh $(ISTIO_CSR_VERSION)
150151
.PHONY: update-manifests
151152

152-
update-scripts:
153-
hack/update-deepcopy.sh
154-
hack/update-clientgen.sh
155-
.PHONY: update-scripts
156-
157153
.PHONY: update
158-
update: update-scripts update-manifests update-bindata
154+
update: generate update-manifests update-bindata
159155

160156
.PHONY: update-with-container
161157
update-with-container:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This repository contains Cert Manager Operator designed for OpenShift. The opera
44

55
## The operator architecture and design assumptions
66

7-
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:
7+
The Operator uses the [upstream deployment manifests](https://github.com/cert-manager/cert-manager/releases). It divides them into separate files and deploys using 3 controllers:
88
- [cert_manager_cainjector_deployment.go](pkg/controller/deployment/cert_manager_cainjector_deployment.go)
99
- [cert_manager_controller_deployment.go](pkg/controller/deployment/cert_manager_controller_deployment.go)
1010
- [cert_manager_webhook_deployment.go](pkg/controller/deployment/cert_manager_webhook_deployment.go)

bindata/cert-manager-deployment/cainjector/cert-manager-cainjector-cr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
app.kubernetes.io/component: cainjector
77
app.kubernetes.io/instance: cert-manager
88
app.kubernetes.io/name: cainjector
9-
app.kubernetes.io/version: v1.15.5
9+
app.kubernetes.io/version: v1.16.4
1010
name: cert-manager-cainjector
1111
rules:
1212
- apiGroups:

bindata/cert-manager-deployment/cainjector/cert-manager-cainjector-crb.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
app.kubernetes.io/component: cainjector
77
app.kubernetes.io/instance: cert-manager
88
app.kubernetes.io/name: cainjector
9-
app.kubernetes.io/version: v1.15.5
9+
app.kubernetes.io/version: v1.16.4
1010
name: cert-manager-cainjector
1111
roleRef:
1212
apiGroup: rbac.authorization.k8s.io

bindata/cert-manager-deployment/cainjector/cert-manager-cainjector-deployment.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
app.kubernetes.io/component: cainjector
77
app.kubernetes.io/instance: cert-manager
88
app.kubernetes.io/name: cainjector
9-
app.kubernetes.io/version: v1.15.5
9+
app.kubernetes.io/version: v1.16.4
1010
name: cert-manager-cainjector
1111
namespace: cert-manager
1212
spec:
@@ -18,12 +18,16 @@ spec:
1818
app.kubernetes.io/name: cainjector
1919
template:
2020
metadata:
21+
annotations:
22+
prometheus.io/path: /metrics
23+
prometheus.io/port: "9402"
24+
prometheus.io/scrape: "true"
2125
labels:
2226
app: cainjector
2327
app.kubernetes.io/component: cainjector
2428
app.kubernetes.io/instance: cert-manager
2529
app.kubernetes.io/name: cainjector
26-
app.kubernetes.io/version: v1.15.5
30+
app.kubernetes.io/version: v1.16.4
2731
spec:
2832
containers:
2933
- args:
@@ -36,9 +40,13 @@ spec:
3640
valueFrom:
3741
fieldRef:
3842
fieldPath: metadata.namespace
39-
image: quay.io/jetstack/cert-manager-cainjector:v1.15.5
43+
image: quay.io/jetstack/cert-manager-cainjector:v1.16.4
4044
imagePullPolicy: IfNotPresent
4145
name: cert-manager-cainjector
46+
ports:
47+
- containerPort: 9402
48+
name: http-metrics
49+
protocol: TCP
4250
securityContext:
4351
allowPrivilegeEscalation: false
4452
capabilities:

bindata/cert-manager-deployment/cainjector/cert-manager-cainjector-leaderelection-rb.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
app.kubernetes.io/component: cainjector
77
app.kubernetes.io/instance: cert-manager
88
app.kubernetes.io/name: cainjector
9-
app.kubernetes.io/version: v1.15.5
9+
app.kubernetes.io/version: v1.16.4
1010
name: cert-manager-cainjector:leaderelection
1111
namespace: kube-system
1212
roleRef:

bindata/cert-manager-deployment/cainjector/cert-manager-cainjector-leaderelection-role.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
app.kubernetes.io/component: cainjector
77
app.kubernetes.io/instance: cert-manager
88
app.kubernetes.io/name: cainjector
9-
app.kubernetes.io/version: v1.15.5
9+
app.kubernetes.io/version: v1.16.4
1010
name: cert-manager-cainjector:leaderelection
1111
namespace: kube-system
1212
rules:

bindata/cert-manager-deployment/cainjector/cert-manager-cainjector-sa.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ metadata:
77
app.kubernetes.io/component: cainjector
88
app.kubernetes.io/instance: cert-manager
99
app.kubernetes.io/name: cainjector
10-
app.kubernetes.io/version: v1.15.5
10+
app.kubernetes.io/version: v1.16.4
1111
name: cert-manager-cainjector
1212
namespace: cert-manager

0 commit comments

Comments
 (0)