Skip to content

Commit e0705f5

Browse files
committed
Move type to pkg for sharing with external components
1 parent 9070c3e commit e0705f5

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ codegen: dependency
1414
bash hack/update-codegen.sh
1515

1616
test: codegen
17-
GOOS=linux GOARCH=amd64 go test ./internal/services ./internal/types ./internal/utils
17+
GOARCH=amd64 go test ./internal/services ./pkg/types ./internal/utils
1818

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

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

Version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.6.0
1+
1.6.1

internal/services/ldap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package services
33
import (
44
"errors"
55
"fmt"
6-
"github.com/ca-gip/kubi/internal/types"
76
"github.com/ca-gip/kubi/internal/utils"
7+
"github.com/ca-gip/kubi/pkg/types"
88
"regexp"
99
"strings"
1010
)

internal/services/provisionner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import (
44
"errors"
55
"fmt"
66
"github.com/ca-gip/kubi/internal/authprovider"
7-
"github.com/ca-gip/kubi/internal/types"
87
"github.com/ca-gip/kubi/internal/utils"
98
v12 "github.com/ca-gip/kubi/pkg/apis/ca-gip/v1"
109
"github.com/ca-gip/kubi/pkg/generated/clientset/versioned"
10+
"github.com/ca-gip/kubi/pkg/types"
1111
corev1 "k8s.io/api/core/v1"
1212
v1n "k8s.io/api/networking/v1"
1313
"k8s.io/api/rbac/v1"

internal/services/tokenissuer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"errors"
77
"fmt"
88
"github.com/ca-gip/kubi/internal/authprovider"
9-
"github.com/ca-gip/kubi/internal/types"
109
"github.com/ca-gip/kubi/internal/utils"
10+
"github.com/ca-gip/kubi/pkg/types"
1111
"github.com/dgrijalva/jwt-go"
1212
"gopkg.in/yaml.v2"
1313
"io"

internal/utils/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"crypto/tls"
55
"crypto/x509"
66
"encoding/base64"
7-
"github.com/ca-gip/kubi/internal/types"
7+
"github.com/ca-gip/kubi/pkg/types"
88
"github.com/go-ozzo/ozzo-validation"
99
"github.com/go-ozzo/ozzo-validation/is"
1010
"io/ioutil"
File renamed without changes.

0 commit comments

Comments
 (0)