Skip to content

Conversation

kvaps
Copy link
Member

@kvaps kvaps commented Jul 16, 2025

Reimplement kubernetes-retired/container-object-storage-interface-provisioner-sidecar#139

This PR addresses two cases:

  • Controller Restarts:
    When the controller restarts, it does not handle deletions for removed objects.
    Specifically, when an object with a deletion timestamp is passed into the Add() method, the deletion process was not handled correctly.

  • Recreation of Objects:
    The recreation of objects is not functioning as expected. For example, when an object is created, deleted, and then created again.
    In this scenario, the object may enter the Update method, where the creation process was not being handled properly.

Signed-off-by: Andrei Kvapil [email protected]

This PR addresses two cases:

- Controller Restarts:
  When the controller restarts, it does not handle deletions for removed objects.
  Specifically, when an object with a deletion timestamp is passed into the Add() method, the deletion process was not handled correctly.

- Recreation of Objects:
  The recreation of objects is not functioning as expected. For example, when an object is created, deleted, and then created again.
  In this scenario, the object may enter the Update method, where the creation process was not being handled properly.

Signed-off-by: Andrei Kvapil <[email protected]>
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 16, 2025
Copy link

netlify bot commented Jul 16, 2025

Deploy Preview for container-object-storage-interface ready!

Name Link
🔨 Latest commit 1f832fc
🔍 Latest deploy log https://app.netlify.com/projects/container-object-storage-interface/deploys/6877ef8421dd6b0008562314
😎 Deploy Preview https://deploy-preview-89--container-object-storage-interface.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jul 16, 2025
@kvaps
Copy link
Member Author

kvaps commented Jul 16, 2025

/assign @shanduur

kvaps added a commit to cozystack/cozystack that referenced this pull request Jul 17, 2025
Signed-off-by: Andrei Kvapil <[email protected]>

<!-- Thank you for making a contribution! Here are some tips for you:
- Start the PR title with the [label] of Cozystack component:
- For system components: [platform], [system], [linstor], [cilium],
[kube-ovn], [dashboard], [cluster-api], etc.
- For managed apps: [apps], [tenant], [kubernetes], [postgres],
[virtual-machine] etc.
- For development and maintenance: [tests], [ci], [docs], [maintenance].
- If it's a work in progress, consider creating this PR as a draft.
- Don't hesistate to ask for opinion and review in the community chats,
even if it's still a draft.
- Add the label `backport` if it's a bugfix that needs to be backported
to a previous version.
-->

## What this PR does

This PR updates COSI image and also includes these fixes:
-
kubernetes-sigs/container-object-storage-interface#89
-
kubernetes-sigs/container-object-storage-interface#90

### Release note

<!--  Write a release note:
- Explain what has changed internally and for users.
- Start with the same [label] as in the PR title
- Follow the guidelines at
https://github.com/kubernetes/community/blob/master/contributors/guide/release-notes.md.
-->

```release-note
[objectstorage] Update COSI controller and sidecar
```

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Introduced automated image building and version injection for the
object storage controller, including support for both controller and
sidecar images.
* Added comprehensive Kubernetes CustomResourceDefinitions (CRDs) for
object storage resources, including Bucket, BucketClaim, BucketClass,
BucketAccess, and BucketAccessClass.
* Added a dedicated namespace and updated resource naming conventions
for improved clarity and consistency.

* **Bug Fixes**
* Improved and unified deletion handling for object storage resources,
ensuring proper cleanup and event recording.

* **Chores**
* Updated configuration and deployment manifests to use new image
locations and naming conventions.
* Added a configuration file for specifying the controller image used in
deployments.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@shanduur
Copy link
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Jul 18, 2025
@shanduur
Copy link
Member

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 21, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kvaps, shanduur

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 21, 2025
@k8s-ci-robot k8s-ci-robot merged commit c952f23 into kubernetes-sigs:main Jul 21, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants