mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-10 16:00:19 -04:00
image: allow toggling secure boot in image upload
This commit is contained in:
parent
c6ea596eb9
commit
3543fe140e
9 changed files with 74 additions and 41 deletions
|
@ -23,6 +23,7 @@ type commonFlags struct {
|
|||
pki string
|
||||
provider cloudprovider.Provider
|
||||
attestationVariant string
|
||||
secureBoot bool
|
||||
version versionsapi.Version
|
||||
timestamp time.Time
|
||||
region string
|
||||
|
@ -49,6 +50,10 @@ func parseCommonFlags(cmd *cobra.Command) (commonFlags, error) {
|
|||
if err != nil {
|
||||
return commonFlags{}, err
|
||||
}
|
||||
secureBoot, err := cmd.Flags().GetBool("secure-boot")
|
||||
if err != nil {
|
||||
return commonFlags{}, err
|
||||
}
|
||||
version, err := cmd.Flags().GetString("version")
|
||||
if err != nil {
|
||||
return commonFlags{}, err
|
||||
|
@ -97,6 +102,7 @@ func parseCommonFlags(cmd *cobra.Command) (commonFlags, error) {
|
|||
rawImage: rawImage,
|
||||
pki: pki,
|
||||
attestationVariant: attestationVariant,
|
||||
secureBoot: secureBoot,
|
||||
version: ver,
|
||||
timestamp: timestmp,
|
||||
region: region,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue