Skip to content

Commit 26602c9

Browse files
authored
Merge pull request #1125 from stashed/fix-ci-tests
2 parents 31de588 + 54f87b7 commit 26602c9

36 files changed

+496
-8381
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,4 @@ jobs:
123123
make install
124124
echo
125125
sleep 10
126-
make e2e-tests
126+
make e2e-parallel

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ install:
367367
--namespace=kube-system \
368368
--set operator.registry=$(REGISTRY) \
369369
--set operator.tag=$(TAG) \
370-
--set imagePullPolicy=Always \
370+
--set imagePullPolicy=IfNotPresent \
371371
$(IMAGE_PULL_SECRETS); \
372372
kubectl wait --for=condition=Available apiservice -l 'app.kubernetes.io/name=stash,app.kubernetes.io/instance=stash' --timeout=5m
373373

@@ -470,3 +470,10 @@ run:
470470
--authentication-skip-lookup \
471471
--docker-registry=$(REGISTRY) \
472472
--image-tag=$(TAG)
473+
474+
# make and load docker image to kind cluster
475+
.PHONY: push-to-kind
476+
push-to-kind: container
477+
@echo "Loading docker image into kind cluster...."
478+
@kind load docker-image $(REGISTRY)/stash:$(TAG)
479+
@echo "Image has been pushed successfully into kind cluster."

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ replace (
6060
github.com/Azure/go-autorest/autorest/validation => github.com/Azure/go-autorest/autorest/validation v0.1.0
6161
github.com/Azure/go-autorest/logger => github.com/Azure/go-autorest/logger v0.1.0
6262
github.com/Azure/go-autorest/tracing => github.com/Azure/go-autorest/tracing v0.5.0
63+
github.com/imdario/mergo => github.com/imdario/mergo v0.3.5
6364
github.com/prometheus/client_golang => github.com/prometheus/client_golang v1.0.0
6465
go.etcd.io/etcd => go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738
6566
google.golang.org/grpc => google.golang.org/grpc v1.26.0

go.sum

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,8 @@ github.com/heketi/tests v0.0.0-20151005000721-f3775cbcefd6/go.mod h1:xGMAM8JLi7U
370370
github.com/howeyc/gopass v0.0.0-20170109162249-bf9dde6d0d2c/go.mod h1:lADxMC39cJJqL93Duh1xhAs4I2Zs8mKS89XWXFGp9cs=
371371
github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI=
372372
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
373+
github.com/imdario/mergo v0.3.5 h1:JboBksRwiiAJWvIYJVo46AfV+IAIKZpfrSzVKj42R4Q=
373374
github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA=
374-
github.com/imdario/mergo v0.3.9 h1:UauaLniWCFHWd+Jp9oCEkTBj8VO/9DKg3PV3VCNMDIg=
375-
github.com/imdario/mergo v0.3.9/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA=
376375
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
377376
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
378377
github.com/jellevandenhooff/dkim v0.0.0-20150330215556-f50fe3d243e1/go.mod h1:E0B/fFc00Y+Rasa88328GlI/XbtyysCtTHZS8h7IrBU=

pkg/controller/restore_session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ func (c *StashController) applyRestoreSessionReconciliationLogic(restoreSession
194194
return nil
195195
}
196196

197-
if restoreSession.Spec.Target != nil {
197+
if restoreSession.Spec.Target != nil && restoreSession.Spec.Target.Ref.Name != "" {
198198
tref := restoreSession.Spec.Target.Ref
199199
wc := util.WorkloadClients{
200200
KubeClient: c.kubeClient,

0 commit comments

Comments
 (0)