Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Fix portforward error check #2394

Merged
merged 1 commit into from
Aug 22, 2019

Conversation

2opremio
Copy link
Contributor

@2opremio 2opremio commented Aug 22, 2019

We were not checking portforwarding errors properly, causing fluxctl to only test the first label selector provided, and in turn causing to fail selecting on name={"flux", "fluxd", "weave-flux-agent"} as intended by

Values: []string{"flux", "fluxd", "weave-flux-agent"},

@2opremio
Copy link
Contributor Author

2opremio commented Aug 22, 2019

For traceability reasons, the problem was introduced when vendoring this change oliviabarrick/go-k8s-portforward@649dc88#diff-fd0ea03735acb6add12bf1cca551cdd4R196 and not updating the check consistently.

However, the main cause is how shitty error selection is in Golang.

@hiddeco
Copy link
Member

hiddeco commented Aug 22, 2019

However, the main cause is how shitty error selection is in Golang.

Maybe Go v3 will solve this...

Copy link
Member

@hiddeco hiddeco left a comment

Choose a reason for hiding this comment

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

Thanks Fons 🌟

@hiddeco hiddeco force-pushed the fix-portforward-error-check branch from af718e2 to ada17ad Compare August 22, 2019 11:28
@hiddeco hiddeco added this to the 1.14.1 milestone Aug 22, 2019
@2opremio 2opremio merged commit bc1c8e8 into fluxcd:master Aug 22, 2019
@2opremio 2opremio deleted the fix-portforward-error-check branch August 22, 2019 11:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants