File tree Expand file tree Collapse file tree 5 files changed +8
-5
lines changed Expand file tree Collapse file tree 5 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,14 @@ FROM golang:1.23.2 AS builder
5
5
WORKDIR /vcluster
6
6
7
7
# Copy the Go Modules manifests
8
- COPY . .
8
+ COPY go.mod go.sum ./
9
9
10
10
# Install dependencies
11
11
RUN go mod vendor
12
12
13
+ # Copy the sources
14
+ COPY main.go pkg ./
15
+
13
16
# Build cmd
14
17
RUN CGO_ENABLED=0 go build -mod vendor -o /plugin main.go
15
18
Original file line number Diff line number Diff line change 1
1
package main
2
2
3
3
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"
6
6
"github.com/loft-sh/vcluster-sdk/plugin"
7
7
"k8s.io/klog/v2"
8
8
)
Original file line number Diff line number Diff line change 4
4
_ "embed"
5
5
"fmt"
6
6
7
- internaltranslators "github.com/codefresh-contrib/vcluster-prometheus-operator-plugin/translators"
7
+ internaltranslators "github.com/codefresh-contrib/vcluster-prometheus-operator-plugin/pkg/ translators"
8
8
"github.com/loft-sh/vcluster/pkg/mappings/generic"
9
9
"github.com/loft-sh/vcluster/pkg/patcher"
10
10
"github.com/loft-sh/vcluster/pkg/scheme"
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package servicemonitor
3
3
import (
4
4
"fmt"
5
5
6
- internaltranslators "github.com/codefresh-contrib/vcluster-prometheus-operator-plugin/translators"
6
+ internaltranslators "github.com/codefresh-contrib/vcluster-prometheus-operator-plugin/pkg/ translators"
7
7
"github.com/loft-sh/vcluster/pkg/mappings/generic"
8
8
"github.com/loft-sh/vcluster/pkg/patcher"
9
9
"github.com/loft-sh/vcluster/pkg/scheme"
File renamed without changes.
You can’t perform that action at this time.
0 commit comments