Commit Graph

380 Commits

Author SHA1 Message Date
Steve Kriss
cbff5ef53b extract GCP project ID from creds file, remove from config
Signed-off-by: Steve Kriss <steve@heptio.com>
2018-03-02 09:15:12 -08:00
Steve Kriss
52641e8e29 Merge pull request #334 from ncdc/run-ark-server-locally
Run ark server locally
2018-02-28 13:06:02 -08:00
Andy Goldstein
7de129e4a3 Merge pull request #335 from nrb/master
Update the ROADMAP to reflect 0.7.0 release
2018-02-27 17:02:38 -05:00
Nolan Brubaker
dc8bc5f486 Update the ROADMAP to reflect 0.7.0 release
Signed-off-by: Nolan Brubaker <nolan@heptio.com>
2018-02-27 16:46:51 -05:00
Andy Goldstein
e3c40a1de7 Regen docs
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2018-02-27 14:51:13 -05:00
Andy Goldstein
e618e0e456 server: allow configurable plugin dir
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2018-02-27 14:50:38 -05:00
Andy Goldstein
f13b0c00a3 server: don't assume /ark for internal plugins
If you want to test changes to the ark server without having to rebuild
and redeploy the ark container, this change allows you to do something
like this (assuming you've created your cloud credentials file):

AWS_SHARED_CREDENTIALS_FILE=credentials-minio ark server -n heptio-ark

Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2018-02-27 14:32:45 -05:00
Nolan Brubaker
e73ba839f3 Merge pull request #296 from blakebarnett/bdb/add_kubecontext_flag
Adds a kubecontext global flag
2018-02-26 17:05:59 -05:00
Nolan Brubaker
abeeee6643 Merge pull request #333 from ncdc/add-force-delete-backup
Allow forced backup deletion
2018-02-26 16:44:37 -05:00
Andy Goldstein
d24fb232cc Allow forced backup deletion
Add --force and --confirm to `ark backup delete` to support forced
backup deletion. This forcibly removes the Ark GC finalizer (if it's
present) from a backup and will orphan any resources associated with the
backup, such as backup tarballs in object storage, persistent volume
snapshots, and restores for the backup.

If a backup has a deletion timestamp, display `Deleting` in `ark backup
describe` and `ark backup get`.

Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2018-02-26 16:25:22 -05:00
Blake
465c60b408 Add global kubecontext CLI flag
Signed-off-by: Blake <blake.barnett@postmates.com>
2018-02-26 10:47:39 -08:00
Nolan Brubaker
fcbc7bd570 Merge pull request #302 from ncdc/check-backup-before-creating-restore
Error if backup missing when creating a restore
2018-02-26 12:05:38 -05:00
Steve Kriss
530e22939d Merge pull request #326 from ncdc/changelog-0.7.1
Update changelog for v0.7.1
v0.7.1
2018-02-22 17:55:52 -08:00
Andy Goldstein
22ec2a3d56 Update changelog for v0.7.1
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2018-02-22 20:51:58 -05:00
Jennifer Rondeau
7e0a629db1 Merge pull request #325 from Bradamant3/test-doc-paths
fix syntax for doc paths on GH
2018-02-21 14:45:55 -05:00
JENNIFER RONDEAU
41b1a80398 fix syntax for doc paths on GH
Signed-off-by: JENNIFER RONDEAU <jrondeau@heptio.com>
2018-02-21 14:29:17 -05:00
Andy Goldstein
601d9f2da1 Merge pull request #323 from Bradamant3/move-server-docs
edit troubleshooting, add links
2018-02-21 13:53:07 -05:00
JENNIFER RONDEAU
a289b1c645 edit per comments
Signed-off-by: JENNIFER RONDEAU <jrondeau@heptio.com>
2018-02-21 13:39:10 -05:00
JENNIFER RONDEAU
bc77307d75 edit troubleshooting, add links
Signed-off-by: JENNIFER RONDEAU <jrondeau@heptio.com>
2018-02-21 13:18:34 -05:00
Andy Goldstein
2bc8c52053 Merge pull request #322 from ncdc/run-server-in-separate-ns
Move ark server & minio to heptio-ark-server ns
2018-02-21 11:03:07 -05:00
Andy Goldstein
a0111d875f Add troubleshooting doc for backups stuck deleting
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2018-02-21 10:46:08 -05:00
Andy Goldstein
08d4fc8b88 Move ark server & minio to heptio-ark-server ns
Move ark server deployment & minio deployment to a separate namespace
from the backups/schedules/restores/config because backups now have a
finalizer. If everything lives in one namespace, you have to delete all
the backups and wait for the GC controller to process them and remove the
finalizer from each before deleting the namespace.

By moving the server into a separate namespace, users can now delete the
heptio-ark namespace the normal way (kubectl delete), and once that
namespace is fully removed, they can delete the heptio-ark-server
namespace.

Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2018-02-20 12:41:38 -05:00
Andy Goldstein
46adb6c6aa Merge pull request #319 from chasestarr/fix-cloud-provider-doc-links
fixes broken cloud provider doc links
2018-02-19 12:39:58 -05:00
Chase Starr
c417e30a07 fixes broken cloud provider doc links
Signed-off-by: Chase Starr <chasestarr@gmail.com>
2018-02-16 11:30:06 -08:00
Andy Goldstein
f449e238fc Merge pull request #313 from Bradamant3/0.7-doc-updates
Add doc changes for 0.7.0
v0.7.0
2018-02-15 15:25:47 -05:00
Steve Kriss
dc5bbada36 Merge pull request #315 from ncdc/changelog-0.7.0
Update changelog for v0.7.0
2018-02-15 11:54:10 -08:00
Andy Goldstein
621d0fad4e Update changelog for v0.7.0
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2018-02-15 13:48:39 -05:00
JENNIFER RONDEAU
3b8e32facc add doc changes for 0.7.0
Signed-off-by: JENNIFER RONDEAU <jrondeau@heptio.com>
2018-02-15 13:25:18 -05:00
Steve Kriss
ac1f833415 Merge pull request #293 from ncdc/add-roadmap
Add initial ROADMAP.md
2018-02-05 19:02:37 -08:00
Andy Goldstein
cc4d2916fa Error if backup missing when creating a restore
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2018-02-05 13:29:48 -05:00
Steve Kriss
11f2be6254 Merge pull request #294 from ncdc/mkdir-p
Create the config directory in case it's missing
2018-02-02 13:07:45 -08:00
Andy Goldstein
b2cd8e1fe8 Create the config directory in case it's missing
Always try to create the config directory when saving the client config
in case it doesn't exist.

Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2018-02-02 16:01:52 -05:00
Andy Goldstein
262dd46d7a Add initial ROADMAP.md
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2018-02-02 15:23:05 -05:00
Andy Goldstein
8cf272473d Merge pull request #285 from lypht/improveLocationConstraint
Update s3 bucket creation docs for us-east-1
2018-01-17 11:28:29 -05:00
Josh Hull
50b5c0f8a6 Update s3 bucket creation docs for us-east-1
Signed-off-by: Josh Hull <josh.hull@lypht.com>

improve non-optional location-constraint verbiage

Signed-off-by: Josh Hull <josh.hull@lypht.com>

changing location-constraint to LocationConstraint

Signed-off-by: Josh Hull <josh.hull@lypht.com>

Zero assumptions are optimal

Signed-off-by: Josh Hull <josh.hull@lypht.com>
2018-01-17 10:12:09 -06:00
Andy Goldstein
6712e2a9ec Merge pull request #270 from nrb/fix-232
Clarify backup and restore creation messages
2018-01-11 12:22:11 -05:00
Andy Goldstein
f5f1dbac5d Merge pull request #271 from nrb/fix-246
Invalidate restores based on non-existent backups
2018-01-10 13:24:53 -05:00
Andy Goldstein
1035cf72ce Merge pull request #249 from skriss/update-gcp-lib
update GCP client libraries
2018-01-08 14:55:18 -05:00
Steve Kriss
af81f589f6 update GCP block store to use v1 library, and tag snapshots on create
Signed-off-by: Steve Kriss <steve@heptio.com>
2018-01-08 09:23:32 -08:00
Steve Kriss
350fd894f3 vendor GCP compute v1 library
Signed-off-by: Steve Kriss <steve@heptio.com>
2018-01-08 09:22:57 -08:00
Nolan Brubaker
37f498cd37 Clarify backup and restore creation messages
When running `ark <resource> create`, a request is sent to the server,
but the status is not immediately known. Inform the user that a request
was sent and provide a way to get more information on it.

Signed-off-by: Nolan Brubaker <nolan@heptio.com>
2018-01-08 10:26:51 -05:00
Nolan Brubaker
bb7b0a3c33 Invalidate restores based on missing backups
When creating a restore based on a backup that doesn't exist, the
restore should be marked as invalid and the error clearly communicated
so the user understands why the restore wasn't made.

Previously, the restore was left as in progress with an error attached.

Since restores are CRDs and must be updated via a controller, there's
currently not a way to give the client immediate errors.

Signed-off-by: Nolan Brubaker <nolan@heptio.com>
2018-01-08 10:10:01 -05:00
Steve Kriss
b53ee44176 update GCP object store to use new/recommended lib
Signed-off-by: Steve Kriss <steve@heptio.com>
2018-01-05 14:21:13 -08:00
Steve Kriss
e130011d1e Merge pull request #272 from ncdc/arbitrary-namespaces
Support running in any namespace
2018-01-05 14:15:18 -08:00
Steve Kriss
4264abd77f Merge pull request #243 from ncdc/pre-post-hooks
Support both pre and post backup hooks
2018-01-05 14:03:48 -08:00
Andy Goldstein
47da01c0e9 Regen docs
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2018-01-05 16:52:53 -05:00
Andy Goldstein
816f14c0b4 Support running in any namespace
Add the ability for the Ark server to run in any namespace.

Add `ark client config get/set` for manipulating the new client
configuration file in $HOME/.config/ark/config.json. This holds client
defaults, such as the Ark server's namespace (to avoid having to specify
the --namespace flag all the time).

Add a --namespace flag to all client commands.

Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2018-01-05 16:51:59 -05:00
Andy Goldstein
326eb7a4e8 Merge pull request #273 from skriss/pv-annotations-docs-fix
remove outdated line about backups removing PV annotations
2018-01-05 15:10:16 -05:00
Steve Kriss
92a18f490b remove outdated line about backups removing PV annotations
Signed-off-by: Steve Kriss <steve@heptio.com>
2018-01-05 10:30:41 -08:00
Andy Goldstein
de785af89d Support pre and post hooks.
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2018-01-05 10:47:34 -05:00