-
Notifications
You must be signed in to change notification settings - Fork 82
Fix NoDefaultBackupLocation e2e test, check reconcile errors, pod owners readiness #710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
4379f5b
Update velero/restic/registry to check owner types
kaovilai f9c920d
Check and report reconcile error before checking deployment ready
kaovilai e0a35df
NoDefaultBackupLocation expects BackupImages to be pointer.Bool(false)
kaovilai 056fc54
DPA CR cannot have backup locations if noDefaultBackupLocation is set
kaovilai 293c39c
check reconcile error via string
kaovilai e6b9e2c
go fmt
kaovilai 1ee5899
Switch Dpa to dpa and add getters. Fix velero config cr option for no…
kaovilai 332a502
go fmt one more time
kaovilai 3f5de3f
switch velero deployment list to get.
kaovilai eed67c1
return condition message if there is a condition. extend timeout for …
kaovilai 60268e3
avoid missing credentialMounts error setting snapshotLocations to empty
kaovilai 96f0df4
remove outdated comment
kaovilai 4320221
fix bsl prefix
kaovilai af210b6
add observedGeneration check
kaovilai 8ec2e4e
set featureFlags when creating or updating for describe backup
kaovilai c56268b
fmt
kaovilai 0c2c38e
GetDpa() pass copy instead of pointer to original.
kaovilai c17fdcb
AreVeleroDeploymentReplicasReady don't err on NotFound.
kaovilai 249d24b
handle panic for describe functions when backup fails
kaovilai 3b4cb55
wait for BSL to be available before starting backup
kaovilai dd15638
reconcile error wait to 2 minutes.
kaovilai efdb11e
switch ReconcileError() check from string to wait.ConditionFunc
kaovilai b6dffd9
switch eventually bslIsAvailable to wait.ConditionFunc
kaovilai 7e536ce
print container failure logs to ginkgowriter before dpa deletion
kaovilai ec7c57e
set credentialsFile bsl config for NoDefaultBackupLocation
kaovilai 084edec
createOrUpdate bsl
kaovilai e56f5ed
remove redundant lastObserve code. Will be adding spec checking later
kaovilai a70da91
remove unused var
kaovilai 54ffc90
revert removed line
kaovilai 78d4630
Don't set credentialsFile for external BSL. It has spec.Credentials a…
kaovilai 9fc6c2f
clear credentialsFile from BSL
kaovilai 491d33c
log bsl .spec.credential and config["credentialsFile"]
kaovilai 6ecda15
deepcopy velerobsl
kaovilai 29ee2d0
remove duplicate ginkgo import
kaovilai a32289f
remove test code
kaovilai 2714848
unfocus entry
kaovilai 6e9d7f8
return a deepcopy dpa
kaovilai cc46a1b
bsl status check dump entire status
kaovilai 057d457
force set credential field
kaovilai 4c92451
remove redundant readFile
kaovilai 8fa729f
remove redundant `credSecretRef` secret creation
kaovilai f5599a0
remove use of bsl.config["credentialsFile"] from e2e
kaovilai a4fb169
remove nodefaultbackuplocation cred overrides
kaovilai b4eaa2e
add bsl available wait
kaovilai 52530c0
log unexected bsl diff
kaovilai c10ddbe
fix dpa spec checks to check updated dpa in cluster
kaovilai b0b93ab
remove GetSecretRef
kaovilai 493a817
set credential in each dpaspec entry
kaovilai c02e024
mimic omit empty when comparing desired bsl config
kaovilai abfc7a7
if bl.velero is not nil
kaovilai 566d28b
go fmt
kaovilai 388c8c3
Build() gets dpa instance from deepcopy
kaovilai 57f74e5
make nil items
kaovilai 8a99465
refactor ginkgo init flags, set dpa name after loading.
kaovilai c14cc70
Declare dpaCR once.
kaovilai 7556d8f
multi-cloud creds fix 🤞
kaovilai 099ebbd
Bump registry readiness timeout to 5
kaovilai 168d446
bump probe to 10s
kaovilai 65d0689
go fmt
kaovilai a17200b
update multicloud docs
kaovilai 1fb8384
Github Actions: go-test go version bump to 1.18
kaovilai 8dfb78c
go-install-tool set `-mod=mod`
kaovilai bd458a4
rename import name of lib/init from `i` to `libinit`
kaovilai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -229,15 +229,15 @@ build-deploy: ## Build current branch image and deploy controller to the k8s clu | |
|
||
CONTROLLER_GEN = $(shell pwd)/bin/controller-gen | ||
controller-gen: ## Download controller-gen locally if necessary. | ||
$(call go-get-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/[email protected]) | ||
$(call go-install-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/[email protected]) | ||
|
||
KUSTOMIZE = $(shell pwd)/bin/kustomize | ||
kustomize: ## Download kustomize locally if necessary. | ||
$(call go-get-tool,$(KUSTOMIZE),sigs.k8s.io/kustomize/kustomize/[email protected]) | ||
$(call go-install-tool,$(KUSTOMIZE),sigs.k8s.io/kustomize/kustomize/[email protected]) | ||
|
||
ENVTEST = $(shell pwd)/bin/setup-envtest | ||
envtest: ## Download envtest-setup locally if necessary. | ||
$(call go-get-tool,$(ENVTEST),sigs.k8s.io/controller-runtime/tools/setup-envtest@latest) | ||
$(call go-install-tool,$(ENVTEST),sigs.k8s.io/controller-runtime/tools/setup-envtest@latest) | ||
|
||
# Codecov OS String for use in download url | ||
ifeq ($(OS),Windows_NT) | ||
|
@@ -264,16 +264,16 @@ submit-coverage: | |
fi | ||
rm -f codecov tmp.* | ||
|
||
# go-get-tool will 'go get' any package $2 and install it to $1. | ||
# go-install-tool will 'go install' any package $2 and install it to $1. | ||
PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST)))) | ||
define go-get-tool | ||
define go-install-tool | ||
@[ -f $(1) ] || { \ | ||
set -e ;\ | ||
TMP_DIR=$$(mktemp -d) ;\ | ||
cd $$TMP_DIR ;\ | ||
go mod init tmp ;\ | ||
echo "Downloading $(2)" ;\ | ||
GOBIN=$(PROJECT_DIR)/bin go get $(2) ;\ | ||
GOBIN=$(PROJECT_DIR)/bin go install -mod=mod $(2) ;\ | ||
rm -rf $$TMP_DIR ;\ | ||
} | ||
endef | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure that the downstream is ready for this change.