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

[v8] add missing NetworkPolicyV1Endpoint field to Data struct #3418

Merged
merged 3 commits into from
Mar 27, 2025

Conversation

metskem
Copy link
Contributor

@metskem metskem commented Feb 19, 2025

Description of the Change

There is a NetworkPolicyV1Endpoint field missing in a Data struct, this change adds that single field

Why Is This PR Valuable?

Currently the NetworkPolicyV1Endpoint field in your $CF_HOME/config.json file gets wiped out if you execute a cf plugin subcommand while your AccessToken is expired. Your AccessToken is renewed and your config.json file is rewritten, but then the NetworkPolicyV1Endpoint is gone, which then causes your next "cf network-policies" command to fail.
You have to either manually edit the config.json file and add the field back, or do a "cf login ...." again.
Mind that this only happens if using plugin subcommands, not with the builtin cf subcommands like cf apps, cf services etc.

Applicable Issues

None

How Urgent Is The Change?

No, just a bug under specific circumstances.

Other Relevant Parties

Anyone using plugins that need the cf AccessToken.

@a-b a-b changed the title add missing NetworkPolicyV1Endpoint field to Data struct [v8] add missing NetworkPolicyV1Endpoint field to Data struct Mar 27, 2025
@a-b a-b merged commit 2febad3 into cloudfoundry:v8 Mar 27, 2025
8 checks passed
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.

2 participants