1
0
mirror of https://github.com/rancher/steve.git synced 2025-08-31 06:46:25 +00:00
Commit Graph

146 Commits

Author SHA1 Message Date
renovate-rancher[bot]
392a95f753 chore(deps): update module github.com/rancher/dynamiclistener to v0.6.2 (#495)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-04-23 16:35:55 -07:00
renovate-rancher[bot]
83cf2ac76f chore(deps): update module helm.sh/helm/v3 to v3.17.2 (#337)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-04-22 13:20:22 -07:00
Sakala Venkata Krishna Rohit
da9bc2a114 Update urfave/cli to v2 (#523) 2025-04-08 12:46:32 -07:00
Tom Lebreux
e1061a86cd Update branch (#549)
* Update branch

* Update norman and apiserver to v0.6.0
2025-03-18 11:36:01 -04:00
renovate-rancher[bot]
a85993129e chore(deps): update module modernc.org/sqlite to v1.36.0 (#528)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-02-27 17:10:58 -05:00
renovate-rancher[bot]
d7746fd993 chore(deps): update module modernc.org/sqlite to v1.35.0 (#454)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-02-14 09:05:49 -08:00
Chad Roberts
ccbadbd75f Update to k8s 1.32 libraries (#491)
* Rebase

* Update dynamiclistener to v0.6.2-rc.3
2025-02-12 13:26:58 -05:00
renovate-rancher[bot]
f664022933 chore(deps): update module github.com/rancher/dynamiclistener to v0.6.1 (#334)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-02-12 09:20:45 -08:00
renovate-rancher[bot]
d314442a42 chore(deps): update module github.com/urfave/cli/v2 to v2.27.5 (#336)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-02-12 09:20:20 -08:00
renovate-rancher[bot]
b72a24c0bc chore(deps): update module github.com/google/gnostic-models to v0.6.9 (#372)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-02-12 09:17:27 -08:00
renovate-rancher[bot]
e71f8c455d chore(deps): update module github.com/rancher/wrangler/v3 to v3.1.0 (#344)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-02-11 13:04:45 -08:00
renovate-rancher[bot]
b4551c5472 chore(deps): update module go.uber.org/mock to v0.5.0 (#345)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-02-11 13:03:15 -08:00
renovate-rancher[bot]
747284103a chore(deps): update module github.com/urfave/cli to v1.22.16 (#335)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-02-11 12:53:19 -08:00
renovate-rancher[bot]
b826f74af2 chore(deps): update module github.com/adrg/xdg to v0.5.3 (#332)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-02-11 12:52:43 -08:00
renovate-rancher[bot]
4768bba63b chore(deps): update module github.com/gorilla/websocket to v1.5.3 (#333)
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
2025-02-11 12:52:00 -08:00
Eric Promislow
c1805696ce SQLite backed cache: Support sorting mgmt clusters on value in a specific condition (#447)
* Replace primary/secondary sort fields with an array of sort directives.

* Allow more than 2 sort-params in a search query.

* Add a virtual 'status.ready' field to clusters.

* Rename status.ready -> status.connected

* Set virtual field 'spec.internal' <- spec.displayName == 'local'

* Need to declare all virtual fields to index.

* Ready clusters have condition[type==Ready && status=True]

* Update the README to reflect generalized sorting.

* Bump lasso to get revised sort directives.

* Review-driven changes, mostly comments and drop unneeded code.

* Add unit tests to verify sort-order stringification.

* Ignore empty-string sort components.

* Fix a rebase mishap.

* Drop unneeded commented-out code.

* Clusters have a 'spec.internal' field, no need to synthesize one.

* Added a note on square-brackets for label references.

This should be added to the README for filter queries in the PR for 46333.

* Bump to latest sqlcache-free lasso
2025-01-27 11:55:09 -08:00
Silvio Moioli
58f2264f16 sql: silence informer errors on unwatchable resources (#284)
* bump lasso to include pull #111

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

* Make IsListWatchable public to be reused in other packages

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

* Let lasso know whether a type is watchable upon requesting a cache

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

* Adapt existing tests

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

* Add a test to check watchability is detected correctly

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

---------

Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-19 04:53:10 -05:00
Felipe Gehrke
6ee8201c8d #47483 - Adding NonResourceURLs support to AccessStore (#299)
* adding NonResourceURLs support to access_store

* added tests to AccessSet NonResourceURLs handling

* change on test script suggested by @tomleb + go mod tidy

* added nonresource to ext api authorization

* added NonResourceURLs implementation in Authorizes + test

* removed non-resource-url tests from the main test

* added new tests for non-resource-urls

* removed unused test data

* changed nonResourceKey to point to struct{}

* addressed comments from @tomleb

* addressed more comments

* fixing typo

* check for empty accessSet
2024-11-04 23:47:48 -03: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
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
Eric Promislow
69906c52af Display error output from dynamiclistener.Server. 2024-09-05 12:00:54 -07: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
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
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
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
Eric Promislow
ee5e596d24 Merge pull request #251 from rancher/renovate/github.com-rancher-dynamiclistener-0.x
chore(deps): update module github.com/rancher/dynamiclistener to v0.6.0
2024-08-16 15:23:33 -07:00
renovate-rancher[bot]
3291f8c741 chore(deps): update module github.com/urfave/cli/v2 to v2.27.4 2024-08-12 05:01:28 +00:00
renovate-rancher[bot]
98964a7e69 chore(deps): update module github.com/adrg/xdg to v0.5.0 2024-08-10 04:56:27 +00:00
renovate-rancher[bot]
2d08b36ea5 chore(deps): update module github.com/rancher/dynamiclistener to v0.6.0 2024-08-10 04:56:06 +00:00
renovate-rancher[bot]
bff7f104ee chore(deps): update github.com/rancher/lasso digest to 8da6f11 2024-08-10 04:55:47 +00: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
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
Krunal Hingu
030241985d bump versions for k8s 1.29.3 2024-05-04 06:49:19 +05:30
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
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
Tom Lebreux
9b00eb3a7f Various dependency bumps (#179)
* Bump wrangler to v2.2.0-rc1

* Bump dynamiclistener to v0.5.0-rc3

* Bump apiserver to 0dbf81039822340de2905a7e12b096d5a717b739

* Bump norman to dd207ee11dda52ef503af578a2e861b78b97eedf

* Bump remotedialer to v0.3.1
2024-03-26 15:11:24 -04:00
renovate-rancher[bot]
b77040f74e Update k8s.io/kube-openapi digest to 70dd376 2024-03-22 15:47:53 -05:00
renovate-rancher[bot]
e3137d6fbd Update module github.com/prometheus/client_golang to v1.19.0 2024-03-22 15:47:53 -05:00
renovate-rancher[bot]
cc5d0936d7 Update module golang.org/x/sync to v0.6.0 2024-03-22 15:47:53 -05:00
renovate-rancher[bot]
c9d4da92e7 Update module github.com/gorilla/mux to v1.8.1 2024-03-22 15:47:53 -05:00
renovate-rancher[bot]
f5c3c4db75 Update module github.com/gorilla/websocket to v1.5.1 2024-03-22 15:47:53 -05:00
Michael Bolot
51e85d9e4b Bumping go version to 1.22
Also bumps golangci-lint 1.57.1
2024-03-22 15:47:46 -05:00