You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: langruntime.go
    path of file: ./repos/kubeless/pkg/langruntime
    
    the code of the file until where you have to start completion: package langruntime

import (
	"fmt"
	"os"
	"path"
	"regexp"
	"strings"

	"github.com/ghodss/yaml"
	"github.com/sirupsen/logrus"
	appsv1 "k8s.io/api/apps/v1"
	"k8s.io/api/core/v1"
	"k8s.io/apimachinery/pkg/util/intstr"
)

const (
	// PhaseInstallation - Installation phase name
	PhaseInstallation = "installation"
	// PhaseCompilation - Compilation phase name
	PhaseCompilation = "compilation"
	// PhaseRuntime - Runtime phase name
	PhaseRuntime = "runtime"
)

// Langruntimes struct for getting configmap
type Langruntimes struct {
	kubelessConfig    *v1.Confi
    
func (l *Langruntimes) UpdateDeployment(dpm *appsv1.Deployment, volPath, runtime string) {
	versionInf, err := l.findRuntimeVersion(runtime)
	if err != nil {
		// Not found an image for the given runtime
		return
	}
	dpm.Spec.Template.Spec.Containers[0].Env = append(
		dpm.Spec.Template.Spec.Containers[0].Env,
		v1.EnvVar{Name: "KUBELESS_INSTALL_VOLUME", Value: volPath},
	)

	imageInf := l.findImage(PhaseRuntime, versionInf)
	if imageInf == nil {
		// Not found an image for the given runtime
		return
	}
	dpm.Spec.Template.Spec.Containers[0].Env = append(
		dpm.Spec.Template.Spec.Containers[0].Env,
		parseEnv(imageInf.Env)...,
	)
}