Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
- instance snapshot show: now displays the Application Consistent Snapshot Enabled field
- instance-template register: added support for the new --application-consistent-snapshot-enabled flag
- instance-template show: now displays the Application Consistent Snapshot Enabled field

- dedicated-inference/deployment logs: support for --tail

### Bug fixes
- fix(instance): create instance with an IPv6 #788
- dedicated-inference/deployment logs: works again even without the --tail argument

### Breaking changes
- instance create: merge --ipv6 and --private-instance into --public-ip #788
Expand Down
9 changes: 8 additions & 1 deletion cmd/aiservices/deployment/deployment_logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type DeploymentLogsCmd struct {

Deployment string `cli-arg:"#" cli-usage:"ID or NAME"`
Zone v3.ZoneName `cli-short:"z" cli-usage:"zone"`
Tail int64 `cli-usage:"number of lines to tail (default 10)"`
}

func (c *DeploymentLogsCmd) CmdAliases() []string { return nil }
Expand All @@ -28,6 +29,7 @@ func (c *DeploymentLogsCmd) CmdPreRun(cmd *cobra.Command, args []string) error {
exocmd.CmdSetZoneFlagFromDefault(cmd)
return exocmd.CliCommandDefaultPreRun(c, cmd, args)
}

func (c *DeploymentLogsCmd) CmdRun(_ *cobra.Command, _ []string) error {
ctx := exocmd.GContext
client, err := exocmd.SwitchClientZoneV3(ctx, globalstate.EgoscaleV3Client, c.Zone)
Expand All @@ -46,7 +48,12 @@ func (c *DeploymentLogsCmd) CmdRun(_ *cobra.Command, _ []string) error {
}
id := entry.ID

resp, err := client.GetDeploymentLogs(ctx, id)
tail := c.Tail
if tail <= 0 {
tail = 10
}

resp, err := client.GetDeploymentLogs(ctx, id, v3.GetDeploymentLogsWithTail(tail))
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/dbaas/dbaas_create_mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (c *dbaasServiceCreateCmd) createMysql(_ *cobra.Command, _ []string) error
}

if c.MysqlAdminPassword != "" {
databaseService.AdminPassword = c.MysqlAdminPassword
databaseService.AdminPassword = v3.DBAASMysqlUserPassword(c.MysqlAdminPassword)
}

if c.MysqlAdminUsername != "" {
Expand Down
2 changes: 1 addition & 1 deletion cmd/dbaas/dbaas_user_reset_mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (c *dbaasUserResetCmd) resetMysql(cmd *cobra.Command, _ []string) error {
req := v3.ResetDBAASMysqlUserPasswordRequest{}

if c.Password != "" {
req.Password = v3.DBAASUserPassword(c.Password)
req.Password = v3.DBAASMysqlUserPassword(c.Password)
}
if c.MysqlAuthenticationMethod != "" {
req.Authentication = v3.EnumMysqlAuthenticationPlugin(c.MysqlAuthenticationMethod)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require (
github.com/aws/aws-sdk-go-v2/service/s3 v1.2.0
github.com/aws/smithy-go v1.1.0
github.com/dustin/go-humanize v1.0.1
github.com/exoscale/egoscale/v3 v3.1.34-0.20260107090256-18aa51606080
github.com/exoscale/egoscale/v3 v3.1.34-0.20260204205607-841b140c4adc
github.com/exoscale/openapi-cli-generator v1.2.0
github.com/fatih/camelcase v1.0.0
github.com/hashicorp/go-multierror v1.1.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.
github.com/envoyproxy/go-control-plane v0.10.1/go.mod h1:AY7fTTXNdv/aJ2O5jwpxAPOWUZ7hQAEvzN5Pf27BkQQ=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/envoyproxy/protoc-gen-validate v0.6.2/go.mod h1:2t7qjJNvHPx8IjnBOzl9E9/baC+qXE/TeeyBRzgJDws=
github.com/exoscale/egoscale/v3 v3.1.34-0.20260107090256-18aa51606080 h1:oQptChlHoTy/rh/hoDmmH4hLGMZ7Qp/N2jdOaeIkBQo=
github.com/exoscale/egoscale/v3 v3.1.34-0.20260107090256-18aa51606080/go.mod h1:0iY8OxgHJCS5TKqDNhwOW95JBKCnBZl3YGU4Yt+NqkU=
github.com/exoscale/egoscale/v3 v3.1.34-0.20260204205607-841b140c4adc h1:afmNeED0XhllWEfNRLrwJ1UjHrPoZXC1E8HVLpkOf0Y=
github.com/exoscale/egoscale/v3 v3.1.34-0.20260204205607-841b140c4adc/go.mod h1:0iY8OxgHJCS5TKqDNhwOW95JBKCnBZl3YGU4Yt+NqkU=
github.com/exoscale/openapi-cli-generator v1.2.0 h1:xgTff1bInBP+JZCauD7Jq9GNBFoKK31Cnv5FIAcxtrk=
github.com/exoscale/openapi-cli-generator v1.2.0/go.mod h1:TZBnbT7f3hJ5ImyUphJwRM+X5xF/zCQZ6o8a42gQeTs=
github.com/fatih/camelcase v1.0.0 h1:hxNvNX/xYBp0ovncs8WyWZrOrpBNub/JfaMvbURyft8=
Expand Down
61 changes: 61 additions & 0 deletions vendor/github.com/exoscale/egoscale/v3/README.md

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

10 changes: 8 additions & 2 deletions vendor/github.com/exoscale/egoscale/v3/errors.go

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

94 changes: 83 additions & 11 deletions vendor/github.com/exoscale/egoscale/v3/operations.go

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

Loading