Specify the exact commit if possible; one way to get this is the REVISION
column output by go list -m <module>, for example go list -m github.com/Azure/azure-sdk-for-go/sdk/azcore.
output of go version: go version go1.21.5 linux/amd64
What happened?
I have defined an azure container job using portal(not that it matters). The main container has the environment variables, volume mount defined. Now I am starting that job using the go sdk. I want to pass the arguments to my app running in side the container. To do that, I need to define the template for the container(I had already defined in when created the job).
The behavior i am seeing doing this is that, my volume mount and my environment variables that i defined at the time of job creation are not present when the job is running.
Now what i believe is happening here, is basically its overriding the configuration that i created at the time of the job creation. I could have done that, but I am seeing no way to attach volumes to the container. Although i can define environment variables.
The struct JobExecutionTemplate, allows me to defined the Containers and Init Containers but not volumes. This is a deal breaker for me to use jobs.
What did you expect or want to happen?
Either i wanted to be able to just pass the arguements to the container in the job or able to also attach volume to the container job.
How can we reproduce it?
Basically create a container job with volume and environment variables defined and try passing just the arguments to the container.
Anything we should know about your environment.
I am running the job on dedicated workload profiles
Bug Report
import path of package in question: ` aca "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v2"
SDK version:
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.0
go list -m <module>
, for examplego list -m github.com/Azure/azure-sdk-for-go/sdk/azcore
.output of
go version
: go version go1.21.5 linux/amd64go sdk
. I want to pass the arguments to my app running in side the container. To do that, I need to define the template for the container(I had already defined in when created the job).Below is how i am defining the template.
The behavior i am seeing doing this is that, my volume mount and my environment variables that i defined at the time of job creation are not present when the job is running.
Now what i believe is happening here, is basically its overriding the configuration that i created at the time of the job creation. I could have done that, but I am seeing no way to attach volumes to the container. Although i can define environment variables.
The struct
JobExecutionTemplate
, allows me to defined theContainers
andInit Containers
but not volumes. This is a deal breaker for me to use jobs.What did you expect or want to happen? Either i wanted to be able to just pass the arguements to the container in the job or able to also attach volume to the container job.
How can we reproduce it? Basically create a container job with volume and environment variables defined and try passing just the arguments to the container.
Anything we should know about your environment. I am running the job on dedicated workload profiles