Skip to content

Commit

Permalink
Move type to pkg for sharing with external components
Browse files Browse the repository at this point in the history
  • Loading branch information
efortin committed May 29, 2020
1 parent 9070c3e commit e0705f5
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ codegen: dependency
bash hack/update-codegen.sh

test: codegen
GOOS=linux GOARCH=amd64 go test ./internal/services ./internal/types ./internal/utils
GOARCH=amd64 go test ./internal/services ./pkg/types ./internal/utils

test-only:
@echo "-> Test only kubi operator binary"
GOOS=linux GOARCH=amd64 go test ./internal/services ./internal/types ./internal/utils
GOARCH=amd64 go test ./internal/services ./pkg/types ./internal/utils

build: test
@echo "-> Building kubi operator binary"
GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -a -ldflags '-extldflags "-static"' -v -o ./build/kubi -i $(GOPATH)/src/$(REPO)/cmd/main.go
CGO_ENABLED=0 GOARCH=amd64 go build -a -ldflags '-extldflags "-static"' -v -o ./build/kubi -i $(GOPATH)/src/$(REPO)/cmd/main.go

2 changes: 1 addition & 1 deletion Version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.6.0
1.6.1
2 changes: 1 addition & 1 deletion internal/services/ldap.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package services
import (
"errors"
"fmt"
"github.com/ca-gip/kubi/internal/types"
"github.com/ca-gip/kubi/internal/utils"
"github.com/ca-gip/kubi/pkg/types"
"regexp"
"strings"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/services/provisionner.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"errors"
"fmt"
"github.com/ca-gip/kubi/internal/authprovider"
"github.com/ca-gip/kubi/internal/types"
"github.com/ca-gip/kubi/internal/utils"
v12 "github.com/ca-gip/kubi/pkg/apis/ca-gip/v1"
"github.com/ca-gip/kubi/pkg/generated/clientset/versioned"
"github.com/ca-gip/kubi/pkg/types"
corev1 "k8s.io/api/core/v1"
v1n "k8s.io/api/networking/v1"
"k8s.io/api/rbac/v1"
Expand Down
2 changes: 1 addition & 1 deletion internal/services/tokenissuer.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"errors"
"fmt"
"github.com/ca-gip/kubi/internal/authprovider"
"github.com/ca-gip/kubi/internal/types"
"github.com/ca-gip/kubi/internal/utils"
"github.com/ca-gip/kubi/pkg/types"
"github.com/dgrijalva/jwt-go"
"gopkg.in/yaml.v2"
"io"
Expand Down
2 changes: 1 addition & 1 deletion internal/utils/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"crypto/tls"
"crypto/x509"
"encoding/base64"
"github.com/ca-gip/kubi/internal/types"
"github.com/ca-gip/kubi/pkg/types"
"github.com/go-ozzo/ozzo-validation"
"github.com/go-ozzo/ozzo-validation/is"
"io/ioutil"
Expand Down
File renamed without changes.

0 comments on commit e0705f5

Please sign in to comment.