mirror of
https://github.com/kairos-io/provider-kairos.git
synced 2025-09-12 13:24:34 +00:00
Bump deps (#601)
This commit is contained in:
8
go.mod
8
go.mod
@@ -7,7 +7,7 @@ replace github.com/elastic/gosigar => github.com/mudler/gosigar v0.14.3-0.202205
|
|||||||
require (
|
require (
|
||||||
github.com/creack/pty v1.1.21
|
github.com/creack/pty v1.1.21
|
||||||
github.com/gliderlabs/ssh v0.3.7
|
github.com/gliderlabs/ssh v0.3.7
|
||||||
github.com/ipfs/go-log v1.0.5
|
github.com/ipfs/go-log/v2 v2.5.1
|
||||||
github.com/kairos-io/go-nodepair v0.2.0
|
github.com/kairos-io/go-nodepair v0.2.0
|
||||||
github.com/kairos-io/kairos-agent/v2 v2.13.0
|
github.com/kairos-io/kairos-agent/v2 v2.13.0
|
||||||
github.com/kairos-io/kairos-sdk v0.3.1
|
github.com/kairos-io/kairos-sdk v0.3.1
|
||||||
@@ -20,8 +20,6 @@ require (
|
|||||||
github.com/samber/lo v1.45.0
|
github.com/samber/lo v1.45.0
|
||||||
github.com/urfave/cli/v2 v2.27.2
|
github.com/urfave/cli/v2 v2.27.2
|
||||||
go.uber.org/zap v1.27.0
|
go.uber.org/zap v1.27.0
|
||||||
gopkg.in/yaml.v1 v1.0.0-20140924161607-9f9df34309c0
|
|
||||||
gopkg.in/yaml.v2 v2.4.0
|
|
||||||
gopkg.in/yaml.v3 v3.0.1
|
gopkg.in/yaml.v3 v3.0.1
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -115,7 +113,7 @@ require (
|
|||||||
github.com/ipfs/boxo v0.10.0 // indirect
|
github.com/ipfs/boxo v0.10.0 // indirect
|
||||||
github.com/ipfs/go-cid v0.4.1 // indirect
|
github.com/ipfs/go-cid v0.4.1 // indirect
|
||||||
github.com/ipfs/go-datastore v0.6.0 // indirect
|
github.com/ipfs/go-datastore v0.6.0 // indirect
|
||||||
github.com/ipfs/go-log/v2 v2.5.1 // indirect
|
github.com/ipfs/go-log v1.0.5 // indirect
|
||||||
github.com/ipld/go-ipld-prime v0.20.0 // indirect
|
github.com/ipld/go-ipld-prime v0.20.0 // indirect
|
||||||
github.com/itchyny/gojq v0.12.16 // indirect
|
github.com/itchyny/gojq v0.12.16 // indirect
|
||||||
github.com/itchyny/timefmt-go v0.1.6 // indirect
|
github.com/itchyny/timefmt-go v0.1.6 // indirect
|
||||||
@@ -308,6 +306,8 @@ require (
|
|||||||
gopkg.in/djherbis/times.v1 v1.3.0 // indirect
|
gopkg.in/djherbis/times.v1 v1.3.0 // indirect
|
||||||
gopkg.in/ini.v1 v1.67.0 // indirect
|
gopkg.in/ini.v1 v1.67.0 // indirect
|
||||||
gopkg.in/warnings.v0 v0.1.2 // indirect
|
gopkg.in/warnings.v0 v0.1.2 // indirect
|
||||||
|
gopkg.in/yaml.v1 v1.0.0-20140924161607-9f9df34309c0 // indirect
|
||||||
|
gopkg.in/yaml.v2 v2.4.0 // indirect
|
||||||
howett.net/plist v1.0.0 // indirect
|
howett.net/plist v1.0.0 // indirect
|
||||||
k8s.io/klog/v2 v2.120.1 // indirect
|
k8s.io/klog/v2 v2.120.1 // indirect
|
||||||
k8s.io/mount-utils v0.30.2 // indirect
|
k8s.io/mount-utils v0.30.2 // indirect
|
||||||
|
@@ -6,7 +6,7 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/ipfs/go-log"
|
"github.com/ipfs/go-log/v2"
|
||||||
qr "github.com/kairos-io/go-nodepair/qrcode"
|
qr "github.com/kairos-io/go-nodepair/qrcode"
|
||||||
"github.com/kairos-io/kairos-sdk/utils"
|
"github.com/kairos-io/kairos-sdk/utils"
|
||||||
"github.com/mudler/edgevpn/api"
|
"github.com/mudler/edgevpn/api"
|
||||||
|
@@ -9,12 +9,13 @@ import (
|
|||||||
. "github.com/kairos-io/provider-kairos/v2/internal/cli/token"
|
. "github.com/kairos-io/provider-kairos/v2/internal/cli/token"
|
||||||
. "github.com/onsi/ginkgo/v2"
|
. "github.com/onsi/ginkgo/v2"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
"gopkg.in/yaml.v2"
|
"gopkg.in/yaml.v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
type TConfig struct {
|
type TConfig struct {
|
||||||
Kairos struct {
|
Kairos struct {
|
||||||
NetworkToken string `yaml:"network_token"`
|
NetworkToken string `yaml:"network_token"`
|
||||||
|
P2P string `yaml:"p2p"`
|
||||||
} `yaml:"p2p"`
|
} `yaml:"p2p"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -47,14 +48,12 @@ fooz: "bar"
|
|||||||
Expect(err).ToNot(HaveOccurred())
|
Expect(err).ToNot(HaveOccurred())
|
||||||
|
|
||||||
res := map[interface{}]interface{}{}
|
res := map[interface{}]interface{}{}
|
||||||
|
|
||||||
err = yaml.Unmarshal(content, &res)
|
err = yaml.Unmarshal(content, &res)
|
||||||
Expect(err).ToNot(HaveOccurred())
|
Expect(err).ToNot(HaveOccurred())
|
||||||
|
|
||||||
Expect(res).To(Equal(map[interface{}]interface{}{
|
// Check by element as they can be unordered
|
||||||
"p2p": map[interface{}]interface{}{"network_token": "baz"},
|
Expect(res["p2p"]).To(Equal(map[string]interface{}{"network_token": "baz"}))
|
||||||
"bb": map[interface{}]interface{}{"nothing": "foo"},
|
Expect(res["bb"]).To(Equal(map[string]interface{}{"nothing": "foo"}))
|
||||||
}))
|
|
||||||
|
|
||||||
hasHeader, _ := config.HasHeader(string(content), "#node-config")
|
hasHeader, _ := config.HasHeader(string(content), "#node-config")
|
||||||
Expect(hasHeader).To(BeTrue(), string(content))
|
Expect(hasHeader).To(BeTrue(), string(content))
|
||||||
|
@@ -7,7 +7,7 @@ import (
|
|||||||
"os/exec"
|
"os/exec"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/ipfs/go-log"
|
"github.com/ipfs/go-log/v2"
|
||||||
|
|
||||||
"github.com/creack/pty"
|
"github.com/creack/pty"
|
||||||
"github.com/gliderlabs/ssh"
|
"github.com/gliderlabs/ssh"
|
||||||
|
@@ -11,7 +11,7 @@ import (
|
|||||||
"github.com/kairos-io/kairos-sdk/schema"
|
"github.com/kairos-io/kairos-sdk/schema"
|
||||||
"github.com/mudler/edgevpn/pkg/node"
|
"github.com/mudler/edgevpn/pkg/node"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
"gopkg.in/yaml.v1"
|
"gopkg.in/yaml.v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
// do not edit version here, it is set by LDFLAGS
|
// do not edit version here, it is set by LDFLAGS
|
||||||
|
@@ -6,7 +6,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
logging "github.com/ipfs/go-log"
|
logging "github.com/ipfs/go-log/v2"
|
||||||
edgeVPNClient "github.com/mudler/edgevpn/api/client"
|
edgeVPNClient "github.com/mudler/edgevpn/api/client"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
|
@@ -12,7 +12,7 @@ import (
|
|||||||
"github.com/mudler/go-pluggable"
|
"github.com/mudler/go-pluggable"
|
||||||
. "github.com/onsi/ginkgo/v2"
|
. "github.com/onsi/ginkgo/v2"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
"gopkg.in/yaml.v2"
|
"gopkg.in/yaml.v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ = Describe("Bootstrap provider", func() {
|
var _ = Describe("Bootstrap provider", func() {
|
||||||
|
@@ -13,7 +13,7 @@ import (
|
|||||||
"github.com/mudler/go-pluggable"
|
"github.com/mudler/go-pluggable"
|
||||||
. "github.com/onsi/ginkgo/v2"
|
. "github.com/onsi/ginkgo/v2"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
"gopkg.in/yaml.v2"
|
"gopkg.in/yaml.v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ = Describe("Challenge provider", func() {
|
var _ = Describe("Challenge provider", func() {
|
||||||
|
Reference in New Issue
Block a user