operator-framework / operator-lifecycle-manager

A management framework for extending Kubernetes with Operators
https://olm.operatorframework.io
Apache License 2.0
1.7k stars 542 forks source link

How to upgrade the operator smoothly without deleting and rebuilding? #2750

Open AllenZMC opened 2 years ago

AllenZMC commented 2 years ago

Question

How to upgrade the operator smoothly without deleting and rebuilding?

Environment

needleshaped commented 2 years ago

Duplicate of #2664/#2694/#2695

AllenZMC commented 2 years ago

When I upgrade opertaor, assuming that the new csv version is 0.0.2, and its replace field value is 0.0.1, will olm delete the csv version 0.0.1 at this time?

exdx commented 2 years ago

Hi @AllenZMC

The v0.0.1 CSV is not deleted until the new CSV v0.0.2 is in the succeeded state. There should be a doc that has some additional information on the CSV update process, we should be able to provide that here.

AllenZMC commented 2 years ago

The v0.0.1 CSV is not deleted until the new CSV v0.0.2 is in the succeeded state.

@exdx Thanks. So similar to the grayscale release, the traffic will not be interrupted?

AllenZMC commented 2 years ago

There should be a doc that has some additional information on the CSV update process, we should be able to provide that here.

Looking forward to seeing it.