Skip to content

Commit 3a90e49

Browse files
committed
CRDBUMPER-vendor-new-api
Vendor v1alpha7 API from github.com/NearNodeFlash/nnf-sos. ACTION: If any of the code in this repo was referencing non-local APIs, the references to them may have been inadvertently modified. Verify that any non-local APIs are being referenced by their correct versions. ACTION: Begin by running "make vet". Repair any issues that it finds. Then run "make test" and continue repairing issues until the tests pass. Signed-off-by: Blake Devcich <blake.devcich@hpe.com>
1 parent 360dd1b commit 3a90e49

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
github.com/DataWorkflowServices/dws v0.0.1-0.20250312162549-a682dcdf49b1
99
github.com/NearNodeFlash/lustre-fs-operator v0.0.1-0.20250219194350-45aad5cbbe17
1010
github.com/NearNodeFlash/nnf-ec v0.0.1-0.20250312170301-6f4fd32b0173 // indirect
11-
github.com/NearNodeFlash/nnf-sos v0.0.1-0.20250320152841-1451efa58400
11+
github.com/NearNodeFlash/nnf-sos v0.0.1-0.20250326193852-54696ee478a9
1212
github.com/onsi/ginkgo/v2 v2.22.2
1313
github.com/onsi/gomega v1.36.2
1414
go.openly.dev/pointy v1.3.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ github.com/NearNodeFlash/lustre-fs-operator v0.0.1-0.20250219194350-45aad5cbbe17
44
github.com/NearNodeFlash/lustre-fs-operator v0.0.1-0.20250219194350-45aad5cbbe17/go.mod h1:H9GBWOmFp9BGGBWDVZk0pvPWzL6jUKkieVsIIoPlzMs=
55
github.com/NearNodeFlash/nnf-ec v0.0.1-0.20250312170301-6f4fd32b0173 h1:UzkNMXM2d63MztEkjLwfBxKHFz+mXS6GzGU/expEzfk=
66
github.com/NearNodeFlash/nnf-ec v0.0.1-0.20250312170301-6f4fd32b0173/go.mod h1:lx13ustzE/+39fLECky+CFKkAV8GYlX9eaI6IGmHQkY=
7-
github.com/NearNodeFlash/nnf-sos v0.0.1-0.20250320152841-1451efa58400 h1:bxX1Fg1doGGT0VneOTdasZHYVDXz2Te683q+JWG0/is=
8-
github.com/NearNodeFlash/nnf-sos v0.0.1-0.20250320152841-1451efa58400/go.mod h1:l+Ob6Odb8fUI4Lck1orRzIgvdDJ+YXGU96+iio9hkhI=
7+
github.com/NearNodeFlash/nnf-sos v0.0.1-0.20250326193852-54696ee478a9 h1:eh/oIl7i+5MWm46lKFoi+v/4XtNTujUttsDxNIvojhM=
8+
github.com/NearNodeFlash/nnf-sos v0.0.1-0.20250326193852-54696ee478a9/go.mod h1:l+Ob6Odb8fUI4Lck1orRzIgvdDJ+YXGU96+iio9hkhI=
99
github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
1010
github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A=
1111
github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=

