File tree 3 files changed +16
-8
lines changed
3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,15 @@ language: go
2
2
go :
3
3
- " 1.12.x"
4
4
5
- # only needed for e2e tests
5
+ # needed for e2e tests (so we can start minikube)
6
6
sudo : required
7
+ dist : xenial # We need the systemd for the kubeadm and it's default from 16.04+
7
8
8
9
env :
9
10
global :
10
11
# only needed for e2e tests
11
- - K8S_VERSION=v1.10 .0
12
- - MINIKUBE_VERSION=v0.26.1
12
+ - K8S_VERSION=v1.15 .0
13
+ - MINIKUBE_VERSION=v1.2.0
13
14
- MINIKUBE_WANTREPORTERRORPROMPT=false
14
15
- MINIKUBE_WANTUPDATENOTIFICATION=false
15
16
- CHANGE_MINIKUBE_NONE_USER=true
@@ -22,8 +23,7 @@ before_script:
22
23
- sudo curl -Lo /usr/local/bin/minikube https://github.com/kubernetes/minikube/releases/download/${MINIKUBE_VERSION}/minikube-linux-amd64
23
24
- sudo chmod +x /usr/local/bin/kubectl /usr/local/bin/minikube
24
25
- mkdir -p $HOME/.kube && touch $HOME/.kube/config
25
- # remove the --bootstrapper flag once this issue is solved: https://github.com/kubernetes/minikube/issues/2704
26
- - sudo -E /usr/local/bin/minikube start --vm-driver=none --bootstrapper=localkube --kubernetes-version=${K8S_VERSION}
26
+ - sudo -E /usr/local/bin/minikube start --vm-driver=none --kubernetes-version=${K8S_VERSION}
27
27
# Fix the kubectl context, as it is often stale.
28
28
- /usr/local/bin/minikube update-context
29
29
# Wait for Kubernetes to be up and ready.
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ brew install bpineau/tap/katafygio
107
107
108
108
You can also deploy with the provided [ helm] ( https://helm.sh/ ) chart:
109
109
``` shell
110
- helm install --name kf-backups --namespace kube-system assets/helm-chart/katafygio/
110
+ helm install --name kf-backups assets/helm-chart/katafygio/
111
111
```
112
112
113
113
## See Also
Original file line number Diff line number Diff line change @@ -55,13 +55,21 @@ func TestE2E(t *testing.T) {
55
55
56
56
func TestMain (m * testing.M ) {
57
57
deleteResources ()
58
- _ = exec .Command ("rm" , "-rf" , dumpPath )
58
+ err := exec .Command ("rm" , "-rf" , dumpPath ).Run ()
59
+ if err != nil {
60
+ fmt .Printf ("failed to clean test dump path %s: %v" , dumpPath , err )
61
+ os .Exit (1 )
62
+ }
59
63
60
64
ctx , cancel := context .WithCancel (context .Background ())
61
65
62
66
go func () {
63
67
cmd := exec .CommandContext (ctx , "katafygio" , "-e" , dumpPath )
64
- _ = cmd .Run ()
68
+ err := cmd .Run ()
69
+ if err != nil && err .Error () != "signal: killed" {
70
+ fmt .Printf ("failed to spawn katafygio: %s" , err .Error ())
71
+ os .Exit (1 )
72
+ }
65
73
}()
66
74
67
75
ret := m .Run ()
You can’t perform that action at this time.
0 commit comments