mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
Import from sigs.k8s.io/node-feature-discovery
This commit is contained in:
parent
a7764bfc82
commit
47a97db35a
17 changed files with 34 additions and 34 deletions
|
@ -1,9 +1,9 @@
|
|||
# Build node feature discovery
|
||||
FROM golang:1.8 as builder
|
||||
|
||||
ADD . /go/src/github.com/kubernetes-incubator/node-feature-discovery
|
||||
ADD . /go/src/sigs.k8s.io/node-feature-discovery
|
||||
|
||||
WORKDIR /go/src/github.com/kubernetes-incubator/node-feature-discovery
|
||||
WORKDIR /go/src/sigs.k8s.io/node-feature-discovery
|
||||
|
||||
ENV CMT_CAT_VERSION="v1.2.0"
|
||||
|
||||
|
@ -25,7 +25,7 @@ RUN go get github.com/Masterminds/glide
|
|||
RUN glide install --strip-vendor
|
||||
RUN go install \
|
||||
-ldflags "-s -w -X main.version=$NFD_VERSION" \
|
||||
github.com/kubernetes-incubator/node-feature-discovery
|
||||
sigs.k8s.io/node-feature-discovery
|
||||
RUN install -D -m644 node-feature-discovery.conf.example /etc/kubernetes/node-feature-discovery/node-feature-discovery.conf
|
||||
|
||||
RUN go test .
|
||||
|
|
28
main.go
28
main.go
|
@ -12,20 +12,20 @@ import (
|
|||
|
||||
"github.com/docopt/docopt-go"
|
||||
"github.com/ghodss/yaml"
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source"
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source/cpuid"
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source/fake"
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source/iommu"
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source/kernel"
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source/local"
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source/memory"
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source/network"
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source/panic_fake"
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source/pci"
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source/pstate"
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source/rdt"
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source/selinux"
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source/storage"
|
||||
"sigs.k8s.io/node-feature-discovery/source"
|
||||
"sigs.k8s.io/node-feature-discovery/source/cpuid"
|
||||
"sigs.k8s.io/node-feature-discovery/source/fake"
|
||||
"sigs.k8s.io/node-feature-discovery/source/iommu"
|
||||
"sigs.k8s.io/node-feature-discovery/source/kernel"
|
||||
"sigs.k8s.io/node-feature-discovery/source/local"
|
||||
"sigs.k8s.io/node-feature-discovery/source/memory"
|
||||
"sigs.k8s.io/node-feature-discovery/source/network"
|
||||
"sigs.k8s.io/node-feature-discovery/source/panic_fake"
|
||||
"sigs.k8s.io/node-feature-discovery/source/pci"
|
||||
"sigs.k8s.io/node-feature-discovery/source/pstate"
|
||||
"sigs.k8s.io/node-feature-discovery/source/rdt"
|
||||
"sigs.k8s.io/node-feature-discovery/source/selinux"
|
||||
"sigs.k8s.io/node-feature-discovery/source/storage"
|
||||
api "k8s.io/api/core/v1"
|
||||
meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
k8sclient "k8s.io/client-go/kubernetes"
|
||||
|
|
|
@ -9,14 +9,14 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source"
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source/fake"
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source/panic_fake"
|
||||
. "github.com/smartystreets/goconvey/convey"
|
||||
"github.com/vektra/errors"
|
||||
api "k8s.io/api/core/v1"
|
||||
meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
k8sclient "k8s.io/client-go/kubernetes"
|
||||
"sigs.k8s.io/node-feature-discovery/source"
|
||||
"sigs.k8s.io/node-feature-discovery/source/fake"
|
||||
"sigs.k8s.io/node-feature-discovery/source/panic_fake"
|
||||
)
|
||||
|
||||
func TestDiscoveryWithMockSources(t *testing.T) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source"
|
||||
"sigs.k8s.io/node-feature-discovery/source"
|
||||
"github.com/stretchr/testify/mock"
|
||||
)
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ package cpuid
|
|||
|
||||
import (
|
||||
"github.com/klauspost/cpuid"
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source"
|
||||
"sigs.k8s.io/node-feature-discovery/source"
|
||||
)
|
||||
|
||||
// Source implements FeatureSource.
|
||||
|
|
|
@ -16,7 +16,7 @@ limitations under the License.
|
|||
|
||||
package fake
|
||||
|
||||
import "github.com/kubernetes-incubator/node-feature-discovery/source"
|
||||
import "sigs.k8s.io/node-feature-discovery/source"
|
||||
|
||||
// Source implements FeatureSource.
|
||||
type Source struct{}
|
||||
|
|
|
@ -20,7 +20,7 @@ import (
|
|||
"fmt"
|
||||
"io/ioutil"
|
||||
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source"
|
||||
"sigs.k8s.io/node-feature-discovery/source"
|
||||
)
|
||||
|
||||
// Implement FeatureSource interface
|
||||
|
|
|
@ -25,7 +25,7 @@ import (
|
|||
"regexp"
|
||||
"strings"
|
||||
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source"
|
||||
"sigs.k8s.io/node-feature-discovery/source"
|
||||
)
|
||||
|
||||
// Configuration file options
|
||||
|
|
|
@ -26,7 +26,7 @@ import (
|
|||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source"
|
||||
"sigs.k8s.io/node-feature-discovery/source"
|
||||
)
|
||||
|
||||
// Config
|
||||
|
|
|
@ -21,7 +21,7 @@ import (
|
|||
"io/ioutil"
|
||||
"strings"
|
||||
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source"
|
||||
"sigs.k8s.io/node-feature-discovery/source"
|
||||
)
|
||||
|
||||
// Source implements FeatureSource.
|
||||
|
|
|
@ -25,7 +25,7 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source"
|
||||
"sigs.k8s.io/node-feature-discovery/source"
|
||||
)
|
||||
|
||||
// Source implements FeatureSource.
|
||||
|
|
|
@ -16,7 +16,7 @@ limitations under the License.
|
|||
|
||||
package panic_fake
|
||||
|
||||
import "github.com/kubernetes-incubator/node-feature-discovery/source"
|
||||
import "sigs.k8s.io/node-feature-discovery/source"
|
||||
|
||||
// Source implements FeatureSource.
|
||||
type Source struct{}
|
||||
|
|
|
@ -24,7 +24,7 @@ import (
|
|||
"path"
|
||||
"strings"
|
||||
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source"
|
||||
"sigs.k8s.io/node-feature-discovery/source"
|
||||
)
|
||||
|
||||
type pciDeviceInfo map[string]string
|
||||
|
|
|
@ -21,7 +21,7 @@ import (
|
|||
"io/ioutil"
|
||||
"runtime"
|
||||
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source"
|
||||
"sigs.k8s.io/node-feature-discovery/source"
|
||||
)
|
||||
|
||||
// Source implements FeatureSource.
|
||||
|
|
|
@ -20,7 +20,7 @@ import (
|
|||
"os/exec"
|
||||
|
||||
"github.com/golang/glog"
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source"
|
||||
"sigs.k8s.io/node-feature-discovery/source"
|
||||
)
|
||||
|
||||
// Source implements FeatureSource.
|
||||
|
|
|
@ -20,7 +20,7 @@ import (
|
|||
"fmt"
|
||||
"io/ioutil"
|
||||
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source"
|
||||
"sigs.k8s.io/node-feature-discovery/source"
|
||||
)
|
||||
|
||||
type Source struct{}
|
||||
|
|
|
@ -20,7 +20,7 @@ import (
|
|||
"fmt"
|
||||
"io/ioutil"
|
||||
|
||||
"github.com/kubernetes-incubator/node-feature-discovery/source"
|
||||
"sigs.k8s.io/node-feature-discovery/source"
|
||||
)
|
||||
|
||||
// Source implements FeatureSource.
|
||||
|
|
Loading…
Reference in a new issue