Skip to content

Commit c601d85

Browse files
committed
cleanup Dockerfile
1 parent 5bcac68 commit c601d85

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@ FROM golang:1.23.2 AS builder
55
WORKDIR /vcluster
66

77
# Copy the Go Modules manifests
8-
COPY . .
8+
COPY go.mod go.sum ./
99

1010
# Install dependencies
1111
RUN go mod vendor
1212

13+
# Copy the sources
14+
COPY main.go pkg ./
15+
1316
# Build cmd
1417
RUN CGO_ENABLED=0 go build -mod vendor -o /plugin main.go
1518

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package main
22

33
import (
4-
"github.com/codefresh-contrib/vcluster-prometheus-operator-plugin/syncers/podmonitor"
5-
"github.com/codefresh-contrib/vcluster-prometheus-operator-plugin/syncers/servicemonitor"
4+
"github.com/codefresh-contrib/vcluster-prometheus-operator-plugin/pkg/syncers/podmonitor"
5+
"github.com/codefresh-contrib/vcluster-prometheus-operator-plugin/pkg/syncers/servicemonitor"
66
"github.com/loft-sh/vcluster-sdk/plugin"
77
"k8s.io/klog/v2"
88
)

syncers/podmonitor/syncer.go renamed to pkg/syncers/podmonitor/syncer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
_ "embed"
55
"fmt"
66

7-
internaltranslators "github.com/codefresh-contrib/vcluster-prometheus-operator-plugin/translators"
7+
internaltranslators "github.com/codefresh-contrib/vcluster-prometheus-operator-plugin/pkg/translators"
88
"github.com/loft-sh/vcluster/pkg/mappings/generic"
99
"github.com/loft-sh/vcluster/pkg/patcher"
1010
"github.com/loft-sh/vcluster/pkg/scheme"

syncers/servicemonitor/syncer.go renamed to pkg/syncers/servicemonitor/syncer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package servicemonitor
33
import (
44
"fmt"
55

6-
internaltranslators "github.com/codefresh-contrib/vcluster-prometheus-operator-plugin/translators"
6+
internaltranslators "github.com/codefresh-contrib/vcluster-prometheus-operator-plugin/pkg/translators"
77
"github.com/loft-sh/vcluster/pkg/mappings/generic"
88
"github.com/loft-sh/vcluster/pkg/patcher"
99
"github.com/loft-sh/vcluster/pkg/scheme"
File renamed without changes.

0 commit comments

Comments
 (0)