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

PeprStore, K8s Fluent API & Watch Action #180

Merged
merged 124 commits into from
Oct 2, 2023
Merged

PeprStore, K8s Fluent API & Watch Action #180

merged 124 commits into from
Oct 2, 2023

Conversation

jeff-mccoy
Copy link
Member

@jeff-mccoy jeff-mccoy commented Jul 7, 2023

Fixes #173
Fixes #49
Fixes #156
Fixes #139

  • Introduce new Watch action for observing resource events outside of the admission controller lifecycle
  • Introduces Pepr Store for lightweight key-value stores persistence
  • Introduces new K8s(kind.<Name>) fluent api from kubernetes-fluent-client
  • moves node-fetch wrapper & model to GVK mapping to kubernetes-fluent-client
  • Moves back to arrow functions vs binds due to complexities with Pepr Store binding sequence
  • Add higher test coverage around core library code
  • Leverage SSA for deploying K8s components in journey tests and npx pepr deploy
  • Add internal destroyModule() for purging a pepr module from a cluster

hack/e2e.test.mjs Fixed Show fixed Hide fixed
Barry Waldbaum and others added 2 commits September 27, 2023 11:57
Co-authored-by: razzle <[email protected]>
Co-authored-by: Case Wylie <[email protected]>
docs/store.md Outdated Show resolved Hide resolved
docs/store.md Outdated Show resolved Hide resolved
cmwylie19
cmwylie19 previously approved these changes Sep 27, 2023
Copy link
Collaborator

@cmwylie19 cmwylie19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jeff-mccoy
Copy link
Member Author

Store.setItem("tenantGateway", "istio-system/tenant"); Store.getItem("tenantGateway")

produces nothing. Store.onReady happens after the controller starts, will expand testing to Mutate/Validate. Right now the Store not usable (at least with Watch)

right we brought that up yesterday, working that fix rn. Mutate/Validate should work, but you can't getItems until the store is ready--but today it doesnt throw an error.

Co-authored-by: Barrett <[email protected]>
jeff-mccoy and others added 2 commits September 27, 2023 14:12
btlghrants
btlghrants previously approved these changes Sep 29, 2023
Copy link
Collaborator

@btlghrants btlghrants left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't see any red flags so let's do it, wee!

@jeff-mccoy jeff-mccoy requested a review from bdw617 October 1, 2023 15:47
Copy link
Collaborator

@cmwylie19 cmwylie19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jeff-mccoy jeff-mccoy dismissed bdw617’s stale review October 2, 2023 14:05

this was resolved

Copy link
Contributor

@bdw617 bdw617 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with caveats

Copy link
Collaborator

@btlghrants btlghrants left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jeff-mccoy jeff-mccoy merged commit 15cd74a into main Oct 2, 2023
9 checks passed
@jeff-mccoy jeff-mccoy deleted the shifting-sands branch October 2, 2023 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants