Add support for freeform tagging of images
This commit is contained in:
parent
be6f4ae8b7
commit
cc7d4e4a95
|
@ -62,6 +62,9 @@ type Config struct {
|
|||
// Networking
|
||||
SubnetID string `mapstructure:"subnet_ocid"`
|
||||
|
||||
// Tagging
|
||||
Tags map[string]string `mapstructure:"tags"`
|
||||
|
||||
ctx interpolate.Context
|
||||
}
|
||||
|
||||
|
|
|
@ -80,6 +80,7 @@ func (d *driverOCI) CreateImage(ctx context.Context, id string) (core.Image, err
|
|||
CompartmentId: &d.cfg.CompartmentID,
|
||||
InstanceId: &id,
|
||||
DisplayName: &d.cfg.ImageName,
|
||||
FreeformTags: d.cfg.Tags,
|
||||
}})
|
||||
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue