kyma-project / docker-registry

Apache License 2.0
2 stars 7 forks source link

Operator should cleanup pvc when switching storage config to sth different from `filesystem` #64

Closed kwiatekus closed 4 weeks ago

kwiatekus commented 1 month ago

Description

When I configure s3 storage or azure as a backend storage for dockerregistry, the orphaned pvc storage resource related to the storage:filesystem configuration should be cleaned up.

Reasons

Operator should manage the lifecycle of each of k8s resources it manages. In case storage is changed from filesystem to s3, azure or other that uses a remote storage, the cluster local storage resources should be cleaned up

Related

25

kwiatekus commented 4 weeks ago

Now works as expected. Thank you. I tested manually.