internal/options.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import (
3737

3838
dwsv1alpha3 "github.com/DataWorkflowServices/dws/api/v1alpha3"
3939
lusv1alpha1 "github.com/NearNodeFlash/lustre-fs-operator/api/v1alpha1"
40-
nnfv1alpha6 "github.com/NearNodeFlash/nnf-sos/api/v1alpha6"
40+
nnfv1alpha7 "github.com/NearNodeFlash/nnf-sos/api/v1alpha7"
4141

4242
"github.com/DataWorkflowServices/dws/utils/dwdparse"
4343
)
@@ -312,7 +312,7 @@ func (t *T) Prepare(ctx context.Context, k8sClient client.Client) error {
312312
By(fmt.Sprintf("Creating storage profile '%s'", o.storageProfile.name))
313313

314314
// Clone the default profile.
315-
defaultProf := &nnfv1alpha6.NnfStorageProfile{
315+
defaultProf := &nnfv1alpha7.NnfStorageProfile{
316316
ObjectMeta: metav1.ObjectMeta{
317317
Name: "default",
318318
Namespace: "nnf-system",
@@ -321,7 +321,7 @@ func (t *T) Prepare(ctx context.Context, k8sClient client.Client) error {
321321

322322
Expect(k8sClient.Get(ctx, client.ObjectKeyFromObject(defaultProf), defaultProf)).To(Succeed())
323323

324-
profile := &nnfv1alpha6.NnfStorageProfile{
324+
profile := &nnfv1alpha7.NnfStorageProfile{
325325
ObjectMeta: metav1.ObjectMeta{
326326
Name: o.storageProfile.name,
327327
Namespace: "nnf-system",
@@ -345,7 +345,7 @@ func (t *T) Prepare(ctx context.Context, k8sClient client.Client) error {
345345

346346
if o.containerProfile != nil {
347347
// Clone the provided base profile
348-
baseProfile := &nnfv1alpha6.NnfContainerProfile{
348+
baseProfile := &nnfv1alpha7.NnfContainerProfile{
349349
ObjectMeta: metav1.ObjectMeta{
350350
Name: o.containerProfile.base,
351351
Namespace: "nnf-system",
@@ -354,7 +354,7 @@ func (t *T) Prepare(ctx context.Context, k8sClient client.Client) error {
354354

355355
Expect(k8sClient.Get(ctx, client.ObjectKeyFromObject(baseProfile), baseProfile)).To(Succeed())
356356

357-
profile := &nnfv1alpha6.NnfContainerProfile{
357+
profile := &nnfv1alpha7.NnfContainerProfile{
358358
ObjectMeta: metav1.ObjectMeta{
359359
Name: o.containerProfile.name,
360360
Namespace: "nnf-system",
@@ -408,7 +408,7 @@ func (t *T) Prepare(ctx context.Context, k8sClient client.Client) error {
408408

409409
// Extract the File System Name and MGSNids from the persistent lustre instance. This
410410
// assumes an NNF Storage resource is created in the same name as the persistent instance
411-
storage := &nnfv1alpha6.NnfStorage{
411+
storage := &nnfv1alpha7.NnfStorage{
412412
ObjectMeta: metav1.ObjectMeta{
413413
Name: name,
414414
Namespace: corev1.NamespaceDefault,
@@ -545,7 +545,7 @@ func (t *T) Cleanup(ctx context.Context, k8sClient client.Client) error {
545545
if t.options.storageProfile != nil {
546546
By(fmt.Sprintf("Deleting storage profile '%s'", o.storageProfile.name))
547547

548-
profile := &nnfv1alpha6.NnfStorageProfile{
548+
profile := &nnfv1alpha7.NnfStorageProfile{
549549
ObjectMeta: metav1.ObjectMeta{
550550
Name: o.storageProfile.name,
551551
Namespace: "nnf-system",
@@ -559,7 +559,7 @@ func (t *T) Cleanup(ctx context.Context, k8sClient client.Client) error {
559559
if t.options.containerProfile != nil {
560560
By(fmt.Sprintf("Deleting container profile '%s'", o.containerProfile.name))
561561

562-
profile := &nnfv1alpha6.NnfContainerProfile{
562+
profile := &nnfv1alpha7.NnfContainerProfile{
563563
ObjectMeta: metav1.ObjectMeta{
564564
Name: o.containerProfile.name,
565565
Namespace: "nnf-system",

suite_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import (
4343

4444
dwsv1alpha3 "github.com/DataWorkflowServices/dws/api/v1alpha3"
4545
lusv1alpha1 "github.com/NearNodeFlash/lustre-fs-operator/api/v1alpha1"
46-
nnfv1alpha6 "github.com/NearNodeFlash/nnf-sos/api/v1alpha6"
46+
nnfv1alpha7 "github.com/NearNodeFlash/nnf-sos/api/v1alpha7"
4747
)
4848

4949
var (
@@ -113,7 +113,7 @@ var _ = BeforeSuite(func() {
113113
err = lusv1alpha1.AddToScheme(scheme.Scheme)
114114
Expect(err).NotTo(HaveOccurred())
115115

116-
err = nnfv1alpha6.AddToScheme(scheme.Scheme)
116+
err = nnfv1alpha7.AddToScheme(scheme.Scheme)
117117
Expect(err).NotTo(HaveOccurred())
118118

119119
By("Creating Client")

0 commit comments

Comments
 (0)