@@ -44,38 +44,7 @@ type OpenStackNodeImage struct {
4444}
4545
4646// CreateOpts represents options used to create an image.
47- // CreateOpts attributes are taken from github.com/gophercloud/gophercloud/openstack/imageservice/v2/images.
48- // Consider.
49- type CreateOpts struct {
50- // Name is the name of the new image.
51- Name string `json:"name" yaml:"name" required:"true"`
52- // Id is the the image ID.
53- ID string `json:"id,omitempty" yaml:"id,omitempty"`
54- // Visibility defines who can see/use the image.
55- Visibility * images.ImageVisibility `json:"visibility,omitempty" yaml:"visibility,omitempty"`
56- // Hidden is whether the image is listed in default image list or not.
57- Hidden * bool `json:"os_hidden,omitempty" yaml:"os_hidden,omitempty"` //nolint:tagliatelle // OS API expects snake case query attrs
58- // Tags is a set of image tags.
59- Tags []string `json:"tags,omitempty" yaml:"tags,omitempty"`
60- // ContainerFormat is the format of the
61- // container. Valid values are ami, ari, aki, bare, and ovf.
62- ContainerFormat string `json:"container_format,omitempty" yaml:"container_format,omitempty"` //nolint:tagliatelle // OS API expects snake case query attrs
63- // DiskFormat is the format of the disk. If set,
64- // valid values are ami, ari, aki, vhd, vmdk, raw, qcow2, vdi,
65- // and iso.
66- DiskFormat string `json:"disk_format,omitempty" yaml:"disk_format,omitempty"` //nolint:tagliatelle // OS API expects snake case query attrs
67- // MinDisk is the amount of disk space in
68- // GB that is required to boot the image.
69- MinDisk int `json:"min_disk,omitempty" yaml:"min_disk,omitempty"` //nolint:tagliatelle // OS API expects snake case query attrs
70- // MinRAM is the amount of RAM in MB that
71- // is required to boot the image.
72- MinRAM int `json:"min_ram,omitempty" yaml:"min_ram,omitempty"` //nolint:tagliatelle // OS API expects snake case query attrs
73- // protected is whether the image is not deletable.
74- Protected * bool `json:"protected,omitempty" yaml:"protected,omitempty"`
75- // properties is a set of properties, if any, that
76- // are associated with the image.
77- Properties map [string ]string `json:"-" yaml:"-"`
78- }
47+ type CreateOpts images.CreateOpts
7948
8049// OpenStackNodeImageReleaseStatus defines the observed state of OpenStackNodeImageRelease.
8150type OpenStackNodeImageReleaseStatus struct {
0 commit comments