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

Update config.go to fix ignoreNoResponders #184

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

rizzza
Copy link
Contributor

@rizzza rizzza commented Nov 3, 2023

viper config needs some ❤️

fixing config ignoreNoResponders

Signed-off-by: Matt Siwiec <[email protected]>
@rizzza rizzza requested review from a team as code owners November 3, 2023 21:18
@jnschaeffer
Copy link
Contributor

@rizzza Thanks for sending this along. Out of curiosity, why are we changing the type and name of the Viper value?

@rizzza
Copy link
Contributor Author

rizzza commented Nov 3, 2023

@rizzza Thanks for sending this along. Out of curiosity, why are we changing the type and name of the Viper value?

Both setting environment (i.e. RESOURCEPROVIDERAPI_PERMISSIONS_IGNORENORESPONDERS=true), and straight-up using the --permissions-ignore-no-responders flag wasn't allowing me to set it to true in the config

Comment on lines +23 to +24
flags.Bool("permissions-ignore-no-responders", false, "ignores no responder errors when auth relationship requests are published")
viperx.MustBindFlag(v, "permissions.ignoreNoResponders", flags.Lookup("permissions-ignore-no-responders"))
Copy link
Contributor

Choose a reason for hiding this comment

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

Alright, I see more clearly now: the config item IgnoreNoResponders doesn't match the flag. Looks reasonable to me.

@jnschaeffer jnschaeffer merged commit 8468182 into infratographer:main Nov 3, 2023
4 checks passed
@rizzza rizzza deleted the patch-1 branch November 3, 2023 22:43
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