1
0
mirror of https://github.com/rancher/steve.git synced 2025-04-28 03:10:32 +00:00
Commit Graph

548 Commits

Author SHA1 Message Date
Tom Lebreux
c36f949dc6
Fix "Unable to cancel request for *client.addQuery" warnings (#589)
Co-authored-by: Alejandro Ruiz <alejandro.ruiz@suse.com>
2025-04-04 12:45:12 -04:00
Vatsal Parekh
54d4bc91ec
Add tagged dependencies (#507)
Signed-off-by: Vatsal Parekh <vatsalparekh@outlook.com>
2025-03-04 19:56:26 +05:30
renovate-rancher[bot]
17caed84fe
chore(deps): update module modernc.org/sqlite to v1.36.0 (#529)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-02-27 17:11:11 -05:00
renovate-rancher[bot]
7678176728
chore(deps): update module modernc.org/sqlite to v1.35.0 (#503)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-02-23 11:01:27 -08:00
renovate-rancher[bot]
872ac50b11
chore(deps): update module golang.org/x/sync to v0.11.0 (#502)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-02-23 11:01:17 -08:00
renovate-rancher[bot]
4d0abe94cf
chore(deps): update module github.com/rancher/saml to v0.4.14 (#501)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-02-23 11:00:15 -08:00
renovate-rancher[bot]
9aa70eada0
chore(deps): update module github.com/urfave/cli to v1.22.16 (#351)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-02-14 12:30:55 -05:00
Chad Roberts
504819d943
[release/v0.4] Add schema links and resource methods for resource verb patch (#450) (#498)
* Show patch link on the API resource when patch permission is present and add patch ResourceMethod to the schema.
2025-02-14 12:19:15 -05:00
renovate-rancher[bot]
aa220d13a6
chore(deps): update module modernc.org/sqlite to v1.34.5 (#479)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-02-13 10:06:08 -08:00
renovate-rancher[bot]
c6f367e3f3
chore(deps): update module github.com/gorilla/websocket to v1.5.3 (#349)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-02-12 11:59:59 -08:00
renovate-rancher[bot]
95a8d1e469
chore(deps): update module github.com/rancher/wrangler/v3 to v3.1.0 (#362)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-02-12 11:59:11 -08:00
renovate-rancher[bot]
2b04f2c2c1
chore(deps): update module github.com/adrg/xdg to v0.5.3 (#348)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-02-12 09:19:52 -08:00
renovate-rancher[bot]
aa63c7dc4a
chore(deps): update module github.com/rancher/dynamiclistener to v0.6.1 (#350)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-02-12 09:19:19 -08:00
renovate-rancher[bot]
d9048777fd
chore(deps): update module github.com/stretchr/testify to v1.10.0 (#363)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-02-12 09:18:51 -08:00
renovate-rancher[bot]
706b136365
chore(deps): update module github.com/google/gnostic-models to v0.6.9 (#373)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-02-12 09:16:58 -08:00
renovate-rancher[bot]
c26fbc1b96
chore(deps): update module go.uber.org/mock to v0.5.0 (#364)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-02-11 13:49:15 -08:00
renovate-rancher[bot]
f8bb344ae0
chore(deps): update actions/checkout action to v4.2.2 (#355)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-02-11 13:04:18 -08:00
renovate-rancher[bot]
191fa098fe
chore(deps): update actions/setup-go action to v5.3.0 (#356)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-02-11 13:03:56 -08:00
renovate-rancher[bot]
37815dceb4
chore(deps): update golangci/golangci-lint-action action to v6.3.2 (#357)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-02-11 13:03:35 -08:00
renovate-rancher[bot]
95b6907de8
chore(deps): update dependency go to v1.23.6 (#347)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-02-11 13:02:55 -08:00
Tom Lebreux
d030e42148
[v0.4] Move lasso SQL cache in Steve (#473)
* Copy pkg/cache/sql from lasso to pkg/sqlcache

* Rename import from github.com/rancher/lasso/pkg/cache/sql to github.com/rancher/steve/pkg/sqlcache

* go mod tidy

* Fix lint errors

* Remove lasso SQL cache mentions

* Fix more CI lint errors

* fix goimports

Signed-off-by: Silvio Moioli <silvio@moioli.net>

* Fix imports

* Fix more linting errors

---------

Signed-off-by: Silvio Moioli <silvio@moioli.net>
Co-authored-by: Silvio Moioli <silvio@moioli.net>
2025-02-04 12:42:13 -05:00
Vatsal Parekh
41674fa0cf
[release/v0.4] Upgrade go version to 1.23 (#448)
* Upgrade golangci-lint to 1.63.4

Signed-off-by: Vatsal Parekh <vatsalparekh@outlook.com>

* Upgrade go version to 1.23

Signed-off-by: Vatsal Parekh <vatsalparekh@outlook.com>

---------

Signed-off-by: Vatsal Parekh <vatsalparekh@outlook.com>
2025-01-29 09:05:23 -05:00
Silvio Moioli
c48ac64c4d
[v2.10] SQL cache backports (#435)
Co-authored-by: Tom Lebreux <tom.lebreux@suse.com>
2025-01-11 12:26:12 +01:00
Josh Meranda
a672f2f12a
add release workflow (#324)
Co-authored-by: joshmeranda <joshua.meranda@gmail.com>
2024-11-15 12:21:59 -05:00
nflynt
2175e090fe
Refactor ID based partitioning, add unit tests (#309)
* Refactor ID based partitioning, add unit tests

This resolves an issue where the requested namespace filter was not
always honored.

* Correct naming issues to appease the linter
2024-10-29 09:27:12 -04:00
Diogo Souza
b2f2bab3c4
Helm data formatter (#305)
* changing secret and configmap formatters to return decoded helm data if includeHelmData query parameter is present

* adding tests for gzip magic header
2024-10-28 15:55:36 -05:00
Alejandro Ruiz
fd9a516ecb
refactor(accesscontrol): deterministic cache key hashing (#292)
* refactor(accesscontrol): make addAccess directly accept PolicyRules

* refactor(accesscontrol): add new types for encapsulating all needed data

* refactor(accesscontrol): make getRules return resource version

* refactor(accesscontrol): add new getRoleRefs to policyRuleIndex

* refactor(accesscontrol): make accessStore use the new types and method

* cleanup(accesscontrol): remove unused code

* cleanup(accesscontrol): adapt tests

* cleanup(accesscontrol): add some comments and remove unused function

* refactor(accesscontrol): rework indexer to make it more readable and testable

* Fix typo

* test: consistent use of t.Error

* test: refactor policyRulesMock to just use a map

* misc: rename toUserInfo function

* refactor: consistent sort by UID
2024-10-28 09:35:59 +01:00
Eric Promislow
06c2eb50d1
Index more sqlite cache fields (#271)
* Add more fields to index when sql-caching is on.

Misc changes:
- Use the builtin Event class, not events.k8s.io (by looking at the dashboard client code)
- Specify full path to the management.cattle.io fields.
- Map `Event.type` to `Event._type` for indexing.

Use a compound transform-func to first check for a "signal",
and then to run all the relevant transformers until either
one fails or the list is exhausted.

- Includes moving the fakeSummaryCache type into a common area.

Use a simpler way of running transforms.

* Inline the function to get the gvk key.

* Create a '--sql-cache' flag to turn on caching for the steve CLI.

* Improve error-handling in object transformer.

* Drop the 'GetTransform' function.

* Inline the code that transforms a payload into a k8s-unstructured object.
2024-10-18 11:06:29 -07:00
Michael Bolot
f6c6ca839c
Re-adding formatter when SQL cache is enabled (#300)
Previously, the formatter for state/relationships was disabled when the
sql cache was enabled, since a transform function was adding those
values before they were added to the cache. However, the get/watch calls
currently don't use the cache, causing the state/relationships to be
missing.
2024-10-18 12:15:42 -05:00
Tom Lebreux
8fc2dd4f74
Fix ExtensionAPIServer interface (#298)
* Fix comments
* Fix ExtensionAPIServer interface
2024-10-15 10:00:27 -04:00
Tom Lebreux
1f21e5e515
Implement /ext in Steve for Imperative API (#287)
This implements the Imperative API that is served at /ext with Steve. The imperative API is compatible with Kubernetes' API server and will be used as an extension API server.
2024-10-11 15:19:27 -04:00
Eric Promislow
57a25ffa82
Bump to k8s 1.31 (#294) 2024-10-10 13:14:17 -07:00
Eric Promislow
6a11ffb660
Migrate the mocking library to uber's (#291)
* Migrate from golang/mock to uber/mock.

* Update go.mod

* Continue migration to uber/mock.

* Tweaks from running the go.uber.mock's mockgen.
2024-10-10 10:28:25 -07:00
Alejandro Ruiz
484ce1c9e9
refactor(accesscontrol): use interface for AccessStore cache (#290) 2024-10-09 10:21:29 +02:00
Alejandro Ruiz
5c1a56204d
Add tests for concurrent AccessControl store usage (#286)
* refactor(accesscontrol): use interface for AccessStore cache

* refactor(accesscontrol): early return when cache is disabled

* test(accesscontrol): add failing unit test

* test(accesscontrol): skip failing test
2024-10-08 11:18:44 -04:00
Felipe Gehrke
99e479ba0f
Adding Group, Version, Kind in Update proxy_store.go (#270)
* adding gvk completion to update method in proxy_store
2024-09-13 15:19:58 -03:00
Silvio Moioli
f02f3f9411
README: SQLite specify encryption limitations (#269)
Co-authored-by: Paulo Gomes <paulo.gomes@suse.com>
2024-09-10 09:38:42 +02:00
Tom Lebreux
28630459d0
Bump Go to 1.22.7 (#274) 2024-09-09 10:54:06 -04:00
Felipe Gehrke
e930ae3691
Added Namespace check to proxy_store.go Create (#272)
* added namespace check to proxy_store create

* added namespaced resources checks and create tests

* Update pkg/stores/proxy/proxy_store.go

* changed error message and added missing name only test

* updated sql/proxy_store

* changed return to use apierror.NewAPIError

---------

Co-authored-by: Felipe C. Gehrke <felipe@localhost.localdomain>
Co-authored-by: Tom Lebreux <tom.lebreux@suse.com>
2024-09-06 17:25:32 -03:00
Eric Promislow
eb6026e93c
Merge pull request #273 from ericpromislow/46956-bump-dynamic-listener
Display error output from dynamiclistener.Server when in debug mode.
2024-09-05 15:31:08 -07:00
Eric Promislow
69906c52af Display error output from dynamiclistener.Server. 2024-09-05 12:00:54 -07:00
Michael Bolot
ea6c83b279
Merge pull request #264 from MbolotSuse/virtual-filter
Virtual Resource filters
2024-08-30 07:58:33 -05:00
Michael Bolot
1149920168 Adding virtual fields
Adds logic which adds virtual fields resources. This allows these fields
to be sorted/filtered on when the SQL cache is enabled. Id and
metadata.state.name were added as the first two fields.
2024-08-28 12:17:53 -05:00
Alejandro Ruiz
32c30149a6
refactor(accesscontrol): add unit tests for CacheKey (#245)
This is a follow up to 435e220 with a small refactor to make the function easier to test, and adding unit tests for CacheKey.
2024-08-28 10:06:21 +02:00
renovate-rancher[bot]
01429f8528
chore(deps): update github.com/rancher/norman digest to 60ccfab (#266)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2024-08-27 10:17:08 -04:00
Silvio Moioli
5ec7c773df
README: document API differences when SQLite caching is enabled (#262)
* README: make common header for list parameters
* README: document differences when SQLite caching is enabled
* README: clarify support of sorting with the SQL cache
* README: mention additional printer columns

Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-08-20 13:28:40 +02:00
Eric Promislow
6d0d007ad5
Merge pull request #228 from rancher/renovate/registry.suse.com-bci-bci-micro-15.x
chore(deps): update registry.suse.com/bci/bci-micro docker tag to v15.6
2024-08-16 16:32:15 -07:00
Eric Promislow
d604ed6d31
Merge pull request #242 from rancher/renovate/github.com-adrg-xdg-0.x
chore(deps): update module github.com/adrg/xdg to v0.5.0
2024-08-16 15:25:43 -07:00
Eric Promislow
d5ba002edf
Merge pull request #222 from rancher/renovate/actions-setup-go-5.x
chore(deps): update actions/setup-go action to v5.0.2
2024-08-16 15:25:18 -07:00
Eric Promislow
629030e292
Merge pull request #259 from rancher/renovate/github.com-urfave-cli-v2-2.x
chore(deps): update module github.com/urfave/cli/v2 to v2.27.4
2024-08-16 15:24:33 -07:00