Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Commit 6f53853

Browse files
committed
add deppy catsrc adapter
1 parent 59a792f commit 6f53853

20 files changed

+1306
-35
lines changed

deppysrc.Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM golang:1.17.6-alpine as Build
2+
3+
COPY . .
4+
5+
RUN GOPATH= CGO_ENABLED=0 go build -o /build/catalog_source_controller internal/entitysource/adapter/catalogsource/cmd/cmd.go
6+
7+
8+
FROM scratch
9+
10+
COPY --from=Build /build/catalog_source_controller catalog_source_controller
11+
12+
USER 1001
13+
EXPOSE 50052
14+
15+
CMD ["./catalog_source_controller"]

deppysrc.Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
IMG ?= adapter:latest
2+
CONTAINER_RUNTIME ?= docker
3+
BIN_DIR ?= bin
4+
5+
.PHONY: manifests
6+
manifests:
7+
protoc -I internal/entitysource/adapter/api/ --go-grpc_out=internal/entitysource/adapter/api/ internal/entitysource/adapter/api/deppy_source_adapter.proto
8+
protoc -I internal/entitysource/adapter/api/ --go_out=internal/entitysource/adapter/api/ internal/entitysource/adapter/api/deppy_source_adapter.proto
9+
10+
.PHONY: build
11+
build:
12+
CGO_ENABLED=0 go build -o bin/catalog_source_controller internal/entitysource/adapter/catalogsource/cmd/cmd.go
13+
14+
.PHONY: build-container
15+
build-container:
16+
$(CONTAINER_RUNTIME) build -f deppysrc.Dockerfile -t $(IMG) .

go.mod

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,26 @@ require (
77
github.com/go-air/gini v1.0.4
88
github.com/onsi/ginkgo/v2 v2.3.1
99
github.com/onsi/gomega v1.22.1
10+
github.com/operator-framework/api v0.16.0
11+
github.com/operator-framework/operator-registry v1.26.2
12+
github.com/sirupsen/logrus v1.8.1
1013
github.com/spf13/cobra v1.4.0
11-
github.com/stretchr/testify v1.7.0
14+
github.com/spf13/pflag v1.0.5
15+
github.com/stretchr/testify v1.7.1
1216
github.com/tidwall/gjson v1.14.3
17+
golang.org/x/net v0.0.0-20220722155237-a158d28d115b
18+
google.golang.org/grpc v1.45.0
19+
google.golang.org/protobuf v1.28.0
1320
k8s.io/apimachinery v0.24.1
1421
k8s.io/client-go v0.24.1
1522
sigs.k8s.io/controller-runtime v0.12.1
1623
)
1724

1825
require (
19-
cloud.google.com/go v0.81.0 // indirect
26+
cloud.google.com/go v0.99.0 // indirect
2027
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
21-
github.com/Azure/go-autorest/autorest v0.11.18 // indirect
22-
github.com/Azure/go-autorest/autorest/adal v0.9.13 // indirect
28+
github.com/Azure/go-autorest/autorest v0.11.20 // indirect
29+
github.com/Azure/go-autorest/autorest/adal v0.9.15 // indirect
2330
github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
2431
github.com/Azure/go-autorest/logger v0.2.1 // indirect
2532
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
@@ -30,20 +37,22 @@ require (
3037
github.com/davecgh/go-spew v1.1.1 // indirect
3138
github.com/emicklei/go-restful v2.9.5+incompatible // indirect
3239
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
33-
github.com/form3tech-oss/jwt-go v3.2.3+incompatible // indirect
3440
github.com/fsnotify/fsnotify v1.5.1 // indirect
35-
github.com/go-logr/logr v1.2.0 // indirect
41+
github.com/go-logr/logr v1.2.2 // indirect
3642
github.com/go-logr/zapr v1.2.0 // indirect
3743
github.com/go-openapi/jsonpointer v0.19.5 // indirect
3844
github.com/go-openapi/jsonreference v0.19.5 // indirect
3945
github.com/go-openapi/swag v0.19.14 // indirect
4046
github.com/gogo/protobuf v1.3.2 // indirect
47+
github.com/golang-jwt/jwt/v4 v4.0.0 // indirect
4148
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
4249
github.com/golang/protobuf v1.5.2 // indirect
4350
github.com/google/gnostic v0.5.7-v3refs // indirect
4451
github.com/google/go-cmp v0.5.8 // indirect
45-
github.com/google/gofuzz v1.1.0 // indirect
46-
github.com/google/uuid v1.1.2 // indirect
52+
github.com/google/gofuzz v1.2.0 // indirect
53+
github.com/google/uuid v1.2.0 // indirect
54+
github.com/h2non/filetype v1.1.1 // indirect
55+
github.com/h2non/go-is-svg v0.0.0-20160927212452-35e8c4b0612c // indirect
4756
github.com/imdario/mergo v0.3.12 // indirect
4857
github.com/inconshreveable/mousetrap v1.0.0 // indirect
4958
github.com/josharian/intern v1.0.0 // indirect
@@ -59,22 +68,21 @@ require (
5968
github.com/prometheus/client_model v0.2.0 // indirect
6069
github.com/prometheus/common v0.32.1 // indirect
6170
github.com/prometheus/procfs v0.7.3 // indirect
62-
github.com/spf13/pflag v1.0.5 // indirect
6371
github.com/tidwall/match v1.1.1 // indirect
6472
github.com/tidwall/pretty v1.2.0 // indirect
6573
go.uber.org/atomic v1.7.0 // indirect
6674
go.uber.org/multierr v1.6.0 // indirect
6775
go.uber.org/zap v1.19.1 // indirect
68-
golang.org/x/crypto v0.0.0-20220214200702-86341886e292 // indirect
69-
golang.org/x/net v0.0.0-20220722155237-a158d28d115b // indirect
76+
golang.org/x/crypto v0.0.0-20220408190544-5352b0902921 // indirect
7077
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect
78+
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
7179
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect
7280
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
7381
golang.org/x/text v0.3.7 // indirect
7482
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect
7583
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
7684
google.golang.org/appengine v1.6.7 // indirect
77-
google.golang.org/protobuf v1.28.0 // indirect
85+
google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac // indirect
7886
gopkg.in/inf.v0 v0.9.1 // indirect
7987
gopkg.in/yaml.v2 v2.4.0 // indirect
8088
gopkg.in/yaml.v3 v3.0.1 // indirect

0 commit comments

Comments
 (0)