Skip to content

Commit 625a79d

Browse files
authored
Merge pull request #583 from gravitl/feature_v0.9.3_compose_ioutil
updated ioutil refs and composes
2 parents 1387dbe + 43b9e73 commit 625a79d

File tree

26 files changed

+58
-62
lines changed

26 files changed

+58
-62
lines changed

.github/workflows/buildandrelease.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Setup go
3030
uses: actions/setup-go@v2
3131
with:
32-
go-version: 1.16
32+
go-version: 1.17
3333

3434
- name: Build
3535
run: |

.github/workflows/test-artifacts.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ jobs:
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v2
15+
- name: Setup Go
16+
uses: actions/setup-go@v2
17+
with:
18+
go-version: 1.17
1519
- name: Set up QEMU
1620
uses: docker/setup-qemu-action@v1
1721
- name: Set up Docker Buildx

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ jobs:
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v2
14+
- name: Setup Go
15+
uses: actions/setup-go@v2
16+
with:
17+
go-version: 1.17
1418
- name: run tests
1519
run: |
1620
go test -p 1 ./... -v

auth/azure-ad.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package auth
33
import (
44
"encoding/json"
55
"fmt"
6-
"io/ioutil"
6+
"io"
77
"net/http"
88

99
"github.com/gravitl/netmaker/logger"
@@ -109,7 +109,7 @@ func getAzureUserInfo(state string, code string) (*azureOauthUser, error) {
109109
return nil, fmt.Errorf("failed getting user info: %s", err.Error())
110110
}
111111
defer response.Body.Close()
112-
contents, err := ioutil.ReadAll(response.Body)
112+
contents, err := io.ReadAll(response.Body)
113113
if err != nil {
114114
return nil, fmt.Errorf("failed reading response body: %s", err.Error())
115115
}

auth/github.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package auth
33
import (
44
"encoding/json"
55
"fmt"
6-
"io/ioutil"
6+
"io"
77
"net/http"
88

99
"github.com/gravitl/netmaker/logger"
@@ -113,7 +113,7 @@ func getGithubUserInfo(state string, code string) (*githubOauthUser, error) {
113113
return nil, fmt.Errorf("failed getting user info: %s", err.Error())
114114
}
115115
defer response.Body.Close()
116-
contents, err := ioutil.ReadAll(response.Body)
116+
contents, err := io.ReadAll(response.Body)
117117
if err != nil {
118118
return nil, fmt.Errorf("failed reading response body: %s", err.Error())
119119
}

auth/google.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package auth
33
import (
44
"encoding/json"
55
"fmt"
6-
"io/ioutil"
6+
"io"
77
"net/http"
88

99
"github.com/gravitl/netmaker/logger"
@@ -104,7 +104,7 @@ func getGoogleUserInfo(state string, code string) (*googleOauthUser, error) {
104104
return nil, fmt.Errorf("failed getting user info: %s", err.Error())
105105
}
106106
defer response.Body.Close()
107-
contents, err := ioutil.ReadAll(response.Body)
107+
contents, err := io.ReadAll(response.Body)
108108
if err != nil {
109109
return nil, fmt.Errorf("failed reading response body: %s", err.Error())
110110
}

compose/docker-compose.caddy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: "3.4"
33
services:
44
netmaker:
55
container_name: netmaker
6-
image: gravitl/netmaker:v0.9.2
6+
image: gravitl/netmaker:v0.9.3
77
volumes:
88
- /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket
99
- /run/systemd/system:/run/systemd/system
@@ -40,7 +40,7 @@ services:
4040
container_name: netmaker-ui
4141
depends_on:
4242
- netmaker
43-
image: gravitl/netmaker-ui:v0.9.2
43+
image: gravitl/netmaker-ui:v0.9.3
4444
links:
4545
- "netmaker:api"
4646
ports:

compose/docker-compose.contained.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: "3.4"
33
services:
44
netmaker:
55
container_name: netmaker
6-
image: gravitl/netmaker:v0.9.2
6+
image: gravitl/netmaker:v0.9.3
77
volumes:
88
- dnsconfig:/root/config/dnsconfig
99
- /usr/bin/wg:/usr/bin/wg
@@ -38,7 +38,7 @@ services:
3838
container_name: netmaker-ui
3939
depends_on:
4040
- netmaker
41-
image: gravitl/netmaker-ui:v0.9.2
41+
image: gravitl/netmaker-ui:v0.9.3
4242
links:
4343
- "netmaker:api"
4444
ports:

compose/docker-compose.nodns.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: "3.4"
33
services:
44
netmaker:
55
container_name: netmaker
6-
image: gravitl/netmaker:v0.9.2
6+
image: gravitl/netmaker:v0.9.3
77
volumes:
88
- /usr/bin/wg:/usr/bin/wg
99
- sqldata:/root/data
@@ -36,7 +36,7 @@ services:
3636
container_name: netmaker-ui
3737
depends_on:
3838
- netmaker
39-
image: gravitl/netmaker-ui:v0.9.2
39+
image: gravitl/netmaker-ui:v0.9.3
4040
links:
4141
- "netmaker:api"
4242
ports:

compose/docker-compose.reference.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111
container_name: netmaker
1212
depends_on:
1313
- rqlite
14-
image: gravitl/netmaker:v0.9.2
14+
image: gravitl/netmaker:v0.9.3
1515
volumes: # Volume mounts necessary for CLIENT_MODE to control wireguard networking on host (except dnsconfig, which is where dns config files are stored for use by CoreDNS)
1616
- dnsconfig:/root/config/dnsconfig # Netmaker writes Corefile to this location, which gets mounted by CoreDNS for DNS configuration.
1717
- /usr/bin/wg:/usr/bin/wg
@@ -41,7 +41,7 @@ services:
4141
container_name: netmaker-ui
4242
depends_on:
4343
- netmaker
44-
image: gravitl/netmaker-ui:v0.9.2
44+
image: gravitl/netmaker-ui:v0.9.3
4545
links:
4646
- "netmaker:api"
4747
ports:

0 commit comments

Comments
 (0)