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

add missing NetworkPolicyV1Endpoint field to Data struct #3419

Open
wants to merge 2 commits into
base: v7
Choose a base branch
from

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.

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.

1 participant