Fix runner pod dnsConfig (#1227)

Fixes #1226
Fixes #1224

Signed-off-by: Jeff Billimek <jeff@billimek.com>
This commit is contained in:
Jeff Billimek
2022-04-19 21:55:20 -04:00
committed by GitHub
parent cb4e1fa8f2
commit 13bfa2da4e
9 changed files with 157 additions and 167 deletions

View File

@@ -453,6 +453,10 @@ func (r *RunnerReconciler) newPod(runner v1alpha1.Runner) (corev1.Pod, error) {
pod.Spec.HostAliases = runnerSpec.HostAliases
}
if runnerSpec.DnsConfig != nil {
pod.Spec.DNSConfig = runnerSpec.DnsConfig
}
if runnerSpec.RuntimeClassName != nil {
pod.Spec.RuntimeClassName = runnerSpec.RuntimeClassName
}