Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase Rancher Desktop fork of Steve #7

Draft
wants to merge 214 commits into
base: master
Choose a base branch
from

Conversation

rak-phillip
Copy link
Collaborator

No description provided.

MbolotSuse and others added 30 commits August 26, 2022 09:27
Adds logic to ensure that only one schema/access set
is cached for each user. This should improve memory
consumption
Adds tests for:
- Cache clearing functionality
- Very basic schema generation
Adding logic to limit number of cached schemas
Three main changes:
- When a count changes, only send that count. This makes the
count socket significantly more usable
- The count buffer will now send a count right away. This allows
a message to launch wihtout an inital buffered wait period
- The count buffer now sends messages every 5 seconds instead of 1
Adds a validate phase to the CI which runs a linter. Also fixes
linter issues discovered during the initial run
Remove duplicate import and make aliasing of other apiserver imports
consistent throughout steve.
HandlerFromConfig was not used in steve or rancher.
The header defined in RFC 9110[1] is "Accept", not "Accepts". This
change corrects the route filter. Since this API is not documented and
the header was plainly incorrect, no attempt is made at backwards
compatibility.

[1] https://www.rfc-editor.org/rfc/rfc9110.html#name-accept
Usage of the switchstore store was removed when the clusters resource
was removed in dcea1db.
The use of AddNamespaceConstraint was removed in e35b8304 of
rancher/rancher, so there is no possibility of there being a namespace
constraint in the request context. Remove the unused function and the
unused codepath from the rbac store.
Updated logic used to decide when and what schema events are sent
during a watch.
Bumps dynamic listener to v0.3.5. Adds a small arg change to
account for this version bump which addresses an issue caused by
the new version
Changing count watch to only return changed counts
Filtering and sorting needs to operate on unstructured data. It also
needs to operate after the parallel partitioner, higher in the store
stack. This means that the proxy Store needs to return raw, unstructured
data up to the partitioner. This change moves all conversions from
unstructured Kubernetes types to apiserver objects up from the proxy
store into the partitioner.
nflynt and others added 29 commits May 28, 2024 10:13
This uses SQLite-backed informers provided by Lasso with rancher/lasso#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 <[email protected]>
Co-authored-by: Michael Bolot <[email protected]>
Co-authored-by: Silvio Moioli <[email protected]>
Signed-off-by: Silvio Moioli <[email protected]>
also updated k8s dependencies to v0.30.1
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.
Adding APIGroups back to the schema
Signed-off-by: Silvio Moioli <[email protected]>
Signed-off-by: Silvio Moioli <[email protected]>
* sql: drop dead code

Signed-off-by: Silvio Moioli <[email protected]>

* sql: bugfix: return total resource count correctly

Signed-off-by: Silvio Moioli <[email protected]>

* adapt tests

Signed-off-by: Silvio Moioli <[email protected]>

* adapt mocks

Signed-off-by: Silvio Moioli <[email protected]>

* TEMP: remove this when bumping lasso to include rancher/lasso#84

Signed-off-by: Silvio Moioli <[email protected]>

* Use latest lasso instead of fork

---------

Signed-off-by: Silvio Moioli <[email protected]>
Co-authored-by: Tom Lebreux <[email protected]>
and other dependencies that also bumps wrangler
Signed-off-by: Phillip Rak <[email protected]>
Otherwise, default to dynamic to keep behavior the same as it is today

Signed-off-by: Phillip Rak <[email protected]>
Signed-off-by: Phillip Rak <[email protected]>
Signed-off-by: Phillip Rak <[email protected]>
Signed-off-by: Phillip Rak <[email protected]>
This resolves an error raised by the linter

```
Error: pkg/ui/routes.go:27:2: ineffectual assignment to path (ineffassign)
  	path, err := filepath.Abs(r.URL.Path)
```

Signed-off-by: Phillip Rak <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.