Introduce a config file model for Galley#10834
Introduce a config file model for Galley#10834ozevren wants to merge 10 commits intoistio:release-1.1from ozevren:gl-6-configfile
Conversation
|
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
|
CLAs look good, thanks! |
galley/pkg/settings/settings.proto
Outdated
There was a problem hiding this comment.
Do we want gRPC stream metadata and resource annotations?
galley/pkg/settings/settings.proto
Outdated
There was a problem hiding this comment.
TLS is a form of authentication. Should it be configured as part of the auth plugin?
There was a problem hiding this comment.
This needs to be strongly typed, at least for the validation case. For MCP case, we can model it as an "auth provider".
There was a problem hiding this comment.
Just pushed another change that incorporates an "Auth Provider" model. I am not going to check this in though. I'd like to get the config model using current settings in first, then change both the settings & the code to be Auth Provider based.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ozevren If they are not already assigned, you can assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/test istio_auth_sds_e2e |
|
@ozevren: The following tests failed, say
DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
| serverArgs.IntrospectionOptions.AttachCobraFlags(rootCmd) | ||
|
|
||
| // validation config | ||
| rootCmd.PersistentFlags().StringVar(&validationArgs.WebhookConfigFile, |
There was a problem hiding this comment.
For compat, I think we need to keep the flags that existed in 1.0. You can mark them as deprecated, but they should still work in the same way as before until 1.3
| } | ||
|
|
||
| // Introspection (CtrlZ) related settings | ||
| message Introspection { |
There was a problem hiding this comment.
WOuld it make sense to leave this on the command-line, like the log flags?
|
|
||
| k := s.Processing.Source.GetKubernetes() | ||
| if k != nil && k.ResyncPeriod != nil { | ||
| if resyncPeriod, err = ptypes.Duration(k.ResyncPeriod); err != nil { |
There was a problem hiding this comment.
Shouldn't this use the types.DurationFromProto from github.com/gogo/protobuf/types if settings.proto is compiled with gogo proto?
| @@ -0,0 +1,254 @@ | |||
| {{ define "settings.yaml.tpl" }} | |||
There was a problem hiding this comment.
Is this autogenerated from the default settings, or written by hand? Are we relying on PR reviews to maintain consistency between the two?
|
@ozevren: PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
This pull request has been automatically marked as stale because it has not had activity in the last 2 weeks. It will be closed in 30 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
|
This pull request has been automatically marked as stale because it has not had activity in the last 2 weeks. It will be closed in 30 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
|
Will move this to master. |
Galley is starting to accummulate too many command-line flags. It is going to get worse with future improvements, such as reverse-MCP. This adds a settings file model, and plumbs it through.