pulsar-helm-chart icon indicating copy to clipboard operation
pulsar-helm-chart copied to clipboard

feat(certs): use actual v1 spec for certs

Open smazurov opened this issue 3 years ago • 4 comments
trafficstars

Motivation

In #204, api version of the cert resources was updated to v1. This was insufficient because v1 has different spec from v1alpha1

This MR finishes the work that #204 and @lhotari started.

Modifications

Changed the spec of certs to match v1 cert manager spec.

Verifying this change

  • [ ] Make sure that the change passes the CI checks.

smazurov avatar Feb 17 '22 17:02 smazurov

@smazurov Thanks for the contribution. I created a PR to first revert #204 changes so that we have time to prepare a better solution for migrating to use cert-manager.io/v1 api version in a backwards compatible way.

It seems that the backwards compatible migration might require more changes. For new installations ({{- if .Release.IsInstall }}) it should be fine to use the cert-manager.io/v1 api version. For existing installations, I'm not exactly sure to handle the backwards compatibility. cert-manager documentation about the deprecated api versions: https://cert-manager.io/docs/installation/upgrading/remove-deprecated-apis/#upgrading-existing-cert-manager-resources . Any thoughts about this? /cc @michaeljmarshall

lhotari avatar Feb 28 '22 15:02 lhotari

assuming kube is aware of both apis, upgrading is straightfoward. So the change is fine as long as the new spec for v1 is actually followed. Once cert-manager is upgraded to v1.6+, they dropped support for alpha versions, so it won't let you upgrade.

smazurov avatar Feb 28 '22 19:02 smazurov

Is the PR still in progress? Any estimation of when it will be released? I have been facing issues with TLS and if I'm going to use the old version v1.1.0 then it's not working with the new pulsar 2.9.0. Any idea which config will work with the newer pulsar version?

youg9203 avatar May 05 '22 07:05 youg9203

+1 We were able to successfully upgrade to v2.9 after making these changes.

MBcom avatar Jul 20 '22 13:07 MBcom

I am going to merge this now, and then I'll test it in https://github.com/apache/pulsar-helm-chart/pull/306

michaeljmarshall avatar Oct 18 '22 20:10 michaeljmarshall

Thank you for your contribution @smazurov!

michaeljmarshall avatar Oct 18 '22 20:10 michaeljmarshall