Skip to content

Commit 22687dd

Browse files
committed
feat(apple-silicon): add environmental impact informations to server-type list
fix(inference): attach private network (scaleway#4524) chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> feat(audit_trail): add account user and organization resources (scaleway#4717) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Laure-di <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jonathan R. <[email protected]> chore: bump sdk (scaleway#4751) Co-authored-by: Rémy Léone <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> fix golangci linter chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore: bump sdk (scaleway#4751) Co-authored-by: Rémy Léone <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore: bump sdk (scaleway#4751) Co-authored-by: Rémy Léone <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore: bump sdk (scaleway#4751) Co-authored-by: Rémy Léone <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (scaleway#4567) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(secret_manager): display restore methods (scaleway#4597) Co-authored-by: Jonathan R. <[email protected]> chore update go tests: register cassette
1 parent f71102f commit 22687dd

File tree

5 files changed

+390
-53
lines changed

5 files changed

+390
-53
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.24.0
44

55
require (
66
github.com/aws/aws-sdk-go-v2 v1.36.5
7-
github.com/aws/aws-sdk-go-v2/service/s3 v1.82.0
7+
github.com/aws/aws-sdk-go-v2/service/s3 v1.80.3
88
github.com/buildpacks/pack v0.34.2
99
github.com/c-bata/go-prompt v0.2.6
1010
github.com/charmbracelet/bubbletea v1.3.5
@@ -14,7 +14,7 @@ require (
1414
github.com/docker/docker v27.5.1+incompatible
1515
github.com/dustin/go-humanize v1.0.1
1616
github.com/fatih/color v1.18.0
17-
github.com/getsentry/sentry-go v0.34.0
17+
github.com/getsentry/sentry-go v0.33.0
1818
github.com/ghodss/yaml v1.0.0
1919
github.com/gorilla/websocket v1.5.3
2020
github.com/hashicorp/go-version v1.7.0

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17 h1:t0E6FzRE
9090
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17/go.mod h1:ygpklyoaypuyDvOM5ujWGrYWpAK3h7ugnmKCU/76Ys4=
9191
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.17 h1:qcLWgdhq45sDM9na4cvXax9dyLitn8EYBRl8Ak4XtG4=
9292
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.17/go.mod h1:M+jkjBFZ2J6DJrjMv2+vkBbuht6kxJYtJiwoVgX4p4U=
93-
github.com/aws/aws-sdk-go-v2/service/s3 v1.82.0 h1:JubM8CGDDFaAOmBrd8CRYNr49ZNgEAiLwGwgNMdS0nw=
94-
github.com/aws/aws-sdk-go-v2/service/s3 v1.82.0/go.mod h1:kUklwasNoCn5YpyAqC/97r6dzTA1SRKJfKq16SXeoDU=
93+
github.com/aws/aws-sdk-go-v2/service/s3 v1.80.3 h1:jBOwbbIQlfZG079E0YEnfipULNr7wnXbG2gwJyG9hrc=
94+
github.com/aws/aws-sdk-go-v2/service/s3 v1.80.3/go.mod h1:kUklwasNoCn5YpyAqC/97r6dzTA1SRKJfKq16SXeoDU=
9595
github.com/aws/aws-sdk-go-v2/service/sso v1.20.2 h1:XOPfar83RIRPEzfihnp+U6udOveKZJvPQ76SKWrLRHc=
9696
github.com/aws/aws-sdk-go-v2/service/sso v1.20.2/go.mod h1:Vv9Xyk1KMHXrR3vNQe8W5LMFdTjSeWk0gBZBzvf3Qa0=
9797
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.2 h1:pi0Skl6mNl2w8qWZXcdOyg197Zsf4G97U7Sso9JXGZE=
@@ -230,8 +230,8 @@ github.com/gdamore/encoding v1.0.0 h1:+7OoQ1Bc6eTm5niUzBa0Ctsh6JbMW6Ra+YNuAtDBdk
230230
github.com/gdamore/encoding v1.0.0/go.mod h1:alR0ol34c49FCSBLjhosxzcPHQbf2trDkoo5dl+VrEg=
231231
github.com/gdamore/tcell/v2 v2.7.4 h1:sg6/UnTM9jGpZU+oFYAsDahfchWAFW8Xx2yFinNSAYU=
232232
github.com/gdamore/tcell/v2 v2.7.4/go.mod h1:dSXtXTSK0VsW1biw65DZLZ2NKr7j0qP/0J7ONmsraWg=
233-
github.com/getsentry/sentry-go v0.34.0 h1:1FCHBVp8TfSc8L10zqSwXUZNiOSF+10qw4czjarTiY4=
234-
github.com/getsentry/sentry-go v0.34.0/go.mod h1:C55omcY9ChRQIUcVcGcs+Zdy4ZpQGvNJ7JYHIoSWOtE=
233+
github.com/getsentry/sentry-go v0.33.0 h1:YWyDii0KGVov3xOaamOnF0mjOrqSjBqwv48UEzn7QFg=
234+
github.com/getsentry/sentry-go v0.33.0/go.mod h1:C55omcY9ChRQIUcVcGcs+Zdy4ZpQGvNJ7JYHIoSWOtE=
235235
github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk=
236236
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
237237
github.com/gliderlabs/ssh v0.3.8 h1:a4YXD1V7xMF9g5nTkdfnja3Sxy1PVDCj1Zg4Wb8vY6c=

internal/namespaces/applesilicon/v1alpha1/custom_server_types.go

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ package applesilicon
33
import (
44
"context"
55
"fmt"
6+
"strings"
67

78
"github.com/fatih/color"
89
"github.com/scaleway/scaleway-cli/v2/core"
910
"github.com/scaleway/scaleway-cli/v2/core/human"
1011
applesilicon "github.com/scaleway/scaleway-sdk-go/api/applesilicon/v1alpha1"
12+
productcatalog "github.com/scaleway/scaleway-sdk-go/api/product_catalog/v2alpha1"
1113
)
1214

1315
var serverTypeStockMarshalSpecs = human.EnumMarshalSpecs{
@@ -51,6 +53,12 @@ func memoryMarshalerFunc(i any, _ *human.MarshalOpt) (string, error) {
5153
return capacityStr, nil
5254
}
5355

56+
type customServerType struct {
57+
*applesilicon.ServerType
58+
KgCo2Equivalent *float32 `json:"kg_co2_equivalent"`
59+
M3WaterUsage *float32 `json:"m3_water_usage"`
60+
}
61+
5462
func serverTypeBuilder(c *core.Command) *core.Command {
5563
c.View = &core.View{
5664
Fields: []*core.ViewField{
@@ -78,6 +86,14 @@ func serverTypeBuilder(c *core.Command) *core.Command {
7886
Label: "Minimum Lease Duration",
7987
FieldName: "MinimumLeaseDuration",
8088
},
89+
{
90+
Label: "CO2 (kg/day)",
91+
FieldName: "KgCo2Equivalent",
92+
},
93+
{
94+
Label: "Water (m³/day)",
95+
FieldName: "M3WaterUsage",
96+
},
8197
},
8298
}
8399

@@ -88,9 +104,47 @@ func serverTypeBuilder(c *core.Command) *core.Command {
88104
return nil, err
89105
}
90106

91-
versionsResponse := originalRes.(*applesilicon.ListServerTypesResponse)
107+
client := core.ExtractClient(ctx)
108+
109+
req := argsI.(*applesilicon.ListServerTypesRequest)
110+
serverTypes := originalRes.(*applesilicon.ListServerTypesResponse).ServerTypes
111+
112+
productAPI := productcatalog.NewPublicCatalogAPI(client)
113+
environmentalImpact, err := productAPI.ListPublicCatalogProducts(
114+
&productcatalog.PublicCatalogAPIListPublicCatalogProductsRequest{
115+
ProductTypes: []productcatalog.ListPublicCatalogProductsRequestProductType{
116+
productcatalog.ListPublicCatalogProductsRequestProductTypeAppleSilicon,
117+
},
118+
Zone: &req.Zone,
119+
},
120+
)
121+
if err != nil {
122+
return nil, err
123+
}
124+
125+
impactMap := make(map[string]*productcatalog.PublicCatalogProduct)
126+
for _, impact := range environmentalImpact.Products {
127+
if impact != nil {
128+
key := strings.TrimSpace(strings.TrimPrefix(impact.Product, "Mac Mini "))
129+
key = strings.ReplaceAll(key, " - ", "-")
130+
impactMap[key] = impact
131+
}
132+
}
133+
134+
var customServerTypeList []customServerType
135+
for _, severType := range serverTypes {
136+
impact, ok := impactMap[severType.Name]
137+
if !ok {
138+
continue
139+
}
140+
customServerTypeList = append(customServerTypeList, customServerType{
141+
ServerType: severType,
142+
KgCo2Equivalent: impact.EnvironmentalImpactEstimation.KgCo2Equivalent,
143+
M3WaterUsage: impact.EnvironmentalImpactEstimation.M3WaterUsage,
144+
})
145+
}
92146

93-
return versionsResponse.ServerTypes, nil
147+
return customServerTypeList, nil
94148
},
95149
)
96150

0 commit comments

Comments
 (0)