Skip to content

Commit 7166ffe

Browse files
Merge pull request #2 from OpenCHAMI/openchami-rehome
Openchami rehome
2 parents 0da5f71 + 9ac4cf9 commit 7166ffe

File tree

11 files changed

+137
-447
lines changed

11 files changed

+137
-447
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ kubernetes/.packaged/
99
*.csr
1010
*.key
1111
*.pem
12+
dist/
1213

13-
# compiled go command
14-
boot-script-service

.goreleaser.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# This is an example .goreleaser.yml file with some sensible defaults.
22
# Make sure to check the documentation at https://goreleaser.com
33

4-
project_name: hms-bss
4+
project_name: bss
55
before:
66
hooks:
77
# You may remove this if you don't use go modules.
88
- go mod tidy
99

1010
builds:
11-
- id: hms-bss
11+
- id: bss
1212
main: ./cmd/boot-script-service
1313
binary: boot-script-service
1414
goos:
@@ -22,10 +22,10 @@ builds:
2222
dockers:
2323
-
2424
image_templates:
25-
- bikeshack/{{.ProjectName}}:latest
26-
- bikeshack/{{.ProjectName}}:{{ .Tag }}
27-
- bikeshack/{{.ProjectName}}:{{ .Major }}
28-
- bikeshack/{{.ProjectName}}:{{ .Major }}.{{ .Minor }}
25+
- ghcr.io/openchami/{{.ProjectName}}:latest
26+
- ghcr.io/openchami/{{.ProjectName}}:{{ .Tag }}
27+
- ghcr.io/openchami/{{.ProjectName}}:{{ .Major }}
28+
- ghcr.io/openchami/{{.ProjectName}}:{{ .Major }}.{{ .Minor }}
2929
build_flag_templates:
3030
- "--pull"
3131
- "--label=org.opencontainers.image.created={{.Date}}"

cmd/boot-script-service/boot_data.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ import (
4242
"time"
4343

4444
base "github.com/Cray-HPE/hms-base"
45-
"github.com/Cray-HPE/hms-bss/pkg/bssTypes"
4645
hmetcd "github.com/Cray-HPE/hms-hmetcd"
46+
"github.com/OpenCHAMI/bss/pkg/bssTypes"
4747
jsonpatch "github.com/evanphx/json-patch"
4848
"github.com/google/uuid"
4949
)

cmd/boot-script-service/bss_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import (
3535
"os"
3636
"testing"
3737

38-
"github.com/Cray-HPE/hms-bss/pkg/bssTypes"
38+
"github.com/OpenCHAMI/bss/pkg/bssTypes"
3939
)
4040

