Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

persisting k8s plugin state between evaluations #540

Merged
merged 6 commits into from
Mar 30, 2023

Conversation

hamersaw
Copy link
Contributor

@hamersaw hamersaw commented Mar 13, 2023

TL;DR

Persisting k8s plugin state by embedding it in the overall state stored for all k8s plugins. The exporting the PluginStateReader function through the PluginContext so that k8s plugin writers can retrieve plugin state the same way they do in other plugins, just that persistend (ie. PluginStateWriter) is performed underneath.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

^^^

Tracking Issue

fixes flyteorg/flyte#3440

Follow-up issue

NA

Signed-off-by: Daniel Rammer <daniel@union.ai>
Signed-off-by: Daniel Rammer <daniel@union.ai>
Signed-off-by: Daniel Rammer <daniel@union.ai>
@codecov
Copy link

codecov bot commented Mar 14, 2023

Codecov Report

Merging #540 (c9fd563) into master (e462412) will increase coverage by 0.43%.
The diff coverage is 55.55%.

❗ Current head c9fd563 differs from pull request most recent head c73a605. Consider uploading reports for the commit c73a605 to get more accurate results

Signed-off-by: Daniel Rammer <daniel@union.ai>
Signed-off-by: Daniel Rammer <daniel@union.ai>
@hamersaw hamersaw marked this pull request as ready for review March 28, 2023 01:01
eapolinario
eapolinario previously approved these changes Mar 30, 2023
Copy link
Contributor

@eapolinario eapolinario left a comment

Choose a reason for hiding this comment

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

worth adding tests? Approving it in case you think the answer is no.

Signed-off-by: Daniel Rammer <daniel@union.ai>
@hamersaw hamersaw merged commit 01218d2 into master Mar 30, 2023
@hamersaw hamersaw deleted the bug/k8s-plugin-state-persistence branch March 30, 2023 17:21
eapolinario pushed a commit to eapolinario/flytepropeller that referenced this pull request Aug 9, 2023
* persisting k8s plugin state between evaluations

Signed-off-by: Daniel Rammer <daniel@union.ai>

* fixed unit tests and linter

Signed-off-by: Daniel Rammer <daniel@union.ai>

* added docs

Signed-off-by: Daniel Rammer <daniel@union.ai>

* updating flyteplugins dep

Signed-off-by: Daniel Rammer <daniel@union.ai>

* added unit tests

Signed-off-by: Daniel Rammer <daniel@union.ai>

---------

Signed-off-by: Daniel Rammer <daniel@union.ai>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants