1
0
mirror of https://github.com/rancher/steve.git synced 2025-04-27 11:00:48 +00:00
Commit Graph

488 Commits

Author SHA1 Message Date
renovate-rancher[bot]
7c49f34827
chore(deps): update module github.com/sirupsen/logrus to v1.9.3 2023-08-10 18:54:50 +00:00
renovate-rancher[bot]
d3bd2ae53d
chore(deps): update github.com/rancher/apiserver digest to de731cd 2023-08-10 18:54:32 +00:00
Jonathan Crowther
97194fb980
Merge pull request #100 from rancher/renovate/github.com-urfave-cli-v2-2.x
chore(deps): update module github.com/urfave/cli/v2 to v2.25.7
2023-08-10 14:51:41 -04:00
Jonathan Crowther
dfc0b92be7
Merge pull request #85 from rancher/renovate/github.com-rancher-norman-digest
chore(deps): update github.com/rancher/norman digest to ccd31a4
2023-08-10 14:42:06 -04:00
Jonathan Crowther
da7ecef2bb
Merge pull request #96 from rancher/renovate/github.com-prometheus-client_golang-1.x
chore(deps): update module github.com/prometheus/client_golang to v1.16.0
2023-08-10 14:41:35 -04:00
Jonathan Crowther
4c82d37181
Merge pull request #86 from rancher/renovate/github.com-rancher-pkg-digest
chore(deps): update github.com/rancher/pkg digest to b04c094
2023-08-10 14:37:12 -04:00
Jonathan Crowther
ba5c979324
Merge pull request #90 from rancher/renovate/github.com-rancher-wrangler-1.x
chore(deps): update module github.com/rancher/wrangler to v1.1.1
2023-08-10 14:35:21 -04:00
Jonathan Crowther
899abbcec6
Merge pull request #88 from rancher/renovate/github.com-pborman-uuid-1.x
chore(deps): update module github.com/pborman/uuid to v1.2.1
2023-08-10 14:33:25 -04:00
renovate-rancher[bot]
cabea84725
chore(deps): update module github.com/urfave/cli/v2 to v2.25.7 2023-08-10 18:25:30 +00:00
renovate-rancher[bot]
7f074294d8
chore(deps): update module github.com/prometheus/client_golang to v1.16.0 2023-08-10 18:25:15 +00:00
renovate-rancher[bot]
33dc24bc15
chore(deps): update module github.com/adrg/xdg to v0.4.0 2023-08-10 18:25:08 +00:00
renovate-rancher[bot]
45c68fa1b9
chore(deps): update module github.com/rancher/wrangler to v1.1.1 2023-08-10 18:25:01 +00:00
renovate-rancher[bot]
5f8dca1998
chore(deps): update module github.com/pborman/uuid to v1.2.1 2023-08-10 18:24:52 +00:00
renovate-rancher[bot]
fbcee62c6e
chore(deps): update github.com/rancher/pkg digest to b04c094 2023-08-10 18:24:38 +00:00
renovate-rancher[bot]
fd96884537
chore(deps): update github.com/rancher/norman digest to ccd31a4 2023-08-10 18:24:21 +00:00
Jonathan Crowther
548632c5d8
Merge pull request #89 from rancher/renovate/github.com-rancher-kubernetes-provider-detector-0.x
chore(deps): update module github.com/rancher/kubernetes-provider-detector to v0.1.5
2023-08-10 14:21:08 -04:00
Jonathan Crowther
8744eaadd1
Merge pull request #92 from rancher/renovate/github.com-urfave-cli-1.x
chore(deps): update module github.com/urfave/cli to v1.22.14
2023-08-10 14:19:40 -04:00
Jonathan Crowther
fa9e139975
Merge pull request #93 from rancher/renovate/registry.suse.com-bci-bci-micro-15.x
chore(deps): update registry.suse.com/bci/bci-micro docker tag to v15.5.11.2
2023-08-10 14:18:45 -04:00
Jonathan Crowther
5bcbfe5113
Merge pull request #95 from rancher/renovate/github.com-gorilla-websocket-1.x
chore(deps): update module github.com/gorilla/websocket to v1.5.0
2023-08-10 14:18:10 -04:00
Jonathan Crowther
e771a09100
Merge pull request #97 from rancher/renovate/github.com-rancher-remotedialer-0.x
chore(deps): update module github.com/rancher/remotedialer to v0.3.0
2023-08-10 14:12:41 -04:00
Jonathan Crowther
04901b475d
Merge pull request #98 from rancher/renovate/github.com-rancher-saml-0.x
chore(deps): update module github.com/rancher/saml to v0.2.0
2023-08-10 14:10:25 -04:00
Jonathan Crowther
781717c208
Merge pull request #114 from rancher/renovate/registry.suse.com-bci-bci-base-15.x
chore(deps): update registry.suse.com/bci/bci-base docker tag to v15.5
2023-08-10 13:30:49 -04:00
Jonathan Crowther
d92f0d0c5f
Merge pull request #115 from pjbgf/bump-deps
build: Bump dependencies
2023-08-10 13:07:09 -04:00
Paulo Gomes
700cd88f43
build: Bump dependencies
The k8s.io dependencies were bumped to latest patch for the currently
used minor. Overall changes:
- k8s.io/api v0.25.12
- k8s.io/apiextensions-apiserver v0.25.12
- k8s.io/apimachinery v0.25.12
- k8s.io/apiserver v0.25.12
- k8s.io/component-base v0.25.12
- k8s.io/kube-aggregator v0.25.12
- golang.org/x/crypto v0.11.0
- golang.org/x/net v0.12.0
- golang.org/x/oauth2 v0.10.0
- golang.org/x/sync v0.3.0
- golang.org/x/sys v0.10.0
- golang.org/x/term v0.10.0
- golang.org/x/text v0.11.0
- golang.org/x/time v0.3.0

Signed-off-by: Paulo Gomes <paulo.gomes@suse.com>
2023-07-25 15:11:03 +01:00
renovate-rancher[bot]
64c8a50866
chore(deps): update registry.suse.com/bci/bci-micro docker tag to v15.5.11.2 2023-07-21 04:39:51 +00:00
renovate-rancher[bot]
70eaf26830
chore(deps): update registry.suse.com/bci/bci-base docker tag to v15.5 2023-07-20 04:40:08 +00:00
Colleen Murphy
d040cffef3
Merge pull request #112 from cmurphy/unformatter-store
Drop unrecognized fields before update
2023-07-17 09:02:51 -07:00
Colleen Murphy
adaa391ddf Drop unrecognized fields before update
Add a nested store to the proxy store to strip non-Kubernetes fields
from the object being updated.

The steve formatter and proxy store adds fields to objects when it
outputs them to the client, for usability by the UI. It adds the
object's fields[1], relationships to other objects[2], a summary of the
object's state[3], and additional information in the conditions[4].
These fields are not native to Kubernetes, so when a client submits the
object back as an update, Kubernetes reports a warning that they are
unrecognized. This change ensures the extra fields are removed before
submitting the update.

[1] bf2e9655f5/pkg/stores/proxy/proxy_store.go (L189)
[2] bf2e9655f5/pkg/resources/common/formatter.go (L106)
[3] bf2e9655f5/pkg/resources/common/formatter.go (L100)
[4] bf2e9655f5/pkg/resources/common/formatter.go (L108)
2023-07-14 14:54:01 -07:00
Colleen Murphy
8128019458
Merge pull request #80 from moio/fix_lru_concurrent_map_write
LRU cache: fix concurrent map write
2023-06-23 13:22:50 -07:00
renovate-rancher[bot]
7a7d5ad3f0
chore(deps): update module github.com/urfave/cli to v1.22.14 2023-06-13 04:39:28 +00:00
Ricardo Weir
bf2e9655f5
Merge pull request #111 from rmweir/41225-tests
Add tests
2023-06-09 13:21:41 -07:00
Ricardo Weir
c53bd62e9c Add tests 2023-06-09 13:18:32 -07:00
Ricardo Weir
4fd6f7e6be
Merge pull request #110 from moio/proxy_store_improve_error_handling
Proxy store improve error handling
2023-06-09 13:18:02 -07:00
Silvio Moioli
7010a5e6c7
proxy_store: improve error handling
This prevents a goroutine leak when item.Object is a `runtime.Object` but not a
`metav1.Object`, as in that case `WatchNames`’s `for` loop will quit early and
subsequent calls to `returnErr` will remain parked forever.

