flyctl

Command line tools for fly.io services

APACHE-2.0 License

Downloads
229
Stars
1.4K
Committers
180

Bot releases are hidden (Show)

flyctl - v0.0.511

Published by michaeldwan over 1 year ago

480c1791 use empty struct since we don't care about the signal value
b3885703 support using a specific signal to stop a machine
c9c2296b Put pg specific stuff in its own file
0c9dc842 Implement fixes and suggestions
84ca42c2 Fix error message on no machines
005d5372 Reuse flaps.ListFlyAppsMachines
8c467369 Don't factor in deleted machines as nodes
5d7e39fc More bugs
e3a01da1 We know the volume destination
5721ac2f Skip vols with nothing attached
50076046 Support scale up from zero
ec4cf568 Remove unused code and fix memory leak with golangci-lint
4e81739b Move v2 apps list filter to internal/machines/query.go
0632c5f2 Compute regions to act on
4972dae7 Better messages
41e1c4b7 Create and destroy machines according to scale plan
ad37211f Compute "scale count" differential actions
3639972e wip
a03c596b fly scale count for v2 apps
65e29c7b fix test cases
7836c3e8 Use old allocs to count
cde5b465 helpers.Clone: fix not actually cloning pointed-to values, just copying pointers
b3a36a5b Fix wording
bfc965f2 fix test cases
5bbed237 version update: don't prompt to update when updating
1f970237 version update: print what version you updated to
c38682f9 Better test unmanaged field propagation
d9f9fcd3 Make sure to disable readonly
8ee7868e Fix test typo
5810006b Propagate machine fields which can not be managed from fly.toml
a9368486 Add function docs
89ae31aa Test corner cases of updating a machine with mounts
4e4fd38b Port tests using resolveUpdateMachineConfig to each launchInput func
5305bcae test machine launchinput funcs
7457546b Retain metadata across deploys
e93d3dbd Move ProcessGroupsDiff to the file it is used
79466a93 remove shared volumeDestination
12ee538a reuse md.io and md.colorize
12d6fcf9 Split machine deployment preps from DeployMachinesApp
b4439e83 Use each of the launchInput functions instead of resolveUpdateMachineConfig
207d86a3 First step into decoupling machine updating
69cb8c07 Port machine update
fefba1f5 Validate release command is shell splittable
9f9bc6d6 Reuse release command from app config
99b19425 remove duplicate parts of release command config
7f09f955 Strip out release command config update
daa2df89 Checkpoint the split of machine deployments
7a52ca14 Add functions to convert appconfig to machine config
929f560c nil cmd instead of empty array
55e4be87 Fix linters
beee5cdc Setting validation and haproxy restarting
1ec46442 Fully bounce haproxies
9e0b4a2a Assume nomad for detached remote config
a78538b9 Clean up and get ready to release
5dd8a0b0 Remove unused columns from releases output for v2
3672d8eb Sort releases returned from API
1afced6f revert some things for simplicity, just get regions list in for appsv2
e32a04a1 Make it actually work :)
759f008d better aligned text
ea18edb7 make regions work for appsv2 and multi-pg apps
cef6cb5b put things in json
8c343ba3 Migrate nomad pg to v2
ba3635eb display regions per-process-group

flyctl - v0.0.510

Published by DAlperin over 1 year ago

What's Changed

Full Changelog: https://github.com/superfly/flyctl/compare/v0.0.509...v0.0.510

flyctl - v0.0.509

Published by michaeldwan over 1 year ago

88a5c270 Machines in "destroying" state are not active
1da560a2 Test process names for machines, nomad and detached platform
7d40207d rewrite DefaultProcessName in terms of ProcessNames
e5e1e40e scale: require --group if there are multiple process groups
62b1f8cd Fix 'flyctl pg import'
068a1248 Allow setting empty restart policies
eed1d9f3 Don't replace empty restart policy of existing machines
c3b2549c Explicitly distinguish between m run and m update
64f92eaa Use struct with determineMachineConfig
fb64e52d longer default expiry for deploy tokens

flyctl - v0.0.508

Published by michaeldwan over 1 year ago

89d29502 deploy: use MachinePresets directly instead of mg.SetSize
6fc6d54b typo fix
f53090c6 add tests to Clone
f343156b fix outdated comment
4bac68c6 add helpers.Clone, use that for machine config and guest cloning
b89ca699 no need for alias
f10f64e6 Redo JSON and TOML marshaling
1b1c9b33 deploy: cleanup release cmd guest selection
057afe0e deploy: remove references to flag that no longer exists
0c100609 deploy: use most ram instead of least, steal whole guest config
7214d2bc deploy: pull release command memory from deployed app machines
463f0c22 fix tests and potential segfault in configureLaunchInputForReleaseCommand
ea127569 deploy: add --release-command-memory flag to set release cmd ram
c9e0006f Serialize nomad config
c7ede330 reuse default ssh username const
51ea3c54 Add --user flag to more fly ssh commands

flyctl - v0.0.507

Published by michaeldwan over 1 year ago

1900efae page app list
f595081b optionally get list limited to org slug
c058e7bb Parse check headers format seen in nomad PG apps
cefe9e9a Update internal/command/command.go
7445ea77 update node version to 18
a1794ea0 Pass machine lease nonce on Destroy call
ce2b3919 Add nonce to machine destroy
51f5abea fix: wording
11807b57 fix: error messaging
abb21923 fix: validate app config
5d8b3af2 Remove log
2ea51429 Add support for max_replication_slots
aad451a2 Allow max_replication_slots to be configured

flyctl - v0.0.506

Published by michaeldwan over 1 year ago

a19667a5 remove FIXME
94ac8d80 Add preflight test for migrate-to-v2 command
f865e7cc assert -> require
2d5c15c9 unhide migrate-to-v2 command
55744e90 Sort "fly scale show" output by group name
7b9af263 Update preflight to expect a *bool for DisableMachineAutostart
8ce79921 deploy: only say "finished launching new machines" if machines were launched
ff9cb21c deploy: make the log a little bit less redundant, less confusing
a14b89ef migrate: wait for machines after launching them, fix a nasty race condition
51f15a2c fix tests
8e465254 Fix deployment image release bug
4a6793e3 use api.Pointer instead of deref
eea2c7a0 work with pointer type
971ce537 use pointer types
9b08b53d do not make fields omitempty
2cefad22 add fly_proxy config option in machines config
f75c24ce Add --primary-region flag to migrate-to-v2 command
8798542c migrate: remove outdated todo
75fdd0a3 migrate: write fly.toml, so that primary_region gets saved
bbd87639 migrate: move resumeApp to after unlock, logging cleanup
bd1ee239 migrate: attempt to resume suspended app in rollback
cb7c6b94 migrate: use nomad VM's memory size
2987700c migrate: appease CI, remove unnecessary sprintf
20d76adc migrate: unlock the app after rollback, even if rollback fails
9a60e70b migrate: prompt for primary_region if there is none
70e4db35 migrate: determine VM info (memory, cpus, cpu class)
c948b605 migrate: prompt before migrating, --yes to silence
92cdf876 migrate: support --app flag
25075612 use buffered channel
fdf5eb97 migrate: remove machines if migration fails
00ed2590 migrate: hook into ctrl+c (sigterm) to ensure valid state
52311428 support the 'detached' platform version
f316ddfc migrate: add rollback support
4148ad86 remove unused function stub, make ci happy
68926951 migrate: avoid downtime when possible
b218d1d9 Fix v2 migrations process group support
2a5814dc Use tasknames from old allocs to determine process groups
03fcb9a4 Fix text block
4303b529 Better output for v2 migrations
ecb4367a migrate: exit if the app is already on machines
44756498 migrate: wait for allocs to be destroyed
69935bbd migrate: scale down each process group
4a811983 migrate: prevent error message output during success
57520115 handle double unlocking
05a67e91 placeholder for scaling nomad app down to zero
4e94a2a8 Don't set a release until after changing the platform, and add some helpful output showing steps
08e19864 linter fix
41c7d2ca Update internal/appconfig/config.go
dca8d56c migration: implement SetPlatformVersion mutation
2fcc9417 migration: implement LockApp and UnlockApp mutations
5e0ebe60 New command: fly migrate-to-v2

flyctl - v0.0.505

Published by michaeldwan over 1 year ago

