f.StringVar(&inst.keyFile,"key-file","","identify HTTPS client using this SSL key file")
f.StringVar(&inst.keyFile,"key-file","","identify HTTPS client using this SSL key file")
f.StringVar(&inst.caFile,"ca-file","","verify certificates of HTTPS-enabled servers using this CA bundle")
f.StringVar(&inst.caFile,"ca-file","","verify certificates of HTTPS-enabled servers using this CA bundle")
f.BoolVar(&inst.devel,"devel",false,"use development versions, too. Equivalent to version '>0.0.0-a'. If --version is set, this is ignored.")
f.BoolVar(&inst.devel,"devel",false,"use development versions, too. Equivalent to version '>0.0.0-a'. If --version is set, this is ignored.")
f.StringArrayVar(&inst.annotations,"annotations",[]string{},"set release annotations (can specify multiple or separate values with commas: key1=val1,key2=val2)")
returncmd
returncmd
}
}
@ -209,6 +211,11 @@ func (i *installCmd) run() error {
returnerr
returnerr
}
}
annotations,err:=parseAnnotations(i.annotations)
iferr!=nil{
returnerr
}
// If template is specified, try to run the template.
// If template is specified, try to run the template.
ifi.nameTemplate!=""{
ifi.nameTemplate!=""{
i.name,err=generateName(i.nameTemplate)
i.name,err=generateName(i.nameTemplate)
@ -245,7 +252,8 @@ func (i *installCmd) run() error {
f.StringVar(&upgrade.keyFile,"key-file","","identify HTTPS client using this SSL key file")
f.StringVar(&upgrade.keyFile,"key-file","","identify HTTPS client using this SSL key file")
f.StringVar(&upgrade.caFile,"ca-file","","verify certificates of HTTPS-enabled servers using this CA bundle")
f.StringVar(&upgrade.caFile,"ca-file","","verify certificates of HTTPS-enabled servers using this CA bundle")
f.BoolVar(&upgrade.devel,"devel",false,"use development versions, too. Equivalent to version '>0.0.0-a'. If --version is set, this is ignored.")
f.BoolVar(&upgrade.devel,"devel",false,"use development versions, too. Equivalent to version '>0.0.0-a'. If --version is set, this is ignored.")
f.StringArrayVar(&upgrade.annotations,"annotations",[]string{},"set release annotations (can specify multiple or separate values with commas: key1=val1,key2=val2)")