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

portforward: reimplement current port forward behavior with api objects [ch11953] #4499

Merged
merged 3 commits into from
May 3, 2021

Conversation

maiamcc
Copy link
Contributor

@maiamcc maiamcc commented Apr 30, 2021

Okay I think this is a better version of #4483

As per @milas's proposed new migration plan, this is step 1:

introduce API model, replace all similar objects with it and use for diffing/etc but don't store it in EngineState or apiserver

In the next PR, I will

  1. store PortForward state on the EngineState, and
  2. move responsibility for running/stopping PF's into a new PortForwardReconciler subscriber (which won't actually touch the API server yet will just read PF's off the EngineState)

Annotations: map[string]string{
// Name of the manifest that this Port Forward corresponds to
// (we need this to route the logs correctly)
v1alpha1.AnnotationManifest: manifest.Name.String(),
Copy link
Member

Choose a reason for hiding this comment

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

it would probably also make sense to attach the AnnotationSpanId that's used below in PodLogActionWriter

@maiamcc maiamcc merged commit 4079428 into master May 3, 2021
@maiamcc maiamcc deleted the maiamcc/pf-api-objects2 branch May 3, 2021 21:01
milas added a commit that referenced this pull request May 4, 2021
See #4498 - the signature changed here but didn't get rebased
before #4499 was merged, so wrong signature was being used.
milas added a commit that referenced this pull request May 4, 2021
See #4498 - the signature changed here but didn't get rebased
before #4499 was merged, so wrong signature was being used.
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.

None yet

2 participants