Commit Graph

1790 Commits (fc3ec9ff2c0bb32908ef5f89af51bd141a1dc3fb)

Author SHA1 Message Date
Steve Kriss 6623e1f273 Change restic prune default interval to 7d and make user-configurable (#1864)
* change restic prune default interval to 7d, add server flag for it

Signed-off-by: Steve Kriss <krisss@vmware.com>
2019-09-10 11:58:42 -07:00
Adnan Abdulhussein 26e06dae53 fix excluding additional items with the exclude-from-backup label (#1843)
* fix excluding additional items with the exclude-from-backup label

Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com>
2019-09-10 11:45:55 -07:00
Adnan Abdulhussein 1e182e5837 record restic backup progress in PodVolumeBackup (#1821)
* record restic backup progress in PodVolumeBackup

Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com>
2019-09-10 11:28:19 -07:00
KubeKween fc39ac6d51 Add a check to avoid nil pointer (#1861)
Signed-off-by: Carlisia <carlisia@vmware.com>
2019-09-10 09:29:32 -06:00
KubeKween fc05f0c11c Plan to move this repo to vmware-tanzu (#1822) 2019-09-09 16:49:19 -07:00
Steve Kriss 11190065fd velero install: wait for restic daemonset to be ready (#1859)
* velero install: wait for restic daemonset to be ready

Signed-off-by: Steve Kriss <krisss@vmware.com>

* changelog

Signed-off-by: Steve Kriss <krisss@vmware.com>
2019-09-09 17:54:47 -04:00
Nolan Brubaker 8da9ef2b03 Make GCP credentials parsing errors less ambiguous (#1850)
A user encountered the following error on a GCP project:

An error occurred: some backup storage locations are invalid: error getting backup store for location "default": rpc error: code = Unknown desc = invalid character '-' in numeric literal

This error was ambiguous and took some time to track down to the fact
that their credentials file wasn't a JSON file, but instead the contents
of the private key field. This change makes the problem slightly easier
to debug.

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
2019-09-09 08:22:00 -06:00
Nolan Brubaker 1e88e47b93 Configure docker helper in Travis (#1847)
Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
2019-09-05 11:54:32 -06:00
Steve Kriss 1573b2e082 update resources page on website (#1846)
* change youtube embed to playlist

Signed-off-by: Steve Kriss <krisss@vmware.com>

* add blog post links to resources

Signed-off-by: Steve Kriss <krisss@vmware.com>
2019-09-05 10:32:50 -07:00
Nolan Brubaker 275546eea0 Add script for pushing container images via Travis (#1800)
* Add script for pushing container images via Travis

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>

* Explain the latest tag logic

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>

* Add travis integration to deployment

* ensure $BRANCH is always the same value (borrowed from Sonobuoy)
* get gcloud SDK installed (borrowed from Sonobuoy)
* use deploy step to run GCR push script (borrowed from Sonobuoy)
* use gcloud's docker to do the image building/pushing
* placeholders for secure values
* rename $LATEST to $HIGHEST to more accurately reflect what it is

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>

* Add encrypted GCR creds

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>

* Remove unused env section

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>

* Rearrange logic so that there's only one make call

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>

* Review feedback

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>

* Update gcloud and OS for Travis environment

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>

* Remove redundant make dependencies

verify and test targets already run on the ci target, which must pass
before deploy.

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>

* Re-encrypt file after testing

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
2019-09-05 11:16:23 -06:00
Steve Kriss 5a77a7aec6
Merge pull request #1838 from skriss/bsl-accessmode-doc
document accessMode field for backup storage locations
2019-09-04 13:00:56 -06:00
Steve Kriss 8f3b3f4953 fix podcast link (#1840)
Signed-off-by: Steve Kriss <krisss@vmware.com>
2019-09-04 11:57:39 -07:00
Raunak Kumar 73488cdc0c hpe velero plugin support (#1829)
Signed-off-by: Raunak Kumar <rkumar@nimblestorage.com>
2019-09-04 10:38:16 -06:00
Steve Kriss df3e7b8b3b document accessMode field for backup storage locations
Signed-off-by: Steve Kriss <krisss@vmware.com>
2019-09-04 08:38:31 -06:00
Steve Kriss 29f29f9d61
Merge pull request #1828 from carlisia/c-1826-test-bug
Sort mounts in test case to avoid intermittent fail
2019-09-03 12:39:59 -06:00
Carlisia 966222ac0f
Sort mounts in test case to avoid intermitent fail
Closes #1826.

Signed-off-by: Carlisia <carlisia@vmware.com>
2019-08-29 17:55:13 -07:00
Steve Kriss fd2609ee9a
Merge pull request #1827 from heptio/remove-status-doc-template
design doc template: remove status field
2019-08-29 18:42:47 -06:00
Adnan Abdulhussein d5df3cb2b6 design doc template: remove status field
After discussing with the team, it doesn't make sense for all design proposals to have a draft/accepted status. Currently draft proposals can be kept open as PRs and all merged proposals are considered to be accepted. Removing the status field here removes the extra step of having to update the proposal status before merging.

Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com>
2019-08-29 16:33:44 -07:00
Steve Kriss e210626a36 create pkg/archive with functionality extracted from pkg/restore (#1801)
* move pkg/restore's backup extractor to pkg/archive

Signed-off-by: Steve Kriss <krisss@vmware.com>
2019-08-28 18:03:01 -07:00
Steve Kriss 60f9898ca0 restore: rename PV when remapping a namespace if PV exists in-cluster (#1779)
* rename PV during restore when cloning a namespace

Signed-off-by: Steve Kriss <krisss@vmware.com>

* rename func and vars, switch to if..else

Signed-off-by: Steve Kriss <krisss@vmware.com>

* make pv renamer func configurable for testing purposes

Signed-off-by: Steve Kriss <krisss@vmware.com>

* add unit test cases

Signed-off-by: Steve Kriss <krisss@vmware.com>

* changelog

Signed-off-by: Steve Kriss <krisss@vmware.com>

* address review feedback

Signed-off-by: Steve Kriss <krisss@vmware.com>

* address review feedback

Signed-off-by: Steve Kriss <krisss@vmware.com>
2019-08-27 16:42:38 -07:00
Steve Kriss ef911ff21b when backing up PVCs with restic, explicitly specify --parent (#1807)
* when backing up PVCs with restic, explicitly specify --parent

Signed-off-by: Steve Kriss <krisss@vmware.com>

* changelog

Signed-off-by: Steve Kriss <krisss@vmware.com>

* address review feedback

Signed-off-by: Steve Kriss <krisss@vmware.com>
2019-08-27 16:37:51 -07:00
KubeKween 6b66a49a21 Unit tests for restic restore (#1747)
* Add unit tests for PVB restore functionality

Signed-off-by: Carlisia <carlisiac@vmware.com>

* Add tests for restore action

Signed-off-by: Carlisia <carlisiac@vmware.com>

* TestRestoreWithRestic wip

Signed-off-by: Carlisia <carlisiac@vmware.com>

* Fix build

Signed-off-by: Carlisia <carlisiac@vmware.com>

* Mockery

Signed-off-by: Carlisia <carlisiac@vmware.com>

* Cleanup mocks

Signed-off-by: Carlisia <carlisiac@vmware.com>

* Remove unused mock

Signed-off-by: Carlisia <carlisiac@vmware.com>

* Use consistent pattern for test building

Signed-off-by: Carlisia <carlisia@vmware.com>

* Test cleanup

Signed-off-by: Carlisia <carlisia@vmware.com>

* Better godoc

Signed-off-by: Carlisia <carlisia@vmware.com>

* Improve test cases

Signed-off-by: Carlisia <carlisia@vmware.com>

* Fix build

Signed-off-by: Carlisia <carlisia@vmware.com>

* Minor test cleanup

Signed-off-by: Carlisia <carlisia@vmware.com>

* New pvb test input names

Signed-off-by: Carlisia <carlisia@vmware.com>
2019-08-27 15:49:23 -07:00
Adnan Abdulhussein 7ea065a94f Upgrade kubernetes dependencies to 1.15.3 (#1808)
* bump kubernetes dependency to 1.15.3

Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com>
2019-08-27 13:58:15 -07:00
Adnan Abdulhussein 6aa0215137 create backups from schedules using velero create backup (#1734)
* add --from-schedule to `velero backup create` to create backups from schedules

Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com>
2019-08-23 13:03:51 -07:00
Steve Kriss 686f41ebec remove calls to restic check before/after prune (#1794)
* remove calls to restic check before/after prune

Signed-off-by: Steve Kriss <krisss@vmware.com>

* changelog

Signed-off-by: Steve Kriss <krisss@vmware.com>
2019-08-23 10:53:00 -07:00
Nolan Brubaker 3a0c1be7f0
Merge pull request #1742 from skriss/validate-restic-repo-id
Allow BSLs to specify restic repo prefixes, error if the prefix can't be determined
2019-08-23 11:27:00 -04:00
Steve Kriss fc8ca5d8bf
Merge pull request #1759 from nrb/feature-flags
Feature flag design
2019-08-23 08:48:39 -06:00
Nolan Brubaker 38643f2f4a Propose adding feature flags to velero
Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
2019-08-23 10:41:35 -04:00
Adnan Abdulhussein 86408bf805 restic backup and restore progress proposal (#1765)
* restic backup and restore progress proposal

Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com>

* update approach to lookup based on files rather than total size

Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com>

* typo

Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com>

* record TotalBytes and BytesDone in PodVolumeBackup/Restore and calculate percentage in UI

Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com>

* update to go with restic stats approach for restore

Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com>

* typo

Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com>

* update high-level design for restic stats

Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com>

* wait for bytes_done

Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com>

* change status to accepted

Signed-off-by: Adnan Abdulhussein <aadnan@vmware.com>
2019-08-22 10:47:38 -06:00
Steve Kriss 32d46871cc allow custom restic repo prefix to be specified in BSL config
Signed-off-by: Steve Kriss <krisss@vmware.com>
2019-08-22 10:19:22 -06:00
Steve Kriss 8b6c505817 error if restic repo identifier can't be determined
Signed-off-by: Steve Kriss <krisss@vmware.com>
2019-08-22 10:19:22 -06:00
Steve Kriss 00882c2de4
Merge pull request #1790 from skriss/bump-nokogiri-dep
update nokogiri dep for website
2019-08-22 10:00:01 -06:00
Steve Kriss 124ca44958 update nokogiri dep for website
Signed-off-by: Steve Kriss <krisss@vmware.com>
2019-08-22 09:55:12 -06:00
Steve Kriss efc0be5e48
Merge pull request #1781 from mesosphere/fix_url
fix error formatting
2019-08-22 09:32:14 -06:00
Steve Kriss cd901ed9a7 update links on website home page for latest release (#1789)
Signed-off-by: Steve Kriss <krisss@vmware.com>
2019-08-22 08:01:36 -07:00
Steve Kriss 017f7cff46
Merge pull request #1783 from jonasrosland/velero-1.1
Velero 1.1 blog post
2019-08-22 08:50:03 -06:00
Steve Kriss a357f21aec
Merge pull request #1778 from skriss/v1.1.0-release
v1.1.0 docs & changelog
2019-08-22 08:34:59 -06:00
Jonas Rosland b75fadbe2f Velero 1.1 blog post
Signed-off-by: Jonas Rosland <jrosland@vmware.com>
2019-08-21 14:01:22 -07:00
Steve Kriss dfb225807b v1.1.0 changelog
Signed-off-by: Steve Kriss <krisss@vmware.com>
2019-08-21 15:01:10 -06:00
Steven Chung 8ae40b55ec fix error formatting
would interpret % as printf formatted strings

Signed-off-by: Steven Chung <schung@d2iq.com>
2019-08-21 12:49:59 -04:00
Steve Kriss b1b6a79dfc
Merge pull request #1776 from heptio/revert-1769-ssl
Revert "allow self signed certs with insecureSkipVerify"
2019-08-20 12:16:21 -06:00
KubeKween b25865f5bb
Revert "allow self signed certs with insecureSkipVerify (#1769)"
This reverts commit 8e35ce0bde.

Signed-off-by: Carlisia <carlisiac@vmware.com>
2019-08-20 11:02:27 -07:00
Steve Chung 8e35ce0bde allow self signed certs with insecureSkipVerify (#1769)
* patch velero to handle self-signed certs on client

you'll get this error otherwise:
x509: certificate signed by unknown authority

Signed-off-by: Steven Chung <schung@d2iq.com>
2019-08-20 10:29:02 -07:00
Steve Kriss 9e946ee698 v1.1.0 docs
Signed-off-by: Steve Kriss <krisss@vmware.com>
2019-08-20 10:44:57 -06:00
betta1 cfb663f795 Add the prefix to BSL config map so that object stores can use it when initializing (#1767)
Signed-off-by: Antony Bett <antony.bett@gmail.com>
2019-08-19 14:05:38 -06:00
Nolan Brubaker a0cd954ce9
Merge pull request #1772 from zakkg3/master
[DOCS] Add stable/velero to helm commands
2019-08-19 12:44:06 -04:00
Nicolas Kowenski 67203ff972 add stable/velero to helm commands
Signed-off-by: Nicolas Kowenski <nico@garufa.ethz.ch>
2019-08-19 10:56:11 +02:00
Nolan Brubaker af4b9373fc
Merge pull request #1762 from skriss/v1.1-beta.2-docs
replace v1.1.0-beta.1 docs with v1.1.0-beta.2 docs
2019-08-13 16:39:53 -04:00
Nolan Brubaker 90bb939c4d
Merge pull request #1761 from skriss/v1.1-beta.2-changelog
v1.1.0-beta.2 changelog
2019-08-13 16:39:04 -04:00
Steve Kriss c80f679802 replace v1.1.0-beta.1 docs with v1.1.0-beta.2 docs
Signed-off-by: Steve Kriss <krisss@vmware.com>
2019-08-13 13:41:36 -06:00