Read-only mirror of https://github.com/swisscom/leaselocker — Swisscom. Issues & pull requests at the source.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
dependabot[bot] c9fab1e763
Bump the go-dependencies group across 1 directory with 6 updates (#72)
Bumps the go-dependencies group with 6 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [k8s.io/api](https://github.com/kubernetes/api) | `0.37.2` | `0.37.3` |
| [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) | `0.37.2` | `0.37.3` |
| [k8s.io/client-go](https://github.com/kubernetes/client-go) | `0.37.2` | `0.37.3` |
| [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) | `0.25.2` | `0.25.3` |
| [github.com/go-openapi/jsonpointer](https://github.com/go-openapi/jsonpointer) | `1.0.2` | `1.0.3` |
| [golang.org/x/net](https://github.com/golang/net) | `0.62.0` | `0.63.0` |



Updates `k8s.io/api` from 0.37.2 to 0.37.3
- [Commits](https://github.com/kubernetes/api/compare/v0.37.2...v0.37.3)

Updates `k8s.io/apimachinery` from 0.37.2 to 0.37.3
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.37.2...v0.37.3)

Updates `k8s.io/client-go` from 0.37.2 to 0.37.3
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.37.2...v0.37.3)

Updates `sigs.k8s.io/controller-runtime` from 0.25.2 to 0.25.3
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.25.2...v0.25.3)

Updates `github.com/go-openapi/jsonpointer` from 1.0.2 to 1.0.3
- [Release notes](https://github.com/go-openapi/jsonpointer/releases)
- [Commits](https://github.com/go-openapi/jsonpointer/compare/v1.0.2...v1.0.3)

Updates `golang.org/x/net` from 0.62.0 to 0.63.0
- [Commits](https://github.com/golang/net/compare/v0.62.0...v0.63.0)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-version: 0.37.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: k8s.io/apimachinery
  dependency-version: 0.37.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: k8s.io/client-go
  dependency-version: 0.37.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-version: 0.25.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: github.com/go-openapi/jsonpointer
  dependency-version: 1.0.3
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: golang.org/x/net
  dependency-version: 0.63.0
  dependency-type: indirect
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-30 16:28:59 +01:00
.github Bump actions/setup-go from 7.0.0 to 7.1.0 in the github-actions group (#70) 2026-11-30 16:27:59 +01:00
.gitignore initial commit 2024-08-02 14:30:43 +02:00
CODE_OF_CONDUCT.md add contributing file (#2) 2024-11-25 10:33:17 +01:00
CONTRIBUTING.md add contributing file (#2) 2024-11-25 10:33:17 +01:00
go.mod Bump the go-dependencies group across 1 directory with 6 updates (#72) 2026-11-30 16:28:59 +01:00
go.sum Bump the go-dependencies group across 1 directory with 6 updates (#72) 2026-11-30 16:28:59 +01:00
interface.go initial commit 2024-08-02 14:30:43 +02:00
leaselock.go Bump the go-dependencies group with 6 updates (#37) 2026-04-27 10:11:41 +02:00
leaselock_mock_interfaces_test.go Add unit tests (#8) 2025-10-14 16:47:52 +02:00
leaselock_test.go Add unit tests (#8) 2025-10-14 16:47:52 +02:00
leaselocker.go Adds UnlockWithRetry() (#7) 2025-08-18 17:57:05 +02:00
leaselocker_mock_interfaces_test.go Add unit tests (#8) 2025-10-14 16:47:52 +02:00
leaselocker_test.go Add unit tests (#8) 2025-10-14 16:47:52 +02:00
LICENSE initial commit 2024-08-02 14:30:43 +02:00
README.md Add code of conduct (#1) 2024-10-18 17:17:18 +08:00

leaselocker

Disclaimer: This project is currently in MVP status and may have limited functionality or stability. Use with caution.

Description

This package provides a solution to avoid race conditions in Kubernetes when multiple processes are updating the same resource. It offers a set of utility functions and classes that handle synchronization and locking mechanisms, ensuring that only one process can modify the resource at a time. By using this package, developers can prevent conflicts and maintain data integrity in distributed systems running on Kubernetes.

License

This package is licensed under the Apache License, Version 2.0.