Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support flux 2 4 0 #4230

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
e4f9445
charles | update crd bases for unit tests
casibbald Nov 15, 2024
ae52ba3
Charles | updates to api versions across all files, added updated CRD…
casibbald Nov 15, 2024
db72bd5
charles | Update for newer API
casibbald Nov 21, 2024
d04fa36
charles | Update for newer API
casibbald Nov 21, 2024
a7a2a55
charles | Update for newer API
casibbald Nov 21, 2024
7b5dbc5
charles | Update for newer flux 2.3.0
casibbald Nov 21, 2024
a24463c
charles | removing old API's
casibbald Nov 21, 2024
242bde6
Charles | fix issues with security audits
casibbald Nov 21, 2024
eac4e54
Charles | further UI tidy up
casibbald Nov 21, 2024
cdfc0e4
Charles | missing api updates
casibbald Nov 21, 2024
8112f13
Charles | update helm adapters to v1 api
casibbald Nov 21, 2024
5df18d4
Charles | update helm adapters to v1 api
casibbald Nov 21, 2024
9955cbb
Charles | corrected linting issue
casibbald Nov 21, 2024
c2e7f34
Fix some unit test failing with Flux 2.3 (#4226)
erikgb Nov 22, 2024
e22a6ab
Updates to proto after changes
casibbald Nov 22, 2024
c95bb1c
Revert "test: migrate TestGetObjectSessionObjects to Flux 2.3" (#4228)
erikgb Nov 23, 2024
c211094
Bump Flux CRDs to Flux 2.4 (#4229)
erikgb Nov 23, 2024
b475f86
Merge branch 'main' into support-flux-2-3-0
casibbald Nov 24, 2024
ee5696c
Updates for v1/bucket api
casibbald Nov 25, 2024
43dcea2
Updates for v1/bucket api
casibbald Nov 25, 2024
7fd1e72
Isolating dashboard tests to see if these are the last items to fix
casibbald Nov 25, 2024
230379f
Isolating dashboard tests to see if these are the last items to fix
casibbald Nov 25, 2024
ee3e1d2
Updating docker file syntax to supress warning
casibbald Nov 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ TEST_TO_RUN?=./...
TEST_V?=-v
##@ Test
unit-tests: ## Run unit tests
@go install github.com/onsi/ginkgo/v2/ginkgo@v2.1.3
@go install github.com/onsi/ginkgo/v2/ginkgo@v2.19.0
# This tool doesn't have releases - it also is only a shim
@go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
KUBEBUILDER_ASSETS=$$(setup-envtest use -p path 1.24.2) CGO_ENABLED=0 ginkgo $(TEST_V) -tags unittest $(TEST_TO_RUN)
KUBEBUILDER_ASSETS=$$(setup-envtest use -p path 1.31.0) CGO_ENABLED=0 ginkgo $(TEST_V) -tags unittest $(TEST_TO_RUN)

local-kind-cluster-with-registry:
./tools/kind-with-registry.sh
Expand Down Expand Up @@ -233,10 +233,10 @@ download-test-crds:
for group_resource in $$group_resources; do \
group="$${group_resource%/*}"; resource="$${group_resource#*/}"; \
echo "Downloading $${group}.$${resource}"; \
curl -sL "https://raw.githubusercontent.com/fluxcd/source-controller/v1.0.0/config/crd/bases/$${group}.toolkit.fluxcd.io_$${resource}.yaml" -o "tools/testcrds/$${group}.toolkit.fluxcd.io_$${resource}.yaml"; \
curl -sL "https://raw.githubusercontent.com/fluxcd/source-controller/v1.4.1/config/crd/bases/$${group}.toolkit.fluxcd.io_$${resource}.yaml" -o "tools/testcrds/$${group}.toolkit.fluxcd.io_$${resource}.yaml"; \
done
curl -sL "https://raw.githubusercontent.com/fluxcd/kustomize-controller/v1.0.0/config/crd/bases/kustomize.toolkit.fluxcd.io_kustomizations.yaml" -o "tools/testcrds/kustomize.toolkit.fluxcd.io_kustomizations.yaml"
curl -sL "https://raw.githubusercontent.com/fluxcd/helm-controller/v0.37.0/config/crd/bases/helm.toolkit.fluxcd.io_helmreleases.yaml" -o "tools/testcrds/helm.toolkit.fluxcd.io_helmreleases.yaml"
curl -sL "https://raw.githubusercontent.com/fluxcd/kustomize-controller/v1.4.0/config/crd/bases/kustomize.toolkit.fluxcd.io_kustomizations.yaml" -o "tools/testcrds/kustomize.toolkit.fluxcd.io_kustomizations.yaml"
curl -sL "https://raw.githubusercontent.com/fluxcd/helm-controller/v1.1.0/config/crd/bases/helm.toolkit.fluxcd.io_helmreleases.yaml" -o "tools/testcrds/helm.toolkit.fluxcd.io_helmreleases.yaml"

.PHONY: help
# Thanks to https://www.thapaliya.com/en/writings/well-documented-makefiles/
Expand Down
2 changes: 1 addition & 1 deletion buf.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ deps:
- remote: buf.build
owner: googleapis
repository: googleapis
commit: 553fd4b4b3a640be9b69a3fa0c17b383
commit: c0913f24652a4cfc95f77d97443a5005
- remote: buf.build
owner: grpc-ecosystem
repository: grpc-gateway
Expand Down
2 changes: 1 addition & 1 deletion core/clustersmngr/cluster/delegating_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (c *delegatingCacheCluster) makeCachingClient(leafClient client.Client) (cl
return nil, fmt.Errorf("could not create HTTP client from config: %w", err)
}

mapper, err := apiutil.NewDiscoveryRESTMapper(c.restConfig, httpClient)
mapper, err := apiutil.NewDynamicRESTMapper(c.restConfig, httpClient)
if err != nil {
return nil, fmt.Errorf("could not create RESTMapper from config: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion core/clustersmngr/cluster/single.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func getClientFromConfig(config *rest.Config, scheme *apiruntime.Scheme) (client
return nil, fmt.Errorf("could not create HTTP client from config: %w", err)
}

mapper, err := apiutil.NewDiscoveryRESTMapper(config, httpClient)
mapper, err := apiutil.NewDynamicRESTMapper(config, httpClient)
if err != nil {
return nil, fmt.Errorf("could not create RESTMapper from config: %w", err)
}
Expand Down
7 changes: 5 additions & 2 deletions core/clustersmngr/factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,13 @@ func TestUpdateNamespaces(t *testing.T) {
clustersFetcher.FetchReturns([]cluster.Cluster{c1, c2, c3}, nil)

g.Expect(clustersManager.UpdateClusters(ctx)).To(Succeed())
g.Expect(clustersManager.UpdateNamespaces(ctx)).To(MatchError(MatchRegexp("failed creating server client to pool.*cluster: %s.*", clusterName3)))
g.Expect(clustersManager.UpdateNamespaces(ctx)).To(MatchError(MatchRegexp("Failed to list resource on cluster=\"%s\".*", clusterName3)))
contents := clustersManager.GetClustersNamespaces()

g.Expect(contents).To(HaveLen(2))
// TODO(Flux 2.3 migration): Apparently a change in behavior. Check if more needs to be updated.
g.Expect(contents).To(HaveLen(3))
g.Expect(contents).To(HaveKeyWithValue(clusterName3, BeNil()))
// g.Expect(contents).To(HaveLen(2))
g.Expect(contents).To(HaveKey(clusterName1))
g.Expect(contents).To(HaveKey(clusterName2))
})
Expand Down
16 changes: 8 additions & 8 deletions core/fluxsync/adapters.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package fluxsync

import (
helmv2 "github.com/fluxcd/helm-controller/api/v2beta2"
imgautomationv1 "github.com/fluxcd/image-automation-controller/api/v1beta1"
helmv2 "github.com/fluxcd/helm-controller/api/v2"
imgautomationv1 "github.com/fluxcd/image-automation-controller/api/v1beta2"
reflectorv1 "github.com/fluxcd/image-reflector-controller/api/v1beta2"
kustomizev1 "github.com/fluxcd/kustomize-controller/api/v1"
"github.com/fluxcd/pkg/apis/meta"
Expand Down Expand Up @@ -69,7 +69,7 @@ func (obj GitRepositoryAdapter) DeepCopyClientObject() client.Object {
}

type BucketAdapter struct {
*sourcev1b2.Bucket
*sourcev1.Bucket
}

func (obj BucketAdapter) GetLastHandledReconcileRequest() string {
Expand All @@ -81,7 +81,7 @@ func (obj BucketAdapter) AsClientObject() client.Object {
}

func (obj BucketAdapter) GroupVersionKind() schema.GroupVersionKind {
return sourcev1b2.GroupVersion.WithKind(sourcev1b2.BucketKind)
return sourcev1.GroupVersion.WithKind(sourcev1.BucketKind)
}

func (obj BucketAdapter) SetSuspended(suspend bool) error {
Expand All @@ -106,7 +106,7 @@ func (obj HelmChartAdapter) AsClientObject() client.Object {
}

func (obj HelmChartAdapter) GroupVersionKind() schema.GroupVersionKind {
return sourcev1b2.GroupVersion.WithKind(sourcev1b2.HelmChartKind)
return sourcev1.GroupVersion.WithKind(sourcev1.HelmChartKind)
}

func (obj HelmChartAdapter) SetSuspended(suspend bool) error {
Expand All @@ -131,7 +131,7 @@ func (obj HelmRepositoryAdapter) AsClientObject() client.Object {
}

func (obj HelmRepositoryAdapter) GroupVersionKind() schema.GroupVersionKind {
return sourcev1b2.GroupVersion.WithKind(sourcev1b2.HelmRepositoryKind)
return sourcev1.GroupVersion.WithKind(sourcev1.HelmRepositoryKind)
}

func (obj HelmRepositoryAdapter) SetSuspended(suspend bool) error {
Expand Down Expand Up @@ -374,8 +374,8 @@ func ToReconcileable(gvk schema.GroupVersionKind) Reconcilable {
// TODO: remove all these and let them fall through to the Unstructured case?
case sourcev1.GitRepositoryKind:
return GitRepositoryAdapter{GitRepository: &sourcev1.GitRepository{}}
case sourcev1b2.BucketKind:
return BucketAdapter{Bucket: &sourcev1b2.Bucket{}}
case sourcev1.BucketKind:
return BucketAdapter{Bucket: &sourcev1.Bucket{}}
case sourcev1b2.HelmRepositoryKind:
return HelmRepositoryAdapter{HelmRepository: &sourcev1b2.HelmRepository{}}
case sourcev1b2.HelmChartKind:
Expand Down
2 changes: 1 addition & 1 deletion core/server/events_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"testing"

helmv2 "github.com/fluxcd/helm-controller/api/v2beta2"
helmv2 "github.com/fluxcd/helm-controller/api/v2"
kustomizev1 "github.com/fluxcd/kustomize-controller/api/v1"
. "github.com/onsi/gomega"
pb "github.com/weaveworks/weave-gitops/pkg/api/core"
Expand Down
2 changes: 1 addition & 1 deletion core/server/fluxruntime.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"k8s.io/apimachinery/pkg/types"
"sigs.k8s.io/controller-runtime/pkg/client"

helmv2 "github.com/fluxcd/helm-controller/api/v2beta2"
helmv2 "github.com/fluxcd/helm-controller/api/v2"
kustomizev1 "github.com/fluxcd/kustomize-controller/api/v1"
appsv1 "k8s.io/api/apps/v1"
v1 "k8s.io/api/core/v1"
Expand Down
2 changes: 1 addition & 1 deletion core/server/helm_release.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"strings"

helmv2 "github.com/fluxcd/helm-controller/api/v2beta2"
helmv2 "github.com/fluxcd/helm-controller/api/v2"
"github.com/weaveworks/weave-gitops/core/clustersmngr"
pb "github.com/weaveworks/weave-gitops/pkg/api/core"
)
Expand Down
2 changes: 1 addition & 1 deletion core/server/inventory.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"strings"
"sync"

helmv2 "github.com/fluxcd/helm-controller/api/v2beta2"
helmv2 "github.com/fluxcd/helm-controller/api/v2"
kustomizev1 "github.com/fluxcd/kustomize-controller/api/v1"
"github.com/fluxcd/pkg/ssa"
"github.com/go-logr/logr"
Expand Down
2 changes: 1 addition & 1 deletion core/server/inventory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"
"testing"

helmv2 "github.com/fluxcd/helm-controller/api/v2beta2"
helmv2 "github.com/fluxcd/helm-controller/api/v2"
kustomizev1 "github.com/fluxcd/kustomize-controller/api/v1"
"github.com/fluxcd/pkg/apis/meta"
sourcev1 "github.com/fluxcd/source-controller/api/v1"
Expand Down
2 changes: 1 addition & 1 deletion core/server/objects.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"errors"
"fmt"

helmv2 "github.com/fluxcd/helm-controller/api/v2beta2"
helmv2 "github.com/fluxcd/helm-controller/api/v2"
kustomizev1 "github.com/fluxcd/kustomize-controller/api/v1"
"github.com/hashicorp/go-multierror"
"github.com/weaveworks/weave-gitops/core/clustersmngr"
Expand Down
10 changes: 4 additions & 6 deletions core/server/objects_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ import (
"encoding/json"
"testing"

sourcev1b2 "github.com/fluxcd/source-controller/api/v1beta2"

helmv2 "github.com/fluxcd/helm-controller/api/v2beta2"
helmv2 "github.com/fluxcd/helm-controller/api/v2"
kustomizev1 "github.com/fluxcd/kustomize-controller/api/v1"
sourcev1 "github.com/fluxcd/source-controller/api/v1"
. "github.com/onsi/gomega"
Expand Down Expand Up @@ -929,12 +927,12 @@ func TestGetObjectSessionObjects(t *testing.T) {
Spec: helmv2.HelmReleaseSpec{},
}

bucket := &sourcev1b2.Bucket{
bucket := &sourcev1.Bucket{
ObjectMeta: metav1.ObjectMeta{
Name: constants.RunDevBucketName,
Namespace: testNS,
},
Spec: sourcev1b2.BucketSpec{},
Spec: sourcev1.BucketSpec{},
}

fakeClient := fake.NewClientBuilder().WithScheme(scheme).WithRuntimeObjects(ns, kust, helm, bucket).Build()
Expand Down Expand Up @@ -966,7 +964,7 @@ func TestGetObjectSessionObjects(t *testing.T) {
res, err = c.GetObject(ctx, &pb.GetObjectRequest{
Name: constants.RunDevBucketName,
Namespace: testNS,
Kind: sourcev1b2.BucketKind,
Kind: sourcev1.BucketKind,
ClusterName: testCluster,
})

Expand Down
5 changes: 2 additions & 3 deletions core/server/session_logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@ import (
"context"
"encoding/json"
"fmt"
sourcev1 "github.com/fluxcd/source-controller/api/v1"
"io"
"regexp"
"sort"
"strconv"
"strings"
"time"

sourcev1b2 "github.com/fluxcd/source-controller/api/v1beta2"

"github.com/weaveworks/weave-gitops/pkg/compositehash"

"github.com/minio/minio-go/v7"
Expand Down Expand Up @@ -421,7 +420,7 @@ func getBucketConnectionInfo(ctx context.Context, clusterName, fluxNamespace str
}

// get bucket source
bucket := sourcev1b2.Bucket{
bucket := sourcev1.Bucket{
ObjectMeta: metav1.ObjectMeta{
Name: constants.RunDevBucketName,
Namespace: fluxNamespace,
Expand Down
4 changes: 2 additions & 2 deletions core/server/session_logs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"encoding/json"
"fmt"
sourcev1b2 "github.com/fluxcd/source-controller/api/v1beta2"
sourcev1 "github.com/fluxcd/source-controller/api/v1"
"io"
"strings"
"testing"
Expand Down Expand Up @@ -33,7 +33,7 @@ func (m *mockGet) Get(ctx context.Context, key types.NamespacedName, obj client.
"accesskey": []byte("abcd"),
"secretkey": []byte("1234"),
}
case *sourcev1b2.Bucket:
case *sourcev1.Bucket:
obj.Spec.Endpoint = "endpoint:9000"
obj.Spec.Insecure = false
}
Expand Down
13 changes: 6 additions & 7 deletions core/server/suspend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ import (
"context"
"testing"

helmv2 "github.com/fluxcd/helm-controller/api/v2beta2"
imgautomationv1 "github.com/fluxcd/image-automation-controller/api/v1beta1"
helmv2 "github.com/fluxcd/helm-controller/api/v2"
imgautomationv1 "github.com/fluxcd/image-automation-controller/api/v1beta2"
reflectorv1 "github.com/fluxcd/image-reflector-controller/api/v1beta2"
kustomizev1 "github.com/fluxcd/kustomize-controller/api/v1"
sourcev1 "github.com/fluxcd/source-controller/api/v1"
sourcev1b2 "github.com/fluxcd/source-controller/api/v1beta2"
. "github.com/onsi/gomega"
api "github.com/weaveworks/weave-gitops/pkg/api/core"
"github.com/weaveworks/weave-gitops/pkg/kube"
Expand Down Expand Up @@ -51,13 +50,13 @@ func TestSuspend_Suspend(t *testing.T) {
obj: gr,
},
{
kind: sourcev1b2.HelmRepositoryKind,
apiVersion: sourcev1b2.GroupVersion.String(),
kind: sourcev1.HelmRepositoryKind,
apiVersion: sourcev1.GroupVersion.String(),
obj: hr,
},
{
kind: sourcev1b2.BucketKind,
apiVersion: sourcev1b2.GroupVersion.String(),
kind: sourcev1.BucketKind,
apiVersion: sourcev1.GroupVersion.String(),
obj: makeBucket("bucket-1", *ns),
},
{
Expand Down
22 changes: 11 additions & 11 deletions core/server/sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"testing"
"time"

helmv2 "github.com/fluxcd/helm-controller/api/v2beta2"
imgautomationv1 "github.com/fluxcd/image-automation-controller/api/v1beta1"
helmv2 "github.com/fluxcd/helm-controller/api/v2"
imgautomationv1 "github.com/fluxcd/image-automation-controller/api/v1beta2"
reflectorv1 "github.com/fluxcd/image-reflector-controller/api/v1beta2"
kustomizev1 "github.com/fluxcd/kustomize-controller/api/v1"
"github.com/fluxcd/pkg/apis/meta"
Expand Down Expand Up @@ -118,23 +118,23 @@ func TestSync(t *testing.T) {
name: "bucket",
msg: &pb.SyncFluxObjectRequest{
Objects: []*pb.ObjectRef{{ClusterName: "Default",
Kind: sourcev1b2.BucketKind}},
Kind: sourcev1.BucketKind}},
WithSource: false,
},
reconcilable: fluxsync.BucketAdapter{Bucket: bucket},
}, {
name: "helmchart",
msg: &pb.SyncFluxObjectRequest{
Objects: []*pb.ObjectRef{{ClusterName: "Default",
Kind: sourcev1b2.HelmChartKind}},
Kind: sourcev1.HelmChartKind}},
WithSource: false,
},
reconcilable: fluxsync.HelmChartAdapter{HelmChart: chart},
}, {
name: "helmrepository",
msg: &pb.SyncFluxObjectRequest{
Objects: []*pb.ObjectRef{{ClusterName: "Default",
Kind: sourcev1b2.HelmRepositoryKind}},
Kind: sourcev1.HelmRepositoryKind}},
WithSource: false,
},
reconcilable: fluxsync.HelmRepositoryAdapter{HelmRepository: helmRepo},
Expand Down Expand Up @@ -247,7 +247,7 @@ func simulateReconcile(ctx context.Context, k client.Client, name types.Namespac

return k.Status().Update(ctx, obj)

case *sourcev1b2.Bucket:
case *sourcev1.Bucket:
if err := k.Get(ctx, name, obj); err != nil {
return err
}
Expand Down Expand Up @@ -378,14 +378,14 @@ func makeHelmChart(name string, ns corev1.Namespace) *sourcev1b2.HelmChart {
}
}

func makeBucket(name string, ns corev1.Namespace) *sourcev1b2.Bucket {
return &sourcev1b2.Bucket{
func makeBucket(name string, ns corev1.Namespace) *sourcev1.Bucket {
return &sourcev1.Bucket{
ObjectMeta: metav1.ObjectMeta{
Name: name,
Namespace: ns.Name,
},
Spec: sourcev1b2.BucketSpec{},
Status: sourcev1b2.BucketStatus{
Spec: sourcev1.BucketSpec{},
Status: sourcev1.BucketStatus{
ReconcileRequestStatus: meta.ReconcileRequestStatus{
LastHandledReconcileAt: time.Now().Format(time.RFC3339Nano),
},
Expand Down Expand Up @@ -417,7 +417,7 @@ func makeHelmRelease(name string, ns corev1.Namespace, repo *sourcev1b2.HelmRepo
Namespace: ns.Name,
},
Spec: helmv2.HelmReleaseSpec{
Chart: helmv2.HelmChartTemplate{
Chart: &helmv2.HelmChartTemplate{
Spec: helmv2.HelmChartTemplateSpec{
Chart: chart.Spec.Chart,
Version: chart.Spec.Version,
Expand Down
2 changes: 1 addition & 1 deletion gitops-bucket-server.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ARG LDFLAGS="-X localbuild=true"
RUN --mount=type=cache,target=/root/.cache/go-build LDFLAGS=${LDFLAGS##-X localbuild=true} GIT_COMMIT=$GIT_COMMIT make gitops-bucket-server

# Distroless
FROM gcr.io/distroless/base as runtime
FROM gcr.io/distroless/base AS runtime
COPY --from=go-build /app/bin/gitops-bucket-server /gitops-bucket-server
COPY --from=go-build /root/.ssh/known_hosts /root/.ssh/known_hosts

Expand Down
2 changes: 1 addition & 1 deletion gitops-server.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ARG LDFLAGS="-X localbuild=true"
RUN --mount=type=cache,target=/root/.cache/go-build LDFLAGS=${LDFLAGS##-X localbuild=true} GIT_COMMIT=$GIT_COMMIT make gitops-server

# Distroless
FROM gcr.io/distroless/base as runtime
FROM gcr.io/distroless/base AS runtime
COPY --from=ui /home/app/bin/dist/ /dist/
COPY --from=go-build /app/bin/gitops-server /gitops-server
COPY --from=go-build /root/.ssh/known_hosts /root/.ssh/known_hosts
Expand Down
Loading
Loading