Open clement128 opened 4 years ago
hi @ChenTanyi could you pls have a quick look?
@clement128 Maybe it was the stage design error. You can use inner model to workaround it. example:
var aciCreate = azure.ContainerGroups.Define(aciName)
.WithRegion(Region.USWest)
.WithNewResourceGroup(rgName)
.WithLinux()
.WithPublicImageRegistryOnly()
.WithoutVolume()
.DefineContainerInstance("nginx")
.WithImage("nginx")
.WithoutPorts()
.Attach()
Dictionary<string, string> secret = new Dictionary<string, string>();
(aciCreate as IContainerGroup).Inner.Volumes.Add(new Volume(name: "random", secret: secret));
aciCreate.Create();
or use the whole inner if you want
azure.ContainerGroups.Inner.CreateOrUpdateAsync();
Query/Question I would like to enable a TLS endpoint in a sidecar container, but can't find a way to add a secrets volume. There is a definition here but seems can't be use.
Why is this not a Bug or a feature Request? I found a definition for secrets volume but just not sure how to use it.
Setup (please complete the following information if applicable):
version 1.33.0
Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report