Add hostAliases to the runner spec (#456)

This commit is contained in:
Agoney Garcia-Deniz
2021-04-17 09:04:52 +01:00
committed by GitHub
parent 7b44454d01
commit 2e551c9d0a
9 changed files with 97 additions and 0 deletions

View File

@@ -96,6 +96,8 @@ type RunnerSpec struct {
DockerEnabled *bool `json:"dockerEnabled,omitempty"`
// +optional
DockerMTU *int64 `json:"dockerMTU,omitempty"`
// +optional
HostAliases []corev1.HostAlias `json:"hostAliases,omitempty"`
}
// ValidateRepository validates repository field.

View File

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