Skip to content

Commit

Permalink
Add update subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
sclevine committed Oct 31, 2024
1 parent 4429a58 commit 4fe77c2
Show file tree
Hide file tree
Showing 13 changed files with 638 additions and 53 deletions.
1 change: 1 addition & 0 deletions lib/autoupdate/agent/installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ func tryLink(oldname, newname string) (orig string, err error) {
if orig == oldname {
return "", nil
}
// TODO(sclevine): verify oldname is valid binary
err = renameio.Symlink(oldname, newname)
if err != nil {
return orig, trace.Wrap(err)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: v1
kind: update_config
spec:
proxy: localhost
group: ""
url_template: https://example.com
enabled: true
status:
active_version: 16.3.0
backup_version: old-version
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: v1
kind: update_config
spec:
proxy: localhost
group: ""
url_template: https://example.com
enabled: true
status:
active_version: 16.3.0
backup_version: backup-version
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: v1
kind: update_config
spec:
proxy: localhost
group: ""
url_template: https://example.com
enabled: true
status:
active_version: 16.3.0
backup_version: old-version
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: v1
kind: update_config
spec:
proxy: localhost
group: group
url_template: https://example.com
enabled: false
status:
active_version: old-version
backup_version: ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: v1
kind: update_config
spec:
proxy: localhost
group: group
url_template: https://example.com
enabled: false
status:
active_version: old-version
backup_version: ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: v1
kind: update_config
spec:
proxy: localhost
group: group
url_template: https://example.com
enabled: true
status:
active_version: 16.3.0
backup_version: old-version
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: v1
kind: update_config
spec:
proxy: localhost
group: group
url_template: https://example.com
enabled: true
status:
active_version: old-version
backup_version: ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: v1
kind: update_config
spec:
proxy: localhost
group: ""
url_template: https://example.com
enabled: true
status:
active_version: 16.3.0
backup_version: ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: v1
kind: update_config
spec:
proxy: localhost
group: ""
url_template: https://example.com
enabled: true
status:
active_version: 16.3.0
backup_version: ""
Loading

0 comments on commit 4fe77c2

Please sign in to comment.