Skip to content

Commit

Permalink
Merge pull request #497 from yuumasato/enable_host_network_for_sysctls
Browse files Browse the repository at this point in the history
OCPBUGS-19690: Enable host network to access host sysctls
  • Loading branch information
openshift-merge-bot[bot] authored Jun 28, 2024
2 parents 939659c + f05e870 commit f3e5a91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/controller/compliancescan/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@ func newScanPodForNode(scanInstance *compv1alpha1.ComplianceScan, node *corev1.N
NodeSelector: map[string]string{
corev1.LabelHostname: node.Labels[corev1.LabelHostname],
},
HostNetwork: true,
DNSPolicy: "ClusterFirstWithHostNet",
RestartPolicy: corev1.RestartPolicyOnFailure,
Volumes: []corev1.Volume{
{
Expand Down

0 comments on commit f3e5a91

Please sign in to comment.