Commit Graph

273 Commits

Author SHA1 Message Date
Nolan Brubaker
8e740faafc Merge pull request #216 from ncdc/azure-docs
Update Azure specifics
2017-11-29 10:06:39 -05:00
Andy Goldstein
0c092eaa17 Update Azure specifics
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2017-11-29 08:58:56 -05:00
Andy Goldstein
f0b35cc45a Merge pull request #213 from skriss/restore-action-plugins
Convert restorers to plugins
2017-11-28 14:50:41 -05:00
Steve Kriss
179b95c81d convert restorers to plugins
Signed-off-by: Steve Kriss <steve@heptio.com>
2017-11-28 10:58:12 -08:00
Andy Goldstein
98d370f84d Merge pull request #196 from ncdc/describe
Add describers for backups, schedules
2017-11-27 16:29:30 -05:00
Andy Goldstein
5dc50e4974 Regen docs
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2017-11-27 15:22:35 -05:00
Andy Goldstein
c2dc41efd8 Add backup & schedule describers
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2017-11-27 15:22:20 -05:00
Andy Goldstein
062a5d7557 Remove fmt target as it's handled by update
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2017-11-27 14:30:26 -05:00
Andy Goldstein
ad47513170 Change minio s3 url to minio.heptio-ark.svc
If you have "cluster.local" as a search domain in /etc/resolv.conf and
you have DNS set up so it can resolve cluster.local queries (e.g.
with dnsmasq), this makes commands such as `ark restore logs` work
correctly outside of the cluster.

Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2017-11-27 14:30:26 -05:00
Andy Goldstein
932b8259ae Merge pull request #206 from skriss/action-plugins
Backup ItemAction plugins
2017-11-21 16:46:44 -05:00
Steve Kriss
0f2d1ab82b migrate backup actions to plugins
Signed-off-by: Steve Kriss <steve@heptio.com>
2017-11-21 10:03:03 -08:00
Nolan Brubaker
2ce15de2f8 Merge pull request #202 from ncdc/fix-debugging-restores-info
Update restore debugging info
2017-11-17 10:15:18 -05:00
Steve Kriss
fc6da9b3db Merge pull request #203 from ncdc/log-server-version
Log server version at startup
2017-11-15 12:13:59 -08:00
Andy Goldstein
0d42815d31 Merge pull request #204 from nrb/extend-ttl
Update default TTL to 30 days
2017-11-15 07:03:35 -05:00
Nolan Brubaker
194d21c6a3 Update default TTL to 30 days
Signed-off-by: Nolan Brubaker <nolan@heptio.com>
2017-11-14 17:03:30 -05:00
Andy Goldstein
c57a9b94b9 Log server version at startup
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2017-11-14 16:58:14 -05:00
Andy Goldstein
c2fa812ffb Update restore debugging info
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2017-11-14 15:10:13 -05:00
Steve Kriss
9996eec6be Merge pull request #201 from ncdc/restore-results-file-seek
Seek to 0 before uploading restore results
2017-11-14 11:45:03 -08:00
Andy Goldstein
b184c0b348 Seek to 0 before uploading restore results
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2017-11-14 14:39:42 -05:00
Steve Kriss
01e9c86a01 Merge pull request #199 from ncdc/log-enhancements
Log enhancements
2017-11-14 11:29:04 -08:00
Andy Goldstein
eb6f1a7b5c Fix minio config
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2017-11-14 14:24:33 -05:00
Andy Goldstein
4c481f4d23 Make logSource more concise
Strip off leading .../github.com/heptio/ark/

Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2017-11-14 14:21:19 -05:00
Andy Goldstein
af189fd5f4 Add error & logSource hooks to backup & restore loggers
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2017-11-14 14:19:52 -05:00
Andy Goldstein
34a6f492e5 Log restore start/end
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2017-11-14 14:19:52 -05:00
Andy Goldstein
38aa43885b Log when starting a backup
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2017-11-14 14:19:52 -05:00
Andy Goldstein
015869cc29 Merge pull request #188 from skriss/cloudprovider-plugins
Convert existing cloudproviders to plugins
2017-11-14 14:17:38 -05:00
Steve Kriss
7fb507689f update docs and examples
Signed-off-by: Steve Kriss <steve@heptio.com>
2017-11-14 10:38:26 -08:00
Steve Kriss
8ba5a29679 add a logger that can be used within plugins to emit logs into Ark server
Signed-off-by: Steve Kriss <steve@heptio.com>
2017-11-14 10:38:26 -08:00
Steve Kriss
24ce316788 switch built-in cloud providers to run as plugins
Signed-off-by: Steve Kriss <steve@heptio.com>
2017-11-14 09:47:36 -08:00
Steve Kriss
3975187d57 add .proto files, generated code, and gen script for object/block stores
Signed-off-by: Steve Kriss <steve@heptio.com>
2017-11-13 15:43:14 -08:00
Steve Kriss
cb49c62aaf implement stream reader for gRPC byte streams
Signed-off-by: Steve Kriss <steve@heptio.com>
2017-11-13 15:43:13 -08:00
Steve Kriss
35b46e392c add github.com/hashicorp/go-plugin dependency
Signed-off-by: Steve Kriss <steve@heptio.com>
2017-11-08 16:58:47 -08:00
Steve Kriss
21e2019540 rename Block/ObjectStoreAdapter -> Block/ObjectStore
Signed-off-by: Steve Kriss <steve@heptio.com>
2017-11-08 16:58:47 -08:00
Steve Kriss
71bb702297 Merge pull request #191 from ncdc/improve-logging
Add more group-resource level logging
2017-11-08 15:15:26 -08:00
Steve Kriss
e21c66c494 Merge pull request #186 from ncdc/version-edits
Include git describe info in binary names.
2017-11-08 15:12:53 -08:00
Andy Goldstein
737b6d932a Add more group-resource level logging
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2017-11-08 12:08:57 -05:00
Andy Goldstein
3f840d4ce5 Merge pull request #187 from lukepatrick/master
Debug typo
2017-11-07 06:26:51 -05:00
lukepatrick
390e47b08b Debug typo
Signed-off-by: lukepatrick <lukephilips@gmail.com>
2017-11-06 15:59:45 -07:00
Andy Goldstein
962ea4708e Include git describe info in binary names.
New format now looks like this:
ark-v0.5.0-44-g72b0bdd-dirty-linux-amd64.tar.gz

Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2017-11-06 16:21:09 -05:00
Nolan Brubaker
72b0bdde70 Merge pull request #184 from ncdc/master-changelog-051
Add 0.5.1 to changelog
2017-11-06 07:41:02 -08:00
Andy Goldstein
4ee6b81647 Add 0.5.1 to changelog
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
(cherry picked from commit e4e6a31a58)
2017-11-06 10:36:12 -05:00
Steve Kriss
5e4fc8f84a Merge pull request #182 from ncdc/include-namespace
Fix missing namespace resource when backing up namespaces with auto cluster resources
2017-11-03 13:56:11 -07:00
Andy Goldstein
efa4e57d1e More namespace special casing
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2017-11-03 16:34:07 -04:00
Devan Goodwin
9471f9da3c Fix missing namespace metadata after restore.
If backing up specific namespaces with "auto" cluster resources, the
actual namespace objects themselves were not being included in the
backup. Restore would create them but any labels or metadata would be
lost.

Instead handle the special case of namespace as a cluster level resource
we may still need, even if excluding most cluster level resources.

Signed-off-by: Devan Goodwin <dgoodwin@redhat.com>
2017-11-03 12:12:03 -03:00
Steve Kriss
8b25114047 Merge pull request #173 from ncdc/move-restore-warnings-errors-to-files
Move restore status warnings/errors to object storage; add restore describe command
2017-11-02 12:58:24 -07:00
Andy Goldstein
b2d80471ac Move restore warnings/errors to object storage
If you have a large number of warnings and/or errors, the restore
object's size can exceed the maximum allowed by etcd. Move them to
object storage, and add a new describe command to fetch and display them
on the fly.

Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2017-11-02 15:53:59 -04:00
Andy Goldstein
203a9c6e05 Merge pull request #179 from skriss/fix-ns-mapping
Fix restore namespace remapping bug
2017-11-02 14:00:15 -04:00
Steve Kriss
55c038afa0 fix restore namespace remapping bug
Signed-off-by: Steve Kriss <steve@heptio.com>
2017-11-02 10:39:54 -07:00
Andy Goldstein
7f959f0184 Merge pull request #174 from skriss/obj-store-reader
Switch PutObject to take an io.Reader rather than an io.ReadSeeker
2017-11-02 12:57:09 -04:00
Steve Kriss
c49d11f17a Merge pull request #171 from nrb/168-fix
Don't delete 'headless' services
2017-11-01 16:30:32 -07:00