Skip to content

Commit

Permalink
add node-installer
Browse files Browse the repository at this point in the history
  • Loading branch information
voigt committed Feb 19, 2024
1 parent 458ebde commit c5729df
Show file tree
Hide file tree
Showing 11 changed files with 86 additions and 395 deletions.
5 changes: 2 additions & 3 deletions cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,16 @@ import (
"os"
"path"

"github.com/kwasm/kwasm-node-installer/pkg/containerd"
"github.com/kwasm/kwasm-node-installer/pkg/shim"
"github.com/spf13/cobra"
"github.com/spinkube/runtime-class-manager/pkg/containerd"
"github.com/spinkube/runtime-class-manager/pkg/shim"
)

// installCmd represents the install command
var installCmd = &cobra.Command{
Use: "install",
Short: "Install containerd shims",
Run: func(cmd *cobra.Command, args []string) {

// Get file or directory information.
info, err := os.Stat(config.Kwasm.AssetPath)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion main.go → cmd/node-installer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package main

import "github.com/kwasm/kwasm-node-installer/cmd"
import "github.com/spinkube/runtime-class-manager/cmd"

func main() {
cmd.Execute()
Expand Down
File renamed without changes.
6 changes: 2 additions & 4 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,13 @@ import (
"os"
"strings"

cfg "github.com/kwasm/kwasm-node-installer/pkg/config"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"
cfg "github.com/spinkube/runtime-class-manager/pkg/config"
)

var (
config cfg.Config
)
var config cfg.Config

// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Expand Down
4 changes: 2 additions & 2 deletions cmd/uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (

"github.com/spf13/cobra"

"github.com/kwasm/kwasm-node-installer/pkg/containerd"
"github.com/kwasm/kwasm-node-installer/pkg/shim"
"github.com/spinkube/runtime-class-manager/pkg/containerd"
"github.com/spinkube/runtime-class-manager/pkg/shim"
)

// uninstallCmd represents the uninstall command
Expand Down
25 changes: 20 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ module github.com/spinkube/runtime-class-manager
go 1.21

require (
github.com/mitchellh/go-ps v1.0.0
github.com/onsi/ginkgo/v2 v2.15.0
github.com/onsi/gomega v1.31.1
github.com/prometheus/common v0.47.0
github.com/rs/zerolog v1.31.0
github.com/spf13/cobra v1.7.0
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.18.2
k8s.io/api v0.29.2
k8s.io/apimachinery v0.29.2
k8s.io/client-go v0.29.2
Expand All @@ -16,7 +20,7 @@ require (
require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
github.com/evanphx/json-patch/v5 v5.8.0 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
Expand All @@ -33,35 +37,46 @@ require (
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/google/uuid v1.4.0 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/imdario/mergo v0.3.6 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/pelletier/go-toml/v2 v2.1.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/prometheus/client_golang v1.18.0 // indirect
github.com/prometheus/client_model v0.5.0 // indirect
github.com/prometheus/procfs v0.12.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/sagikazarmark/locafero v0.4.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spf13/afero v1.11.0 // indirect
github.com/spf13/cast v1.6.0 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.26.0 // indirect
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e // indirect
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect
golang.org/x/net v0.20.0 // indirect
golang.org/x/oauth2 v0.16.0 // indirect
golang.org/x/sys v0.16.0 // indirect
golang.org/x/term v0.16.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/time v0.3.0 // indirect
golang.org/x/time v0.5.0 // indirect
golang.org/x/tools v0.16.1 // indirect
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.32.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/apiextensions-apiserver v0.29.0 // indirect
Expand Down
Loading

0 comments on commit c5729df

Please sign in to comment.