Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions internal/controllers/v1beta2/task_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,10 @@ func (r *LagoonTaskReconciler) createAdvancedTask(ctx context.Context, lagoonTas
Name: lagoonTask.Name,
}, newPod)
if err != nil {

// For now, we disable service links to bring advanced tasks in line with `cli` pods behavior in terms of env vars
enableServiceLinks := false

newPod := &corev1.Pod{
ObjectMeta: metav1.ObjectMeta{
Name: lagoonTask.Name,
Expand Down Expand Up @@ -641,6 +645,7 @@ func (r *LagoonTaskReconciler) createAdvancedTask(ctx context.Context, lagoonTas
VolumeMounts: volumeMounts,
},
},
EnableServiceLinks: &enableServiceLinks,
},
}
// check if the lagoon-env secret(s) exist and mount them to the pod as required, or fall back to the configmap
Expand Down
Loading