Skip to content

Commit

Permalink
Merge pull request #2 from OpenCHAMI/openchami-rehome
Browse files Browse the repository at this point in the history
Openchami rehome
  • Loading branch information
alexlovelltroy authored Nov 2, 2023
2 parents 0da5f71 + 9ac4cf9 commit 7166ffe
Show file tree
Hide file tree
Showing 11 changed files with 137 additions and 447 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ kubernetes/.packaged/
*.csr
*.key
*.pem
dist/

# compiled go command
boot-script-service
12 changes: 6 additions & 6 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com

project_name: hms-bss
project_name: bss
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy

builds:
- id: hms-bss
- id: bss
main: ./cmd/boot-script-service
binary: boot-script-service
goos:
Expand All @@ -22,10 +22,10 @@ builds:
dockers:
-
image_templates:
- bikeshack/{{.ProjectName}}:latest
- bikeshack/{{.ProjectName}}:{{ .Tag }}
- bikeshack/{{.ProjectName}}:{{ .Major }}
- bikeshack/{{.ProjectName}}:{{ .Major }}.{{ .Minor }}
- ghcr.io/openchami/{{.ProjectName}}:latest
- ghcr.io/openchami/{{.ProjectName}}:{{ .Tag }}
- ghcr.io/openchami/{{.ProjectName}}:{{ .Major }}
- ghcr.io/openchami/{{.ProjectName}}:{{ .Major }}.{{ .Minor }}
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
Expand Down
2 changes: 1 addition & 1 deletion cmd/boot-script-service/boot_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ import (
"time"

base "github.com/Cray-HPE/hms-base"
"github.com/Cray-HPE/hms-bss/pkg/bssTypes"
hmetcd "github.com/Cray-HPE/hms-hmetcd"
"github.com/OpenCHAMI/bss/pkg/bssTypes"
jsonpatch "github.com/evanphx/json-patch"
"github.com/google/uuid"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/boot-script-service/bss_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (
"os"
"testing"

"github.com/Cray-HPE/hms-bss/pkg/bssTypes"
"github.com/OpenCHAMI/bss/pkg/bssTypes"
)

func TestMain(m *testing.M) {
Expand Down
3 changes: 2 additions & 1 deletion cmd/boot-script-service/cloudInitAPI.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ package main
import (
"encoding/json"
"fmt"
"github.com/Cray-HPE/hms-bss/pkg/bssTypes"
"log"
"math/rand"
"net/http"
"strings"

"github.com/OpenCHAMI/bss/pkg/bssTypes"

yaml "gopkg.in/yaml.v2"

base "github.com/Cray-HPE/hms-base"
Expand Down
4 changes: 2 additions & 2 deletions cmd/boot-script-service/default_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ import (
"time"

base "github.com/Cray-HPE/hms-base"
"github.com/Cray-HPE/hms-bss/pkg/bssTypes"
hms_s3 "github.com/Cray-HPE/hms-s3"
"github.com/OpenCHAMI/bss/pkg/bssTypes"
)

const (
Expand Down Expand Up @@ -177,7 +177,7 @@ func BootparametersGetAll(w http.ResponseWriter, r *http.Request) {
var results []bssTypes.BootParams
if useSQL {
var (
err error
err error
nodes []string
)
results, err = bssdb.GetBootParamsAll()
Expand Down
4 changes: 2 additions & 2 deletions cmd/boot-script-service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ import (
"time"

base "github.com/Cray-HPE/hms-base"
"github.com/Cray-HPE/hms-bss/internal/postgres"
hmetcd "github.com/Cray-HPE/hms-hmetcd"
"github.com/OpenCHAMI/bss/internal/postgres"
)

const kvDefaultRetryCount uint64 = 10
Expand Down Expand Up @@ -230,7 +230,7 @@ func sqlGetCreds() (user, password string, err error) {

func sqlOpen(host string, port uint, user, password string, ssl bool, retryCount, retryWait uint64) (postgres.BootDataDatabase, error) {
var (
err error
err error
bddb postgres.BootDataDatabase
)
ix := uint64(1)
Expand Down
4 changes: 2 additions & 2 deletions cmd/boot-script-service/sm.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ import (
"time"

base "github.com/Cray-HPE/hms-base"
rf "github.com/Cray-HPE/hms-smd/pkg/redfish"
"github.com/Cray-HPE/hms-smd/pkg/sm"
"github.com/OpenCHAMI/smd/v2/pkg/rf"
"github.com/OpenCHAMI/smd/v2/pkg/sm"
)

const badMAC = "not available"
Expand Down
50 changes: 44 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,16 +1,54 @@
module github.com/Cray-HPE/hms-bss
module github.com/OpenCHAMI/bss

go 1.16
go 1.20

require (
github.com/Cray-HPE/hms-base v1.15.0
github.com/Cray-HPE/hms-base v1.15.1
github.com/Cray-HPE/hms-hmetcd v1.10.2
github.com/Cray-HPE/hms-s3 v1.9.2
github.com/Cray-HPE/hms-smd v1.30.9
github.com/docker/distribution v2.7.1+incompatible
github.com/evanphx/json-patch v4.9.0+incompatible
github.com/google/uuid v1.1.1
github.com/google/uuid v1.3.0
github.com/jmoiron/sqlx v1.2.0
github.com/lib/pq v1.3.0
github.com/lib/pq v1.10.9
gopkg.in/yaml.v2 v2.4.0
)

require github.com/OpenCHAMI/smd/v2 v2.12.15

require (
github.com/Cray-HPE/hms-certs v1.4.0 // indirect
github.com/Cray-HPE/hms-securestorage v1.13.0 // indirect
github.com/aws/aws-sdk-go v1.29.2 // indirect
github.com/cenkalti/backoff/v3 v3.2.2 // indirect
github.com/coreos/etcd v3.3.13+incompatible // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/go-jose/go-jose/v3 v3.0.0 // indirect
github.com/gogo/protobuf v1.3.1 // indirect
github.com/golang/protobuf v1.4.2 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-retryablehttp v0.7.4 // indirect
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
github.com/hashicorp/go-secure-stdlib/parseutil v0.1.7 // indirect
github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 // indirect
github.com/hashicorp/go-sockaddr v1.0.2 // indirect
github.com/hashicorp/hcl v1.0.1-vault-5 // indirect
github.com/hashicorp/vault/api v1.9.2 // indirect
github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/ryanuber/go-glob v1.0.0 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
go.etcd.io/etcd v3.3.13+incompatible // indirect
golang.org/x/crypto v0.12.0 // indirect
golang.org/x/net v0.14.0 // indirect
golang.org/x/sys v0.11.0 // indirect
golang.org/x/text v0.12.0 // indirect
golang.org/x/time v0.3.0 // indirect
google.golang.org/genproto v0.0.0-20200815001618-f69a88009b70 // indirect
google.golang.org/grpc v1.29.1 // indirect
google.golang.org/protobuf v1.25.0 // indirect
)
Loading

0 comments on commit 7166ffe

Please sign in to comment.