cleanup some unused code and minor refactors (#1274)

Co-authored-by: Yusuke Kuoka <[email protected]>
This commit is contained in:
Felipe Galindo Sanchez
2022-05-16 18:38:32 +09:00
committed by GitHub
co-authored by Yusuke Kuoka
parent bf45aa9f6b
commit 78c01fd31d
5 changed files with 6 additions and 16 deletions
+1 -3
View File
@@ -188,9 +188,7 @@ var LabelValuePodMutation = "true"
func (r *RunnerSetReconciler) newStatefulSet(runnerSet *v1alpha1.RunnerSet) (*appsv1.StatefulSet, error) {
runnerSetWithOverrides := *runnerSet.Spec.DeepCopy()
for _, l := range r.CommonRunnerLabels {
runnerSetWithOverrides.Labels = append(runnerSetWithOverrides.Labels, l)
}
runnerSetWithOverrides.Labels = append(runnerSetWithOverrides.Labels, r.CommonRunnerLabels...)
template := corev1.Pod{
ObjectMeta: runnerSetWithOverrides.StatefulSetSpec.Template.ObjectMeta,