Skip to content

Commit

Permalink
Release v0.0.2 #patch (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
vultj authored Jun 20, 2024
2 parents c62a70c + eb0e4ea commit 5538806
Show file tree
Hide file tree
Showing 42 changed files with 35 additions and 30 deletions.
6 changes: 3 additions & 3 deletions cmd/slinkee/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (

"github.com/vultr/slinkee/cmd/slinkee/config"
"github.com/vultr/slinkee/cmd/slinkee/metrics"
"github.com/vultr/slinkee/spec/helpers"
"github.com/vultr/slinkee/spec/probes"
"github.com/vultr/slinkee/spec/reconciler"
"github.com/vultr/slinkee/pkg/helpers"
"github.com/vultr/slinkee/pkg/probes"
"github.com/vultr/slinkee/pkg/reconciler"

"go.uber.org/zap"
"golang.org/x/sync/errgroup"
Expand Down
6 changes: 3 additions & 3 deletions cmd/slurmabler/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"time"

"github.com/vultr/slinkee/cmd/slurmabler/config"
"github.com/vultr/slinkee/spec/connectors"
"github.com/vultr/slinkee/spec/labeler"
"github.com/vultr/slinkee/spec/slurm"
"github.com/vultr/slinkee/pkg/connectors"
"github.com/vultr/slinkee/pkg/labeler"
"github.com/vultr/slinkee/pkg/slurm"

"go.uber.org/zap"
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion spec/clientset/v1/api.go → pkg/clientset/v1/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package v1
import (
"context"

v1 "github.com/vultr/slinkee/spec/api/types/v1"
v1 "github.com/vultr/slinkee/pkg/api/types/v1"

"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/client-go/kubernetes/scheme"
Expand Down
3 changes: 2 additions & 1 deletion spec/clientset/v1/slinkee.go → pkg/clientset/v1/slinkee.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ package v1
import (
"context"

v1 "github.com/vultr/slinkee/spec/api/types/v1"
v1 "github.com/vultr/slinkee/pkg/api/types/v1"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/watch"
"k8s.io/client-go/kubernetes/scheme"
Expand Down
File renamed without changes.
5 changes: 3 additions & 2 deletions spec/connectors/k8s.go → pkg/connectors/k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import (
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"

api "github.com/vultr/slinkee/spec/api/types/v1"
client "github.com/vultr/slinkee/spec/clientset/v1"
api "github.com/vultr/slinkee/pkg/api/types/v1"
client "github.com/vultr/slinkee/pkg/clientset/v1"

"k8s.io/client-go/kubernetes/scheme"
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"time"

v1s "github.com/vultr/slinkee/spec/api/types/v1"
"github.com/vultr/slinkee/spec/connectors"
"github.com/vultr/slinkee/spec/slurm"
v1s "github.com/vultr/slinkee/pkg/api/types/v1"
"github.com/vultr/slinkee/pkg/connectors"
"github.com/vultr/slinkee/pkg/slurm"

"go.uber.org/zap"
"k8s.io/apimachinery/pkg/api/errors"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion spec/slurm/create.go → pkg/slurm/create.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package slurm

import (
v1s "github.com/vultr/slinkee/spec/api/types/v1"
v1s "github.com/vultr/slinkee/pkg/api/types/v1"

v1 "k8s.io/api/core/v1"
"k8s.io/client-go/kubernetes"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"

"github.com/vultr/slinkee/cmd/slinkee/config"
v1s "github.com/vultr/slinkee/spec/api/types/v1"
v1s "github.com/vultr/slinkee/pkg/api/types/v1"

"go.uber.org/zap"
appsv1 "k8s.io/api/apps/v1"
Expand Down
4 changes: 2 additions & 2 deletions spec/slurm/create_munged.go → pkg/slurm/create_munged.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"fmt"

"github.com/vultr/slinkee/cmd/slinkee/config"
v1s "github.com/vultr/slinkee/spec/api/types/v1"
"github.com/vultr/slinkee/spec/munge"
v1s "github.com/vultr/slinkee/pkg/api/types/v1"
"github.com/vultr/slinkee/pkg/munge"

"go.uber.org/zap"
v1 "k8s.io/api/core/v1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ package slurm
import (
"context"

v1s "github.com/vultr/slinkee/spec/api/types/v1"
v1s "github.com/vultr/slinkee/pkg/api/types/v1"

"go.uber.org/zap"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import (
"strconv"
"strings"

v1s "github.com/vultr/slinkee/spec/api/types/v1"
v1s "github.com/vultr/slinkee/pkg/api/types/v1"

"go.uber.org/zap"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"time"

"github.com/vultr/slinkee/cmd/slinkee/config"
v1s "github.com/vultr/slinkee/spec/api/types/v1"
v1s "github.com/vultr/slinkee/pkg/api/types/v1"

"go.uber.org/zap"
appsv1 "k8s.io/api/apps/v1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"

"github.com/vultr/slinkee/cmd/slinkee/config"
v1s "github.com/vultr/slinkee/spec/api/types/v1"
v1s "github.com/vultr/slinkee/pkg/api/types/v1"

"go.uber.org/zap"
appsv1 "k8s.io/api/apps/v1"
Expand Down
2 changes: 1 addition & 1 deletion spec/slurm/create_slurmd.go → pkg/slurm/create_slurmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"

"github.com/vultr/slinkee/cmd/slinkee/config"
v1s "github.com/vultr/slinkee/spec/api/types/v1"
v1s "github.com/vultr/slinkee/pkg/api/types/v1"

"go.uber.org/zap"
appsv1 "k8s.io/api/apps/v1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"

"github.com/vultr/slinkee/cmd/slinkee/config"
v1s "github.com/vultr/slinkee/spec/api/types/v1"
v1s "github.com/vultr/slinkee/pkg/api/types/v1"

"go.uber.org/zap"
appsv1 "k8s.io/api/apps/v1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import (
"html/template"
"strings"

v1s "github.com/vultr/slinkee/spec/api/types/v1"
v1s "github.com/vultr/slinkee/pkg/api/types/v1"

"go.uber.org/zap"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"

"github.com/vultr/slinkee/cmd/slinkee/config"
v1s "github.com/vultr/slinkee/spec/api/types/v1"
v1s "github.com/vultr/slinkee/pkg/api/types/v1"

"go.uber.org/zap"
appsv1 "k8s.io/api/apps/v1"
Expand Down
4 changes: 2 additions & 2 deletions spec/slurm/create_test.go → pkg/slurm/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"testing"

v1s "github.com/vultr/slinkee/spec/api/types/v1"
v1s "github.com/vultr/slinkee/pkg/api/types/v1"

"k8s.io/client-go/kubernetes/fake"
)
Expand All @@ -18,7 +18,7 @@ type Fixture5 struct {
description string
}

func TestCreateWorkload(t *testing.T) {
func TestCreateSlurm(t *testing.T) {
os.Args = append(os.Args, "-config=../../cmd/slinkee/config.yaml")

client := fake.NewSimpleClientset()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"

"github.com/vultr/slinkee/cmd/slinkee/config"
v1s "github.com/vultr/slinkee/spec/api/types/v1"
v1s "github.com/vultr/slinkee/pkg/api/types/v1"

"go.uber.org/zap"
appsv1 "k8s.io/api/apps/v1"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion spec/slurm/delete_test.go → pkg/slurm/delete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type Fixture6 struct {
description string
}

func TestWorkloadDelete(t *testing.T) {
func TestSlurmDelete(t *testing.T) {
client := fake.NewSimpleClientset(
&batchv1.JobList{
Items: jobsFixture,
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion spec/slurm/read_test.go → pkg/slurm/read_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ type Fixture1 struct {
description string
}

func TestWorkloadExists(t *testing.T) {
func TestSlurmExists(t *testing.T) {
client := fake.NewSimpleClientset(
&batchv1.JobList{
Items: jobsFixture,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 5538806

Please sign in to comment.