1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-16 23:39:16 +00:00
Commit Graph

498 Commits

Author SHA1 Message Date
Alejandro Ruiz
f6d47eb908 Fix "Unable to cancel request for *client.addQuery" warnings (#512) 2025-04-07 13:23:18 +01:00
Kevin McDermott
75feceeb86 Add support for configuring the QPS and Burst from the environment. 2025-04-07 12:04:31 +01:00
Eric Promislow
c4ebbe629f [v2.9] Backport PR 271: Index more sqlite cache fields. (#315)
* [v2.9] Backport PR 271: Index more sqlite cache fields.

* go mod tidy

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

---------

Signed-off-by: Silvio Moioli <silvio@moioli.net>
Co-authored-by: Silvio Moioli <silvio@moioli.net>
2024-10-31 10:48:05 -07:00
Michael Bolot
ddd2e373b7 Re-adding formatter when SQL cache is enabled (#300) (#312)
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-31 12:41:38 -05:00
nflynt
6e30359c65 [v2.9] Refactor ID based partitioning, add unit tests (#310)
* 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:17 -04:00
Diogo Souza
7dafe0c662 2.9 helm data formatter (#306)
* changing secret and configmap formatters to return decoded helm data if includeHelmData query parameter is present

* adding tests for gzip magic header

* update gomod
2024-10-28 15:55:40 -05:00
Silvio Moioli
dd27bd0c8d [v2.9] Virtual Resource filters (#288)
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.

Co-authored-by: Michael Bolot <michael.bolot@suse.com>
2024-10-02 14:59:54 +02:00
Felipe Gehrke
aacb5b82de [Release v2.9] Adding Group, Version, Kind in Update proxy_store.go (#282)
* added changes from 42823 into v2.9

* backporting partition store change
2024-09-26 18:02:12 -03:00
Felipe Gehrke
79304d93b4 adding changes from issue 42788 into release v2.9 (#281) 2024-09-11 16:01:53 -03:00
Tom Lebreux
096afba4f7 Bump Go to 1.22.7 (#275) 2024-09-10 09:51:05 -04:00
Michael Bolot
61be17faa3 Merge pull request #254 from MbolotSuse/schema-less-2.9
[2.9] Handle Schema-less CRDs
2024-08-06 08:39:20 -05:00
Michael Bolot
1464a203c3 Adding changes from code review 2024-08-05 14:47:51 -05:00
Eric Promislow
643002b00f Add unit tests for schemaless CRDs 2024-08-05 14:47:45 -05:00
Eric Promislow
244a1993e0 Handle schema-less CRDs 2024-08-05 14:47:38 -05:00
Alejandro Ruiz
435e220795 fix(accesscontrol): CacheKey could not be stable 2024-07-31 10:24:23 +02:00
Tom Lebreux
4787160614 Bump wrangler to v3.0.0 (#239)
and other dependencies that also bumps wrangler
2024-07-09 09:08:09 -04:00
Silvio Moioli
0841e03c57 sql: bugfix: return total resource count correctly (#236)
* sql: drop dead code

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

* sql: bugfix: return total resource count correctly

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

* adapt tests

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

* adapt mocks

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

* TEMP: remove this when bumping lasso to include https://github.com/rancher/lasso/pull/84

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

* Use latest lasso instead of fork

---------

Signed-off-by: Silvio Moioli <silvio@moioli.net>
Co-authored-by: Tom Lebreux <tom.lebreux@suse.com>
2024-07-05 16:17:16 -04:00
Silvio Moioli
88fd70abbd sql: drop dead code
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-07-05 16:08:56 +02:00
Silvio Moioli
cb311a8ce5 sql: remove spurious log line
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-07-05 10:19:07 +02:00
Michael Bolot
22a06dd14f Merge pull request #230 from MbolotSuse/apigroups-fix
Adding APIGroups back to the schema
2024-07-03 08:25:54 -05:00
Michael Bolot
e7a76d14f0 Adding APIGroups back to the schema
Prior schema calculations started with openapiv2 models which included a
model for APIGroups. However, new schema calculations use
ServerGroupsAndResources first, which omitted these values. This
re-adds this type using a static schema.
2024-07-02 13:27:04 -05:00
Tom Lebreux
9ac9be9c0e Fix missing fields in schema definition endpoint (#215) 2024-06-17 10:52:19 -04:00
Vardhaman Surana
d0f58fc918 Merge pull request #224 from vardhaman22/k8s-1.30
k8s 1.30 dependencies update
2024-06-11 23:24:28 +05:30
vardhaman22
4f4dae49af updated golangci lint version to v1.59.0 2024-06-05 23:09:37 +05:30
vardhaman22
8f3d2e8f21 go generate and go mod tidy 2024-06-05 23:08:15 +05:30
vardhaman22
c9babc682d updated apiserver and dynamiclistener 2024-06-05 23:03:40 +05:30
vardhaman22
dae842ea98 updated wrangler from v2 to v3
also updated k8s dependencies to v0.30.1
2024-06-05 22:53:08 +05:30
Silvio Moioli
7a84620e8b SQLite backed cache (#223)
This uses SQLite-backed informers provided by Lasso with https://github.com/rancher/lasso/pull/65 to implement Steve API (/v1/) functionality.

This new functionality is available behind a feature flag to be specified at Steve startup

See https://confluence.suse.com/pages/viewpage.action?pageId=1359086083 

Co-authored-by: Ricardo Weir <ricardo.weir@suse.com>
Co-authored-by: Michael Bolot <michael.bolot@suse.com>
Co-authored-by: Silvio Moioli <silvio@moioli.net>
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-06-05 16:17:12 +02:00
nflynt
4cf4e6b385 Merge pull request #218 from nflynt/drone2gha
Migrate from Drone to GHA
2024-05-28 14:29:26 -04:00
nflynt
3e6d25417d Pin golangci by commit ID rather than version tag
Co-authored-by: Tom Lebreux <me@tomlebreux.com>
2024-05-28 10:13:21 -04:00
Nicholas Flynt
f3d2a72abd Remove drone integration
Note: this also removes the FOSSA step! Be sure we create an issue
to re-add this at a later date, if we decide to do that.
2024-05-24 13:04:38 -04:00
Nicholas Flynt
9137045d72 Take a stab at getting golangci-lint working 2024-05-24 12:50:53 -04:00
Nicholas Flynt
4bd1e2e7d8 First stab at a GHA for build/test 2024-05-24 12:35:07 -04:00
Michael Bolot
ce206c942e Merge pull request #202 from MbolotSuse/schema-fix-1
Fixing schema definitions bugs
2024-05-15 09:04:42 -05:00
Michael Bolot
c6b887c1cb Fixing schema definitions bugs
Fixes two bugs with the schema definitions:
- Adds resources that are a part of the baseSchema (but aren't k8s resources).
- Adds logic to handle resources which aren't in a prefered version, but
  are still in some version.
2024-05-15 08:43:35 -05:00
Kinara Shah
a9bf8c7e9c Merge pull request #207 from krunalhinguu/rancher-1.29
[v1.29] Bump dependencies to support k8s 1.29
2024-05-10 10:53:29 -07:00
Eric Promislow
7a9a1c07c4 Revert "Bump k8s dependencies from version 0.28.6 to 0.29.3"
This reverts commit 0066726cbe.
2024-05-08 14:08:15 -07:00
Eric Promislow
2c4b19ecfe Merge pull request #206 from ericpromislow/45350-support-k8s-1.29
Bumping version 0.28.6 to 0.29.3 for k8s dependencies.
2024-05-08 13:46:05 -07:00
Krunal Hingu
030241985d bump versions for k8s 1.29.3 2024-05-04 06:49:19 +05:30
Eric Promislow
0066726cbe Bump k8s dependencies from version 0.28.6 to 0.29.3 2024-05-03 11:46:32 -07:00
Eric Promislow
43fc03f64b Merge pull request #200 from ericpromislow/fix-steve-readme-CollectionFormatter-duplication
Fix the sample formatter code.
2024-04-24 15:46:14 -07:00
Eric Promislow
18ff2ebb7a Fix the sample formatter code. 2024-04-22 10:26:00 -07:00
Tom Lebreux
b3bd0b85d2 Bump various dependencies to downgrade prometheus to v1.16.0 (#196)
Fixes incompatiblity with k8s 1.28
2024-04-19 10:43:29 -04:00
Ricardo Weir
d42a5bc545 Skip key generation if cache disabled (#170) 2024-04-19 09:43:15 -04:00
renovate-rancher[bot]
dc4a394d55 chore(deps): update module github.com/rancher/dynamiclistener to v0.5.0-rc4 (#188)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2024-04-12 10:51:11 -04:00
renovate-rancher[bot]
f042b7d545 chore(deps): update k8s.io/kube-openapi digest to dc4e619 (#177)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2024-04-12 10:45:48 -04:00
renovate-rancher[bot]
ee5c83bb1c chore(deps): update rancher 2.9 packages (#193)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2024-04-12 10:42:09 -04:00
Michael Bolot
bcba9d5e3b Merge pull request #180 from MbolotSuse/flaky-test
Attempting to fix flaky tests
2024-04-04 08:23:08 -05:00
Michael Bolot
0e9fde750f Attempting to fix flaky tests
Some tests which relied on timeouts were a bit flaky in CI. This PR
refactors a few of them to work on a more reliable method of receiving
from a channel and raises the timeout of another test.
2024-04-03 15:32:23 -05:00
Diogo Souza
46e3638cd8 changing permission for kubeconfig file inside the shell pod (#166)
* changing permission for kubeconfig file inside the shell pod

* creating unit tests for the changes done
2024-04-03 13:33:37 -04:00