Add dnsConfig to runner deployments (#764)

Resolves #761
This commit is contained in:
Sam
2021-08-31 10:42:05 +10:00
committed by GitHub
parent a815c37614
commit 0593125d96
9 changed files with 180 additions and 2 deletions

View File

@@ -145,6 +145,9 @@ type RunnerPodSpec struct {
// More info: https://kubernetes.io/docs/concepts/containers/runtime-class
// +optional
RuntimeClassName *string `json:"runtimeClassName,omitempty"`
// +optional
DnsConfig []corev1.PodDNSConfig `json:"dnsConfig,omitempty"`
}
// ValidateRepository validates repository field.

View File

@@ -706,6 +706,13 @@ func (in *RunnerPodSpec) DeepCopyInto(out *RunnerPodSpec) {
*out = new(string)
**out = **in
}
if in.DnsConfig != nil {
in, out := &in.DnsConfig, &out.DnsConfig
*out = make([]v1.PodDNSConfig, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerPodSpec.