github UpCloudLtd/upcloud-cli v3.0.0

latest releases: v3.22.0, v3.21.0, v3.20.2...
23 months ago

This release updates output of show and list commands to return the API response as defined in the UpCloud Go SDK. See below for detailed list of changes.

In addition, kubernetes create will now, by default, block all access to the cluster. To be able to connect to the cluster, define list of allowed IP addresses and/or CIDR blocks or allow access from any IP.

Added

  • Breaking: Add --kubernetes-api-allow-ip argument to kubernetes create command. This changes default behavior from allow access from any IP to block access from all IPs. To be able to connect to the cluster, define list of allowed IP addresses and/or CIDR blocks or allow access from any IP.
  • Add Kubernetes API allowed IPs field to kubernetes show output.
  • Add kubernetes nodegroup show for displaying node-group details. This also adds Nodes table and Anti-affinity field that were not available in previous kubernetes show output.
  • Add kubernetes modify command for modifying IP addresses that are allowed to access cluster's Kubernetes API.
  • Add Kubernetes API allowed IPs field to kubernetes show output.
  • Add database session list for listing active database sessions.
  • Add database session cancel for cancelling an active database session.

Changed

  • Breaking: In JSON and YAML output of database list: return the full API response. Value of title is not replaced with value from name, if title is empty.
  • Breaking: In JSON and YAML output of database types: return the full API response. This changes the top level datatype from list to object, where keys are the available database type, e.g., pg and mysql.
  • Breaking: In JSON and YAML output of ip-address list: return the full API response. This changes partofplan key to part_of_plan and ptrrecord key to ptr_record. The top level data-type changes from list to object.
  • Breaking: In JSON and YAML output of loadbalancer list: return the full API response. This changes state field to operational_state.
  • Breaking: In JSON and YAML output of network list and network show: return the full API response. Servers list will only contain server UUID and name. In network list output, the top level data-type changes from list to object.
  • Breaking: In JSON and YAML output of server list and server show: return the full API response. This changes field host_id to host. nics is replaced with networking subfield interfaces. storage is replaced with storage_devices. labels contain subfield label which in turn contains the labels. In server list output, the top level data-type changes from list to object.
  • Breaking: In JSON and YAML output of server firewall show: return the full API response. This removes fields destination and source fields in favor of [destination|source]_address_start, [destination|source]_address_end, [destination|source]_port_start and [destination|source]_port_end.
  • Breaking: In JSON and YAML output of server plans: return the full API response. The top level data-type changes from list to object.
  • Breaking: In JSON and YAML output of storage list and storage show: return the full API response. This changes servers field to contain server field, which in turn contains the servers. labels field will not be outputted if empty. In storage list output, the top level data-type changes from list to object.
  • Breaking: In JSON and YAML output of zone list: return the full API response. The top level data-type changes from list to object.
  • In JSON and YAML output of kubernetes list: return the full API response.
  • In human readable output of kubernetes show command, show node-groups as table. Node-group details are available with kubernetes nodegroup show command.

Fixed

  • Breaking: In JSON and YAML output of ip-address show: use same JSON keys as in API documentation. This removes credits key that was used in place of floating.

Removed

  • Breaking: Remove database connection list and database connection cancel commands in favor of database session counterparts
  • Breaking: In JSON and YAML output of database properties * show: pass-through the API response. This removes key field from the output.

Don't miss a new upcloud-cli release

NewReleases is sending notifications on new releases.