import ( "k8s.io/apimachinery/pkg/api/resource" "k8s.io/api/core/v1" ) func GetDeployment() *v1.Deployment { return &v1.Deployment{ Spec: v1.DeploymentSpec{ Template: v1.PodTemplateSpec{ Spec: v1.PodSpec{ Containers: []v1.Container{ { Name: "my-container", Image: "my-image", Resources: v1.ResourceRequirements{ Requests: v1.ResourceList{ v1.ResourceCPU: resource.MustParse("100m"), v1.ResourceMemory: resource.MustParse("128Mi"), }, Limits: v1.ResourceList{ v1.ResourceCPU: resource.MustParse("200m"), v1.ResourceMemory: resource.MustParse("256Mi"), }, }, }, }, }, }, }, } }In this code snippet, we use the MustParse function from the Quantity Value package to convert string values to their appropriate units for CPU and memory resources. We then set the resource requests and limits for the container in the Deployment. Overall, the k8s.io/kubernetes/pkg/api/resource Quantity Value package provides a convenient way to work with Kubernetes API resources and units in Go.