Skip to content

Commit

Permalink
Merge pull request #85 from wallrj/cert-manager-v1.10.0-fix-webhook-t…
Browse files Browse the repository at this point in the history
…ls-arguments

cert-manager v1.10.0 / OLM bundle v1.10.1 -  fix webhook tls arguments
  • Loading branch information
wallrj authored Nov 4, 2022
2 parents 2397828 + 6263943 commit fb8b785
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 12 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ SHELL := bash
.ONESHELL:

CERT_MANAGER_VERSION ?= 1.10.0
export BUNDLE_VERSION ?= ${CERT_MANAGER_VERSION}
# Decoupled the BUNDLE_VERSION from the CERT_MANAGER_VERSION so that I can do a
# patch release containing the fix for:
# https://github.com/cert-manager/cert-manager/issues/5551
export BUNDLE_VERSION ?= 1.10.1-rc1
BUNDLE_CHANNELS ?= $(strip candidate $(if $(subst ${CERT_MANAGER_VERSION},${empty},${BUNDLE_VERSION}),,stable))
STABLE_CHANNEL ?= stable
CATALOG_VERSION ?= $(shell git describe --tags --always --dirty)
Expand Down
3 changes: 1 addition & 2 deletions bundle/bundle.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
LABEL operators.operatorframework.io.bundle.package.v1=cert-manager
LABEL operators.operatorframework.io.bundle.channels.v1=candidate,stable
LABEL operators.operatorframework.io.bundle.channel.default.v1=stable
LABEL operators.operatorframework.io.bundle.channels.v1=candidate
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.25.0
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
LABEL operators.operatorframework.io.metrics.project_layout=unknown
Expand Down
13 changes: 7 additions & 6 deletions bundle/manifests/cert-manager.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ metadata:
capabilities: Full Lifecycle
categories: Security
containerImage: quay.io/jetstack/cert-manager-controller:v1.10.0
createdAt: '2022-11-02T14:25:05'
createdAt: '2022-11-03T15:27:18'
olm.skipRange: '>=1.10.0 <1.10.1-rc1'
operators.operatorframework.io/builder: operator-sdk-v1.25.0
operators.operatorframework.io/internal-objects: |-
[
Expand All @@ -83,7 +84,7 @@ metadata:
operatorframework.io/arch.arm64: supported
operatorframework.io/arch.ppc64le: supported
operatorframework.io/arch.s390x: supported
name: cert-manager.v1.10.0
name: cert-manager.v1.10.1-rc1
namespace: placeholder
spec:
apiservicedefinitions: {}
Expand Down Expand Up @@ -749,9 +750,9 @@ spec:
- --secure-port=10250
- --dynamic-serving-ca-secret-namespace=$(POD_NAMESPACE)
- --dynamic-serving-ca-secret-name=cert-manager-webhook-ca
- --dynamic-serving-dns-names=cert-manager-webhook
- --dynamic-serving-dns-names=cert-manager-webhook.$(POD_NAMESPACE)
- --dynamic-serving-dns-names=cert-manager-webhook.$(POD_NAMESPACE).svc
- --dynamic-serving-dns-names=cert-manager-webhook-service.$(POD_NAMESPACE).svc
- --tls-cert-file=/apiserver.local.config/certificates/apiserver.crt
- --tls-private-key-file=/apiserver.local.config/certificates/apiserver.key
env:
- name: POD_NAMESPACE
valueFrom:
Expand Down Expand Up @@ -885,7 +886,7 @@ spec:
provider:
name: The cert-manager maintainers
url: https://cert-manager.io/
version: 1.10.0
version: 1.10.1-rc1
webhookdefinitions:
- admissionReviewVersions:
- v1
Expand Down
3 changes: 1 addition & 2 deletions bundle/metadata/annotations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ annotations:
operators.operatorframework.io.bundle.manifests.v1: manifests/
operators.operatorframework.io.bundle.metadata.v1: metadata/
operators.operatorframework.io.bundle.package.v1: cert-manager
operators.operatorframework.io.bundle.channels.v1: candidate,stable
operators.operatorframework.io.bundle.channel.default.v1: stable
operators.operatorframework.io.bundle.channels.v1: candidate
operators.operatorframework.io.metrics.builder: operator-sdk-v1.25.0
operators.operatorframework.io.metrics.mediatype.v1: metrics+v1
operators.operatorframework.io.metrics.project_layout: unknown
Expand Down
5 changes: 4 additions & 1 deletion hack/fixup-csv
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def main():
if deployment["name"] != "cert-manager-webhook":
continue
for container in deployment["spec"]["template"]["spec"]["containers"]:
if container["name"] != "cert-manager":
if container["name"] != "cert-manager-webhook":
continue
# Filter out the arguments we're about to change
args = [
Expand All @@ -160,6 +160,9 @@ def main():
"--tls-private-key-file=/apiserver.local.config/certificates/apiserver.key",
])
container["args"] = args
break
else:
raise Exception("webhook container not found")

yaml.dump(doc, sys.stdout)

Expand Down

0 comments on commit fb8b785

Please sign in to comment.