Skip to content

Commit

Permalink
fix: formtareing av kode og pakkestandard på navn
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyrremann committed Jun 29, 2023
1 parent 72db3c2 commit 0b877ed
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 12 deletions.
2 changes: 1 addition & 1 deletion cmd/commands/clusterCmd/cmds.go → cmd/clustercmd/cmds.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package clusterCmd
package clustercmd

import (
"github.com/urfave/cli/v2"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package clusterCmd
package clustercmd

import (
"fmt"

"github.com/nais/narcos/pkg/gcp"
"github.com/nais/narcos/pkg/kubeconfig"
"github.com/nais/narcos/pkg/naisdevice"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package clusterCmd
package clustercmd

import (
"fmt"

"github.com/nais/narcos/pkg/gcp"
"github.com/nais/narcos/pkg/naisdevice"
"github.com/urfave/cli/v2"
Expand Down
4 changes: 2 additions & 2 deletions cmd/commands/deviceCmd/cmds.go → cmd/devicecmd/cmds.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package deviceCmd
package devicecmd

import (
"github.com/nais/narcos/cmd/commands/deviceCmd/tenant"
"github.com/nais/narcos/cmd/devicecmd/tenant"
"github.com/urfave/cli/v2"
)

Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"log"
"os"

"github.com/nais/narcos/cmd/commands/clusterCmd"
"github.com/nais/narcos/cmd/commands/deviceCmd"
"github.com/nais/narcos/cmd/clustercmd"
"github.com/nais/narcos/cmd/devicecmd"
"github.com/urfave/cli/v2"
)

Expand All @@ -16,8 +16,8 @@ func main() {
Version: "v0.1",
Description: "NAIS Administrator CLI",
Commands: []*cli.Command{
deviceCmd.Command(),
clusterCmd.Command(),
devicecmd.Command(),
clustercmd.Command(),
},
EnableBashCompletion: true,
HideHelpCommand: true,
Expand Down
3 changes: 2 additions & 1 deletion pkg/gcp/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package gcp
import (
"context"
"encoding/json"
"strings"

"google.golang.org/api/compute/v1"
"google.golang.org/api/container/v1"
"strings"
)

type Cluster struct {
Expand Down
1 change: 1 addition & 0 deletions pkg/gcp/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"errors"
"fmt"

"golang.org/x/oauth2"
"google.golang.org/api/cloudresourcemanager/v3"
)
Expand Down
1 change: 1 addition & 0 deletions pkg/kubeconfig/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package kubeconfig
import (
"encoding/base64"
"fmt"

"github.com/nais/narcos/pkg/gcp"
clientcmdapi "k8s.io/client-go/tools/clientcmd/api"
)
Expand Down
3 changes: 2 additions & 1 deletion pkg/kubeconfig/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package kubeconfig

import (
"fmt"
"strings"

"github.com/nais/narcos/pkg/gcp"
clientcmdapi "k8s.io/client-go/tools/clientcmd/api"
"strings"
)

func addContext(config *clientcmdapi.Config, cluster gcp.Cluster, overwrite, seperateAdmin, verbose bool, email string) {
Expand Down
1 change: 1 addition & 0 deletions pkg/kubeconfig/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package kubeconfig

import (
"fmt"

"github.com/nais/narcos/pkg/gcp"
clientcmdapi "k8s.io/client-go/tools/clientcmd/api"
)
Expand Down
3 changes: 2 additions & 1 deletion pkg/naisdevice/naisdevice.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ package naisdevice

import (
"fmt"
"path/filepath"

"github.com/nais/device/pkg/config"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/credentials/insecure"
"google.golang.org/grpc/status"
"path/filepath"
)

var (
Expand Down
1 change: 1 addition & 0 deletions pkg/naisdevice/tenant.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package naisdevice

import (
"context"

"github.com/nais/device/pkg/pb"
)

Expand Down

0 comments on commit 0b877ed

Please sign in to comment.