909daf2f set (don't append) authorization header
5dc6db0a fix: Remove unused types
e12bb7ba fix: feedback
a833f014 fix: Add feedback
8acd8b02 Update internal/command/platform/status.go
b0e2e642 Update internal/command/platform/status.go
80d20b32 feat: Enable filtering for json view
5b50649d fix/cleanup
74dcfc4a fix/enable-status-json

flyctl - v0.0.505-pre-3

Published by michaeldwan over 1 year ago

fa8968d6 migrate: wait for machines after launching them, fix a nasty race condition
f0d61d8e Add --primary-region flag to migrate-to-v2 command

flyctl - v0.0.505-pre-2

Published by michaeldwan over 1 year ago

c46c9db2 Revert "respect FLY_FORCE_TRACE for all graphql calls"

flyctl - v0.0.505-pre-1

Published by michaeldwan over 1 year ago

8798542c migrate: remove outdated todo
75fdd0a3 migrate: write fly.toml, so that primary_region gets saved
bbd87639 migrate: move resumeApp to after unlock, logging cleanup
bd1ee239 migrate: attempt to resume suspended app in rollback
cb7c6b94 migrate: use nomad VM's memory size
2987700c migrate: appease CI, remove unnecessary sprintf
20d76adc migrate: unlock the app after rollback, even if rollback fails
9a60e70b migrate: prompt for primary_region if there is none
70e4db35 migrate: determine VM info (memory, cpus, cpu class)
c948b605 migrate: prompt before migrating, --yes to silence
92cdf876 migrate: support --app flag
25075612 use buffered channel
fdf5eb97 migrate: remove machines if migration fails
00ed2590 migrate: hook into ctrl+c (sigterm) to ensure valid state
52311428 support the 'detached' platform version
f316ddfc migrate: add rollback support
4148ad86 remove unused function stub, make ci happy
68926951 migrate: avoid downtime when possible
b218d1d9 Fix v2 migrations process group support
2a5814dc Use tasknames from old allocs to determine process groups
03fcb9a4 Fix text block
4303b529 Better output for v2 migrations
ecb4367a migrate: exit if the app is already on machines
44756498 migrate: wait for allocs to be destroyed
69935bbd migrate: scale down each process group
4a811983 migrate: prevent error message output during success
57520115 handle double unlocking
05a67e91 placeholder for scaling nomad app down to zero
4e94a2a8 Don't set a release until after changing the platform, and add some helpful output showing steps
08e19864 linter fix
41c7d2ca Update internal/appconfig/config.go
dca8d56c migration: implement SetPlatformVersion mutation
2fcc9417 migration: implement LockApp and UnlockApp mutations
5e0ebe60 New command: fly migrate-to-v2

flyctl - v0.0.504

Published by michaeldwan over 1 year ago

dccffeee Fix a crash when fly deploy has to pull config from remote machine
008a08e9 Allow SSH sessions to be forcibly closed
3069b051 skip GO-S2307 for a Close() call
c5f17339 Take TERM for SSH from local environment on Unix
bd9901f7 Don't allocate PTYs when a command is specified
91817171 Make SSH PTY allocation optional
ba10645c Rename Mode to TermEnv
dcaa03e9 Rename ssh.Terminal to ssh.SessionIO
d9c4bcc5 Close SSH stdin when terminal stdin ends
5b1f7f29 Remove unused FdWriteCloser type
9c42a165 respect FLY_FORCE_TRACE for all graphql calls
4affe68c don't query unecessary data about limited access token

flyctl - v0.0.504-pre-3

Published by michaeldwan over 1 year ago

75fdd0a3 migrate: write fly.toml, so that primary_region gets saved
bbd87639 migrate: move resumeApp to after unlock, logging cleanup
bd1ee239 migrate: attempt to resume suspended app in rollback
cb7c6b94 migrate: use nomad VM's memory size
2987700c migrate: appease CI, remove unnecessary sprintf
20d76adc migrate: unlock the app after rollback, even if rollback fails
9a60e70b migrate: prompt for primary_region if there is none
70e4db35 migrate: determine VM info (memory, cpus, cpu class)
c948b605 migrate: prompt before migrating, --yes to silence
92cdf876 migrate: support --app flag

flyctl - v0.0.504-pre-2

Published by michaeldwan over 1 year ago

4affe68c don't query unecessary data about limited access token

flyctl - v0.0.504-pre-1

Published by michaeldwan over 1 year ago

25075612 use buffered channel
fdf5eb97 migrate: remove machines if migration fails
00ed2590 migrate: hook into ctrl+c (sigterm) to ensure valid state
52311428 support the 'detached' platform version
f316ddfc migrate: add rollback support
4affe68c don't query unecessary data about limited access token
4148ad86 remove unused function stub, make ci happy
68926951 migrate: avoid downtime when possible
b218d1d9 Fix v2 migrations process group support
2a5814dc Use tasknames from old allocs to determine process groups
03fcb9a4 Fix text block
4303b529 Better output for v2 migrations
ecb4367a migrate: exit if the app is already on machines
44756498 migrate: wait for allocs to be destroyed
69935bbd migrate: scale down each process group
4a811983 migrate: prevent error message output during success
57520115 handle double unlocking
05a67e91 placeholder for scaling nomad app down to zero
4e94a2a8 Don't set a release until after changing the platform, and add some helpful output showing steps
08e19864 linter fix
41c7d2ca Update internal/appconfig/config.go
dca8d56c migration: implement SetPlatformVersion mutation
2fcc9417 migration: implement LockApp and UnlockApp mutations
5e0ebe60 New command: fly migrate-to-v2

flyctl - v0.0.503

Published by michaeldwan over 1 year ago

23e943ce Test MachineGuest.ToSize()
c0c2d9c2 test region formatter
0db7a8b5 Show region counts
c30a7f45 use string formatting
e1c93c61 remove unused type and move unit to row
e26324c8 Implement fly scale show, vm and memory
2e08587e Check for valid machine cpu kind on machine.Update

flyctl - v0.0.502

Published by michaeldwan over 1 year ago

589f00bc Remove the other instance where RawDefinition can be nil
cd44b002 Fix "fly deploy" when fetching config from a remote machine

flyctl - v0.0.501

Published by michaeldwan over 1 year ago

fb2fea0a Also wait for service checks when updating machines
49141817 fix: Add latlon to gql query
a12cfaf8 ips list: support json output

flyctl - v0.0.500

Published by michaeldwan over 1 year ago

81bad034 flyctl tokens create deploy
e33e5008 image builder: prevent close-after-close on channel
dbd4ba2d Pass LOG_LEVEL through to wireguard client
f5b639ea Allow connection attempts over agent tunnels to be cancelled
5417e8c5 Simplify the switch statements Fix variable declarations
7014a623 add test for getters and update getter
00fcdf84 patch docker scanner
48d03e88 Warn about http_service fly.toml section for Nomad apps
07ed6596 maintain extra info and ensure build validation runs on both platforms
d38aa8e3 Add v1 and v2 config validators
82a3e4bf Get rid of nested ifs
0b5f6a15 print platform
7017ef70 Fixes
466b6112 Get platform version from config version
2f411f30 cleanup output
b9129f60 test
3a67fefc Log the warning
be082037 replace failure with sentry exception
9964513c remove experimental features not implemented for apps v2
52717bdb Factor out some code to make logic flow cleaner
98ae88e8 Warn when ignoring local dockerfile
d46b1b1c move to validation
2290f55b Warn if multiple build strategies are found
2c6afac8 Add a more useful help message
6fb294bf Update to only count volumes with the same name
1ffd944e Add warnings to the delete side as well
f7a52c6d Warn users about volumes

flyctl - v0.0.500-pre-1

Published by michaeldwan over 1 year ago

7c375236 close the docker client to close the connections
07ed6596 maintain extra info and ensure build validation runs on both platforms
d38aa8e3 Add v1 and v2 config validators
0b5f6a15 print platform
7017ef70 Fixes
466b6112 Get platform version from config version
2f411f30 cleanup output
b9129f60 test
3a67fefc Log the warning
be082037 replace failure with sentry exception
9964513c remove experimental features not implemented for apps v2
98ae88e8 Warn when ignoring local dockerfile
d46b1b1c move to validation
2290f55b Warn if multiple build strategies are found

flyctl - v0.0.499

Published by michaeldwan over 1 year ago

23b902ce Set a default node version to satisfy node-build
24ade443 don't clobber access_token in config with one from env