4141
func TestMain(m *testing.M) {

cmd/boot-script-service/cloudInitAPI.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ package main
2828
import (
2929
"encoding/json"
3030
"fmt"
31-
"github.com/Cray-HPE/hms-bss/pkg/bssTypes"
3231
"log"
3332
"math/rand"
3433
"net/http"
3534
"strings"
3635

36+
"github.com/OpenCHAMI/bss/pkg/bssTypes"
37+
3738
yaml "gopkg.in/yaml.v2"
3839

3940
base "github.com/Cray-HPE/hms-base"

cmd/boot-script-service/default_api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ import (
5353
"time"
5454

5555
base "github.com/Cray-HPE/hms-base"
56-
"github.com/Cray-HPE/hms-bss/pkg/bssTypes"
5756
hms_s3 "github.com/Cray-HPE/hms-s3"
57+
"github.com/OpenCHAMI/bss/pkg/bssTypes"
5858
)
5959

6060
const (
@@ -177,7 +177,7 @@ func BootparametersGetAll(w http.ResponseWriter, r *http.Request) {
177177
var results []bssTypes.BootParams
178178
if useSQL {
179179
var (
180-
err error
180+
err error
181181
nodes []string
182182
)
183183
results, err = bssdb.GetBootParamsAll()

cmd/boot-script-service/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ import (
4949
"time"
5050

5151
base "github.com/Cray-HPE/hms-base"
52-
"github.com/Cray-HPE/hms-bss/internal/postgres"
5352
hmetcd "github.com/Cray-HPE/hms-hmetcd"
53+
"github.com/OpenCHAMI/bss/internal/postgres"
5454
)
5555

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

231231
func sqlOpen(host string, port uint, user, password string, ssl bool, retryCount, retryWait uint64) (postgres.BootDataDatabase, error) {
232232
var (
233-
err error
233+
err error
234234
bddb postgres.BootDataDatabase
235235
)
236236
ix := uint64(1)

cmd/boot-script-service/sm.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ import (
4545
"time"
4646

4747
base "github.com/Cray-HPE/hms-base"
48-
rf "github.com/Cray-HPE/hms-smd/pkg/redfish"
49-
"github.com/Cray-HPE/hms-smd/pkg/sm"
48+
"github.com/OpenCHAMI/smd/v2/pkg/rf"
49+
"github.com/OpenCHAMI/smd/v2/pkg/sm"
5050
)
5151

5252
const badMAC = "not available"

go.mod

Lines changed: 44 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,54 @@
1-
module github.com/Cray-HPE/hms-bss
1+
module github.com/OpenCHAMI/bss
22

3-
go 1.16
3+
go 1.20
44

55
require (
6-
github.com/Cray-HPE/hms-base v1.15.0
6+
github.com/Cray-HPE/hms-base v1.15.1
77
github.com/Cray-HPE/hms-hmetcd v1.10.2
88
github.com/Cray-HPE/hms-s3 v1.9.2
9-
github.com/Cray-HPE/hms-smd v1.30.9
109
github.com/docker/distribution v2.7.1+incompatible
1110
github.com/evanphx/json-patch v4.9.0+incompatible
12-
github.com/google/uuid v1.1.1
11+
github.com/google/uuid v1.3.0
1312
github.com/jmoiron/sqlx v1.2.0
14-
github.com/lib/pq v1.3.0
13+
github.com/lib/pq v1.10.9
1514
gopkg.in/yaml.v2 v2.4.0
1615
)
16+
17+
require github.com/OpenCHAMI/smd/v2 v2.12.15
18+
19+
require (
20+
github.com/Cray-HPE/hms-certs v1.4.0 // indirect
21+
github.com/Cray-HPE/hms-securestorage v1.13.0 // indirect
22+
github.com/aws/aws-sdk-go v1.29.2 // indirect
23+
github.com/cenkalti/backoff/v3 v3.2.2 // indirect
24+
github.com/coreos/etcd v3.3.13+incompatible // indirect
25+
github.com/fsnotify/fsnotify v1.6.0 // indirect
26+
github.com/go-jose/go-jose/v3 v3.0.0 // indirect
27+
github.com/gogo/protobuf v1.3.1 // indirect
28+
github.com/golang/protobuf v1.4.2 // indirect
29+
github.com/hashicorp/errwrap v1.1.0 // indirect
30+
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
31+
github.com/hashicorp/go-multierror v1.1.1 // indirect
32+
github.com/hashicorp/go-retryablehttp v0.7.4 // indirect
33+
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
34+
github.com/hashicorp/go-secure-stdlib/parseutil v0.1.7 // indirect
35+
github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 // indirect
36+
github.com/hashicorp/go-sockaddr v1.0.2 // indirect
37+
github.com/hashicorp/hcl v1.0.1-vault-5 // indirect
38+
github.com/hashicorp/vault/api v1.9.2 // indirect
39+
github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af // indirect
40+
github.com/mitchellh/go-homedir v1.1.0 // indirect
41+
github.com/mitchellh/mapstructure v1.5.0 // indirect
42+
github.com/pkg/errors v0.9.1 // indirect
43+
github.com/ryanuber/go-glob v1.0.0 // indirect
44+
github.com/sirupsen/logrus v1.9.3 // indirect
45+
go.etcd.io/etcd v3.3.13+incompatible // indirect
46+
golang.org/x/crypto v0.12.0 // indirect
47+
golang.org/x/net v0.14.0 // indirect
48+
golang.org/x/sys v0.11.0 // indirect
49+
golang.org/x/text v0.12.0 // indirect
50+
golang.org/x/time v0.3.0 // indirect
51+
google.golang.org/genproto v0.0.0-20200815001618-f69a88009b70 // indirect
52+
google.golang.org/grpc v1.29.1 // indirect
53+
google.golang.org/protobuf v1.25.0 // indirect
54+
)

0 commit comments

Comments
 (0)