knative / knative/client

FT: Plugin Context Data Sharing

Open
#1,372 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Epic kind/proposal triage/accepted
Dominant language
Go
Stars
388
Forks
274
Avg merge
1d 6h
Merged PRs (30d)
8

Description

In order to allow kn to reuse some (stateful) context that is provided by a plugin, I'm proposing to extend the "plugin contract". The original use case is to share the namespace and name of a function managed by kn-plugin-func that is stored in a local "func.yaml" file. kn must not directly read this file as this would introduce a dependency from kn to kn-func-plugin (in the wrong direction).

The Feature Track Kn Plugin Context Data Sharing will describe the design, this issue is to track the work on this FT.

The current status is "WIP" and "pre Draft" but want to share early.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Feature Track document, “Kn Plugin Context Data Sharing,” and review the proposed extension to the plugin contract. Trace how kn-plugin-func stores function namespace and name in func.yaml and how kn would receive that context without reading the file directly. Done means the design is settled and the plugin and kn implementations share the required state without introducing the dependency described.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, developer-experience
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.