v0.5以前からのアップグレード
主な変更一覧
コマンド体系の変更
v0.5以前はautoscaler core startやautoscaler core validateのようにcoreサブコマンド配下にCoreの主要コマンドを配置していましたが、
v0.5ではautoscaler直下に各サブコマンドが配置されました。
$ autoscaler -h
autoscaler is a tool for managing the scale of resources on SAKURA cloud
Usage:
autoscaler [command]
Available Commands:
completion Generate completion script
example show configuration example
handlers A set of sub commands to manage autoscaler's external handlers
help Help about any command
inputs A set of sub commands to manage autoscaler's inputs
resources list target resources
start start autoscaler's core server
validate validate autoscaler's core configuration
version show version
従来のcoreサブコマンドは引き続き利用可能ですがv1.0リリース時に削除される予定です。
親子リソースの定義方法の変更
v0.5では親子リソースの定義方法が変更されました。
v0.5以前
resources:
- type: ELB
name: "elb"
selector:
names: ["example"]
resources:
- type: ServerGroup
name: "server-group"
zone: "is1a"
v0.5〜
resources:
- type: ServerGroup
name: "server-group"
zone: "is1a"
# 親リソースの定義
parent:
type: ELB
selector:
names: ["example"]
従来は親リソース側のresourcesフィールドで子リソースを定義していましたが、
v0.5以降は子リソース側のparentフィールドで親リソースを定義するようになりました。
セレクタの省略記法
一部のセレクタにおいて省略記法に対応しました。
parent:
type: ELB
selector: "example" #省略記法
selectorに文字列を指定するとnamesに単一要素のリストを指定するのと同等の意味合いになります。
parent:
type: ELB
# 先ほどの例と同等の指定を省略せずに書いた場合
selector:
names: ["example"]
この省略記法はコンフィギュレーションリファレンスでname_or_resource_selector型となっている項目で利用可能です。