This helps with https://github.com/rancher/rancher/issues/41225
Fuller explanation in https://github.com/rancher/steve/pull/107
2023-06-09 10:55:26 +02:00
Michael Bolot
3cbeea22d3
Merge pull request #109 from moio/fix_drone_go1.19
Fix drone validate build
2023-06-07 08:10:42 -05:00
Silvio Moioli
27aa1b48ae
Fix drone validate build
go1.19 provides go=1.19.9, the right symbol for the major version is golang(API)

Signed-off-by: Silvio Moioli <silvio@moioli.net>
2023-06-07 10:05:29 +02:00
Colleen Murphy
1dfd3c711f
Merge pull request #105 from cmurphy/projects-filtering
Add projectsornamespaces query parameter
2023-05-12 10:58:54 -07:00
Ricardo Weir
32799193cc
Merge pull request #106 from rmweir/disable-cache
Change cache default to false
2023-05-11 16:25:09 -07:00
Colleen Murphy
84dedac146 Add projectsornamespaces query parameter
Add a new query parameter to filter resources by their namespace or
their namespace's project. This parameter is separate from the existing
`filter` parameter.

Filter by a comma-separated list of projects and/or namespaces with:

?projectsornamespaces=p1,n1,n2

The result can be negated with the ! operator:

?projectsornamespaces!=p1,n1,n2
2023-05-11 14:17:39 -07:00
Ricardo Weir
0cabe8de10 Update tests 2023-05-10 22:58:41 -07:00
Ricardo Weir
3db0918eb8 Change cache default to false 2023-05-10 22:58:35 -07:00
renovate-rancher[bot]
0d46bf0710
Update module github.com/rancher/saml to v0.2.0 2023-04-26 06:41:00 +00:00
renovate-rancher[bot]
39a13cb0b8
Update module github.com/rancher/remotedialer to v0.3.0 2023-04-26 04:40:06 +00:00
renovate-rancher[bot]
2299820567
Update module github.com/gorilla/websocket to v1.5.0 2023-04-25 06:41:10 +00:00
renovate-rancher[bot]
fbb7f87f79
Update module github.com/rancher/kubernetes-provider-detector to v0.1.5 2023-04-24 04:40:52 +00:00
Guilherme Macedo
4b2b533083
Merge pull request #82 from rancher/deploy-renovate-2023-04-18-11-24-39
Add initial Renovate configuration
2023-04-22 11:47:25 -03:00
renovate-rancher[bot]
13ac720b0e Add initial Renovate configuration 2023-04-18 11:24:39 +00:00
Colleen Murphy
e6a8019546
Merge pull request #76 from cmurphy/or-filter
Add support for OR and NOT filters
2023-03-30 04:45:40 -07:00
Colleen Murphy
61a39906f9 Add support for NOT filters
This change adds support for excluding results using the != operator.

Example to exclude all results with name "example":

?filter=metadata.name!=example

Include all results from namespace "example" but exclude those with name
"example":

?filter=metadata.namespace=example&metadata.name!=example

Exclude results with name "foo" OR exclude results with name "bar"
(effectively includes results of both types):

?filter=metadata.name!=foo,metadata.name!=bar
2023-03-23 14:12:14 -07:00
Colleen Murphy
2e4ee872d9 Add support for OR filters
Currently, multiple filters can be appended on the query string, and
each subsequent filter is ANDed with the set. Items that pass through
the filter set must match every filter in the set.

This change adds support for OR filters. A single filter key can specify
multiple filters, separated by ','. An item that passes this filter can
match any filter in the set.

For example, this filter matches items that have either "name" or
"namespace" that match "example":

?filter=metadata.name=example,metadata.namespace=example

This filter matches items that have "name" that matches either "foo" or
"bar":

?filter=metadata.name=foo,metadata.name=bar

Specifying more than one filter key in the query still ANDs each inner
filter set together. This set of filters can match either a name of
"foo" or "bar", but must in all cases match namespace "abc":

?filter=metadata.name=foo,metadata.name=bar&filter=metadata.namespace=abc
2023-03-23 14:12:13 -07:00