Skip to content

Commit

Permalink
Vendored ETCD Backup Restore version 0.22.0
Browse files Browse the repository at this point in the history
  • Loading branch information
seshachalam-yv authored and abdasgupta committed Apr 13, 2023
1 parent faffa19 commit 27468f9
Show file tree
Hide file tree
Showing 26 changed files with 1,419 additions and 700 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.20

require (
github.com/Masterminds/semver v1.5.0
github.com/gardener/etcd-backup-restore v0.14.1
github.com/gardener/etcd-backup-restore v0.22.0
github.com/gardener/gardener v1.65.0
github.com/ghodss/yaml v1.0.0
github.com/go-logr/logr v1.2.3
Expand Down
490 changes: 2 additions & 488 deletions go.sum

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions hack/ci-e2e-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,24 @@ set -x

make kind-up

trap "
( make kind-down )
" EXIT
# trap "
# ( make kind-down )
# " EXIT

kubectl wait --for=condition=ready node kind-control-plane
kubectl wait --for=condition=ready node --all
export AWS_APPLICATION_CREDENTIALS_JSON="/tmp/aws.json"
echo "{ \"accessKeyID\": \"ACCESSKEYAWSUSER\", \"secretAccessKey\": \"sEcreTKey\", \"region\": \"us-east-2\", \"endpoint\": \"http://localstack.default:4566\", \"s3ForcePathStyle\": true, \"bucketName\": \"${BUCKET_NAME}\" }" > /tmp/aws.json

make deploy-localstack BUCKET_NAME="$BUCKET_NAME"
make LOCALSTACK_HOST="localstack.default:4566" \
AWS_ACCESS_KEY_ID="ACCESSKEYAWSUSER" \
AWS_SECRET_ACCESS_KEY="sEcreTKey" \
AWS_REGION="us-east-2" \
PROVIDERS="aws" \
KUBECONFIG="$HOME/.kube/config" \
TEST_ID="$BUCKET_NAME" \
STEPS="setup,deploy,test" \
test-e2e

make kind-down
# make kind-down


10 changes: 8 additions & 2 deletions hack/deploy-localstack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ EOF

kubectl delete pods -n kube-system -l k8s-app=kube-dns
kubectl delete pods -n kube-system -l k8s-app=kube-dns
kubectl wait --for=condition=ready pod -n kube-system -l k8s-app=kube-dns
kubectl wait --for=condition=ready pod -l app=localstack
kubectl wait --for=condition=ready pod -n kube-system -l k8s-app=kube-dns --timeout=120s
kubectl wait --for=condition=ready pod -l app=localstack --timeout=240s

if ! grep -q -x "127.0.0.1 localstack.default" /etc/hosts; then
# Hostname for Localstack 'localstack.default' is missing in /etc/hosts.
# To access localstack and run e2e tests, you have to extend your /etc/hosts file.
echo "Adding Locastack host 'localstack.default' in /etc/hosts"
printf "\n127.0.0.1 localstack.default\n" >>/etc/hosts
fi

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 27468f9

Please sign in to comment.