syself / cluster-api-provider-hetzner

Cluster API Provider Hetzner :rocket: The best way to manage Kubernetes clusters on Hetzner, fully declarative, Kubernetes-native and with self-healing capabilities
https://caph.syself.com
Apache License 2.0
619 stars 58 forks source link

Remove whitespace at the end of storage.vendor (hbmh) #1279

Closed yrs147 closed 5 months ago

yrs147 commented 5 months ago

/kind bug

What steps did you take and what happened: I saw whitespace at the end of storage.vendor of HBHM.

k edit hbmh ...

  storage:
  - hctl: "0:0:0:0"
    model: Micron_1100_MTFDDAK256TBN
    name: sda
    serialNumber: 17151756C36D
    sizeBytes: 256060514304
    sizeGB: 256
    vendor: 'ATA     '      <<<--------------------------
    wwn: "0x500a07511756c36d"

Please change the Go code, so that trailing (or leading) whitespace gets removed (for new storage entries, no need to update existing entries).

What did you expect to happen:

Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]

Environment: