velero/test/e2e/testdata/enable_api_group_versions
codegold79 6bdd4ac192
Restore API group version by priority (#3133)
* Restore API group version by priority

Signed-off-by: F. Gold <fgold@vmware.com>

* Add changelog

Signed-off-by: F. Gold <fgold@vmware.com>

* Correct spelling

Signed-off-by: F. Gold <fgold@vmware.com>

* Refactor userResourceGroupVersionPriorities(...) to accept config map, adjust unit test

Signed-off-by: F. Gold <fgold@vmware.com>

* Move some unit tests into e2e

Signed-off-by: F. Gold <fgold@vmware.com>

* Add three e2e tests using Testify Suites

Summary of changes

Makefile - add testify e2e test target
go.sum - changed with go mod tidy
pkg/install/install.go - increased polling timeout
test/e2e/restore_priority_group_test.go - deleted
test/e2e/restore_test.go - deleted
test/e2e/velero_utils.go - made restic optional in velero install
test/e2e_testify/Makefile - makefile for testify e2e tests
test/e2e_testify/README.md - example command for running tests
test/e2e_testify/common_test.go - helper functions
test/e2e_testify/e2e_suite_test.go - prepare for tests and run
test/e2e_testify/restore_priority_apigv_test.go - test cases

Signed-off-by: F. Gold <fgold@vmware.com>

* Make changes per @nrb code review

Signed-off-by: F. Gold <fgold@vmware.com>

* Wait for pods in e2e tests

Signed-off-by: F. Gold <fgold@vmware.com>

* Remove testify suites e2e scaffolding moved to PR #3354

Signed-off-by: F. Gold <fgold@vmware.com>

* Make changes per @brito-rafa and Velero maintainers code reviews

- Made changes suggested by @brito-rafa in GitHub.
- We had a code review meeting with @carlisia, @dsu-igeek, @zubron, and @nrb
- and changes were made based on their suggetions:
  - pull in logic from 'meetsAPIGVResotreReqs()' to restore.go.
  - add TODO to remove APIGroupVersionFeatureFlag check
  - have feature flag and backup version format checks in separate `if` statements.
  - rename variables to be sourceGVs, targetGVs, and userGVs.

Signed-off-by: F. Gold <fgold@vmware.com>

* Convert Testify Suites e2e tests to existing Ginkgo framework

Signed-off-by: F. Gold <fgold@vmware.com>

* Made changes per @zubron PR review

Signed-off-by: F. Gold <fgold@vmware.com>

* Run go mod tidy after resolving go.sum merge conflict

Signed-off-by: F. Gold <fgold@vmware.com>

* Add feature documentation to velero.io site

Signed-off-by: F. Gold <fgold@vmware.com>

* Add config map e2e test; rename e2e test file and name

Signed-off-by: F. Gold <fgold@vmware.com>

* Update go.{mod,sum} files

Signed-off-by: F. Gold <fgold@vmware.com>

* Move CRDs and CRs to testdata folder

Signed-off-by: F. Gold <fgold@vmware.com>

* Fix typos in cert-manager to pass codespell CICD check

Signed-off-by: F. Gold <fgold@vmware.com>

* Make changes per @nrb code review round 2

- make checkAndReadDir function private
- add info level messages when priorties 1-3 API group versions can not be used

Signed-off-by: F. Gold <fgold@vmware.com>

* Make user config map rules less strict

Signed-off-by: F. Gold <fgold@vmware.com>

* Update e2e test image version in example

Signed-off-by: F. Gold <fgold@vmware.com>

* Update case A music-system controller code

Signed-off-by: F. Gold <fgold@vmware.com>

* Documentation updates

Signed-off-by: F. Gold <fgold@vmware.com>

* Update migration case documentation

Signed-off-by: F. Gold <fgold@vmware.com>
2021-02-16 12:36:17 -05:00
..
README.md Restore API group version by priority (#3133) 2021-02-16 12:36:17 -05:00
case-a-source.yaml Restore API group version by priority (#3133) 2021-02-16 12:36:17 -05:00
case-a-target.yaml Restore API group version by priority (#3133) 2021-02-16 12:36:17 -05:00
case-b-source-manually-added-mutations.yaml Restore API group version by priority (#3133) 2021-02-16 12:36:17 -05:00
case-b-target-manually-added-mutations.yaml Restore API group version by priority (#3133) 2021-02-16 12:36:17 -05:00
case-c-target-manually-added-mutations.yaml Restore API group version by priority (#3133) 2021-02-16 12:36:17 -05:00
case-d-target-manually-added-mutations.yaml Restore API group version by priority (#3133) 2021-02-16 12:36:17 -05:00
cert-manager.yaml Restore API group version by priority (#3133) 2021-02-16 12:36:17 -05:00
music_v1_rockband.yaml Restore API group version by priority (#3133) 2021-02-16 12:36:17 -05:00
music_v1alpha1_rockband.yaml Restore API group version by priority (#3133) 2021-02-16 12:36:17 -05:00
music_v2_rockband.yaml Restore API group version by priority (#3133) 2021-02-16 12:36:17 -05:00
music_v2beta1_rockband.yaml Restore API group version by priority (#3133) 2021-02-16 12:36:17 -05:00
music_v2beta2_rockband.yaml Restore API group version by priority (#3133) 2021-02-16 12:36:17 -05:00

README.md

Enable API Group Versions Test Data

This directory contains Kubernetes manifests that are used for the enable API group versions e2e tests.

Documentation

Read more about cert-manager in the Jet Stack repo.

Read more about the music-system custom resource definitions and rockbands custom resources created for Velero tests at @brito-rafa's repo.

Reference

These manifests, listed below, come from two different sources: github.com/jetstack/cert-manager and github.com/brito-rafa/k8s-webhooks:

cert-manager.yaml

case-a-source.yaml

case-a-target.yaml

case-b-source-manually-added-mutations.yaml

case-b-target-manually-added-mutations.yaml

case-c-target-manually-added-mutations.yaml

case-c-target-manually-added-mutations.yaml

music_v1_rockband.yaml

music_v1alpha1_rockband.yaml

music_v2_rockband.yaml

music_v2beta1_rockband.yaml

music_v2beta2_rockband.yaml