-
Notifications
You must be signed in to change notification settings - Fork 295
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 log to Nutanix control plane template #7190
Conversation
Hi @adiantum. Thanks for your PR. I'm waiting for a aws member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions 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. |
@adiantum could you please post sample audit logs generated for nutanix provider |
pkg/providers/nutanix/testdata/expected_cluster_api_server_cert_san_domain_name.yaml
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7190 +/- ##
=======================================
Coverage 71.59% 71.59%
=======================================
Files 548 548
Lines 42521 42527 +6
=======================================
+ Hits 30441 30447 +6
Misses 10386 10386
Partials 1694 1694 ☔ View full report in Codecov by Sentry. |
lets add more tests for the codecov |
Done |
@@ -158,7 +159,14 @@ func buildTemplateMapCP( | |||
kubeletExtraArgs := clusterapi.SecureTlsCipherSuitesExtraArgs(). | |||
Append(clusterapi.ResolvConfExtraArgs(clusterSpec.Cluster.Spec.ClusterNetwork.DNS.ResolvConf)). | |||
Append(clusterapi.ControlPlaneNodeLabelsExtraArgs(clusterSpec.Cluster.Spec.ControlPlaneConfiguration)) | |||
|
|||
auditPolicy, err := common.GetAuditPolicy(clusterSpec.Cluster.Spec.KubernetesVersion) |
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.
Just curious where this policy comes from. Should it be updated with latest from upstream?
https://github.com/kubernetes/kubernetes/blob/v1.29.0/cluster/gce/gci/configure-helper.sh#L1144
Maybe have it be dynamic based on the minor k8s version?
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.
you are right it should be updated with upstream. we haven't done that yet.
can you please rebase from main? we fixed a CVE and should pass the vulnerability scan. |
- add extra args for audit logs - add required extra volumes - change test manifests
Done. Rebased. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jiayiwang7 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 |
/cherry-pick release-0.18 |
@jiayiwang7: #7190 failed to apply on top of branch "release-0.18":
In response to this:
Instructions 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. |
* Add audit log to Nutanix control plane template - add extra args for audit logs - add required extra volumes - change test manifests * Fixed comments and missed unit test # Conflicts: # pkg/providers/nutanix/config/cp-template.yaml # pkg/providers/nutanix/testdata/expected_cluster_api_server_cert_san_domain_name.yaml # pkg/providers/nutanix/testdata/expected_cluster_api_server_cert_san_ip.yaml
* Add audit log to Nutanix control plane template - add extra args for audit logs - add required extra volumes - change test manifests * Fixed comments and missed unit test # Conflicts: # pkg/providers/nutanix/config/cp-template.yaml # pkg/providers/nutanix/testdata/expected_cluster_api_server_cert_san_domain_name.yaml # pkg/providers/nutanix/testdata/expected_cluster_api_server_cert_san_ip.yaml
Description of changes:
Add audit log to Nutanix control plane template
Testing:
Ubuntu 20.04 K8S 1.27:
Ubuntu 22.04 K8S 1.27:
RHEL 8 K8S 1.28:
RHEL 9 K8S 1.28:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.