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
55WORKDIR /vcluster
66
77# Copy the Go Modules manifests
8- COPY . .
8+ COPY go.mod go.sum ./
99
1010# Install dependencies
1111RUN go mod vendor
1212
13+ # Copy the sources
14+ COPY main.go pkg ./
15+
1316# Build cmd
1417RUN CGO_ENABLED=0 go build -mod vendor -o /plugin main.go
1518
Original file line number Diff line number Diff line change 11package main
22
33import (
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)
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package servicemonitor
33import (
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.
You can’t perform that action at this time.
0 commit comments