-
Notifications
You must be signed in to change notification settings - Fork 4
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 Audit webhook configuration options to RootShard/Shard objects #32
Conversation
056a35b
to
b3aae38
Compare
@@ -37,6 +37,65 @@ type CommonShardSpec struct { | |||
|
|||
// Replicas configures how many instances of this shard run in parallel. Defaults to 2 if not set. | |||
Replicas *int32 `json:"replicas,omitempty"` | |||
|
|||
KcpConfiguration KcpConfigurationSpec `json:"kcpConfiguration,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think I like this, everything in the shard spec is "kcp configuration", more or less. I know where this is coming from but I wouldn't make such a distinction between app config and orchestrator config (e.g. you could argue that the etcd key is also "kcp configuration"). I think we can have the audit
key directly in the struct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, changed.
b3aae38
to
a9115c3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
LGTM label has been added. Git tree hash: a900e4c05221248e8bd7495ee47a7391aaa9ac64
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: embik The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Summary
This PR adds new options to configure an external audit webhook. We chose to not support the local-volume audit logging options of kcp because unless we move to a StatefulSet, we won't be able to provision a PVC for each kcp replica Pod, and we cannot use the same PVC in multiple pods either.
This PR effectively wraps all of the following CLI flags:
I chose to not replicate the default values into the operator (neither in the code, nor in the comments) to prevent them becoming stale and not matching the actual kcp defaults anymore.
Related issue(s)
Fixes #13
Release Notes