Skip to content

DiskOffering in CloudStackMachine CRD should be a pointer to CloudStackResourceDiskOffering #326

Open
@hrak

Description

@hrak

/kind bug

What steps did you take and what happened:
[A clear and concise description of what the bug is.]

DiskOffering is an optional field in the CloudStackMachine CRD. It is currently defined as:

	// CloudStack disk offering to use.
	// +optional
	DiskOffering CloudStackResourceDiskOffering `json:"diskOffering,omitempty"`

This can lead to unnecessary reconciliations or even unintended behavior when this field is omitted from a yaml definition, because the entire structure will be included in the final object definition with its default values:

spec:
  diskOffering:
    customSizeInGB: 0
    device: ""
    filesystem: ""
    label: ""
    mountPath: ""
  failureDomainName: failure-domain-1
  offering:
    name: Medium Instance (8 GB / 4 CPU)
  sshKey: h.rakers-ed25519

DiskOffering should be changed to *CloudStackResourceDiskOffering to comply with the Kubernetes API conventions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions