Skip to content

Commit

Permalink
Upgrade client/swagger.yaml to Firecracker 0.21.0's API definition
Browse files Browse the repository at this point in the history
There are a few breaking changes apparently.

Signed-off-by: Kazuyoshi Kato <[email protected]>
  • Loading branch information
kzys committed Mar 2, 2020
1 parent 5f3b54f commit 2437ebc
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 23 deletions.
2 changes: 1 addition & 1 deletion COPYRIGHT_HEADER
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ License is located at
or in the "license" file accompanying this file. This file is distributed
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
express or implied. See the License for the specific language governing
permissions and limitations under the License.
permissions and limitations under the License.
10 changes: 2 additions & 8 deletions client/models/instance_action_info.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions client/models/logger.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 1 addition & 10 deletions client/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ info:
The API is accessible through HTTP calls on specific URLs
carrying JSON modeled data.
The transport medium is a Unix Domain Socket.
version: 0.20.0
version: 0.21.0
termsOfService: ""
contact:
email: "[email protected]"
Expand Down Expand Up @@ -452,12 +452,9 @@ definitions:
description: Enumeration indicating what type of action is contained in the payload
type: string
enum:
- BlockDeviceRescan
- FlushMetrics
- InstanceStart
- SendCtrlAltDel
payload:
type: string

InstanceInfo:
type: object
Expand Down Expand Up @@ -511,12 +508,6 @@ definitions:
type: boolean
description: Whether or not to include the file path and line number of the log's origin.
default: false
options:
type: array
items:
type: string
description: Additional logging options. Only "LogDirtyPages" is supported.
default: []

MachineConfiguration:
type: object
Expand Down
1 change: 0 additions & 1 deletion machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,6 @@ func (m *Machine) setupLogging(ctx context.Context) error {
MetricsFifo: String(m.Cfg.MetricsFifo),
ShowLevel: Bool(true),
ShowLogOrigin: Bool(false),
Options: []string{},
}

_, err := m.client.PutLogger(ctx, &l)
Expand Down

0 comments on commit 2437ebc

Please sign in to comment.