Skip to content

Commit 473d4ce

Browse files
committed
Align with Argo CD 3.4.2 test imports and Go 1.26.2
Assisted-by: Cursor Signed-off-by: nmirasch <neus.miras@gmail.com>
1 parent b382d86 commit 473d4ce

26 files changed

Lines changed: 30 additions & 34 deletions

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM golang:1.26 as builder
2+
FROM golang:1.26.2 as builder
33

44
WORKDIR /workspace
55
# Copy the Go Modules manifests

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
module github.com/redhat-developer/gitops-operator
22

3-
go 1.26.0
3+
go 1.26.2
44

55
require (
66
github.com/argoproj-labs/argo-rollouts-manager v0.0.9-0.20260505092152-3e07addcb2cb
77
github.com/argoproj-labs/argocd-image-updater v1.2.1
88
github.com/argoproj-labs/argocd-operator v0.17.0-rc1.0.20260601113236-3dfd5805a81c
99
github.com/argoproj/argo-cd/gitops-engine v0.7.1-0.20250908182407-97ad5b59a627
1010
github.com/argoproj/argo-cd/v3 v3.4.2
11-
github.com/argoproj/gitops-engine v0.7.1-0.20251217140045-5baed5604d2d
1211
github.com/go-logr/logr v1.4.3
1312
github.com/google/go-cmp v0.7.0
1413
github.com/google/uuid v1.6.1-0.20241114170450-2d3c2a9cc518

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ github.com/argoproj/argo-cd/gitops-engine v0.0.0-20260512203152-0dc6b1b57dd5 h1:
4949
github.com/argoproj/argo-cd/gitops-engine v0.0.0-20260512203152-0dc6b1b57dd5/go.mod h1:6Q1KZzkeKlnCpzzZ1Fu72+WPMAt+ZeMD9KOO6aMjW68=
5050
github.com/argoproj/argo-cd/v3 v3.4.2 h1:S3j0K34uGW4geWiM88+0cHcCEtInn2Sa9U7/Sa18L7Y=
5151
github.com/argoproj/argo-cd/v3 v3.4.2/go.mod h1:fWDp6ko+Pug6pCEmhZxd35V/Pd9QJgYhky3pJNnsuKE=
52-
github.com/argoproj/gitops-engine v0.7.1-0.20251217140045-5baed5604d2d h1:iUJYrbSvpV9n8vyl1sBt1GceM60HhHfnHxuzcm5apDg=
53-
github.com/argoproj/gitops-engine v0.7.1-0.20251217140045-5baed5604d2d/go.mod h1:PauXVUVcfiTgC+34lDdWzPS101g4NpsUtDAjFBnWf94=
5452
github.com/argoproj/pkg v0.13.7-0.20250305113207-cbc37dc61de5 h1:YBoLSjpoaJXaXAldVvBRKJuOPvIXz9UOv6S96gMJM/Q=
5553
github.com/argoproj/pkg v0.13.7-0.20250305113207-cbc37dc61de5/go.mod h1:ebVOzFJphdN1p6EG2mIMECv/3Rk/almSaxIYuFAmsSw=
5654
github.com/argoproj/pkg/v2 v2.0.1 h1:O/gCETzB/3+/hyFL/7d/VM/6pSOIRWIiBOTb2xqAHvc=

test/openshift/e2e/ginkgo/fixture/application/fixture.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ import (
88
"github.com/redhat-developer/gitops-operator/test/openshift/e2e/ginkgo/fixture/utils"
99
"k8s.io/client-go/util/retry"
1010

11+
"github.com/argoproj/argo-cd/gitops-engine/pkg/health"
12+
"github.com/argoproj/argo-cd/gitops-engine/pkg/sync/common"
1113
appv1alpha1 "github.com/argoproj/argo-cd/v3/pkg/apis/application/v1alpha1"
12-
"github.com/argoproj/gitops-engine/pkg/sync/common"
1314
matcher "github.com/onsi/gomega/types"
1415

1516
. "github.com/onsi/ginkgo/v2"
@@ -60,15 +61,13 @@ func HaveOperationStatePhase(expectedPhase common.OperationPhase) matcher.Gomega
6061

6162
}
6263

63-
func HaveHealthStatusCode(expectedHealth interface{}) matcher.GomegaMatcher {
64+
func HaveHealthStatusCode(expectedHealth health.HealthStatusCode) matcher.GomegaMatcher {
6465

6566
return expectedCondition(func(app *appv1alpha1.Application) bool {
6667

67-
expectedHealthStr := fmt.Sprint(expectedHealth)
68-
GinkgoWriter.Println("HaveHealthStatusCode - current health:", app.Status.Health.Status, "/ expected health:", expectedHealthStr)
68+
GinkgoWriter.Println("HaveHealthStatusCode - current health:", app.Status.Health.Status, "/ expected health:", expectedHealth)
6969

70-
// Compare by string value to remain compatible across gitops-engine module paths.
71-
return string(app.Status.Health.Status) == expectedHealthStr
70+
return app.Status.Health.Status == expectedHealth
7271

7372
})
7473

test/openshift/e2e/ginkgo/fixture/argocd/fixture.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func BeAvailableWithCustomSleepTime(sleepTime time.Duration) matcher.GomegaMatch
7474
return fetchArgoCD(func(argocd *argov1beta1api.ArgoCD) bool {
7575

7676
if argocd.Status.Phase != "Available" {
77-
GinkgoWriter.Println("ArgoCD status is not yet Available")
77+
GinkgoWriter.Println("ArgoCD status: ", "expected: Available / actual: ", argocd.Status.Phase)
7878
return false
7979
}
8080
GinkgoWriter.Println("ArgoCD status is now", argocd.Status.Phase)

test/openshift/e2e/ginkgo/parallel/1-008_validate-custom-argocd-namespace_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import (
2020
"context"
2121

2222
argov1beta1api "github.com/argoproj-labs/argocd-operator/api/v1beta1"
23+
"github.com/argoproj/argo-cd/gitops-engine/pkg/health"
2324
argocdv1alpha1 "github.com/argoproj/argo-cd/v3/pkg/apis/application/v1alpha1"
24-
"github.com/argoproj/gitops-engine/pkg/health"
2525
. "github.com/onsi/ginkgo/v2"
2626
. "github.com/onsi/gomega"
2727
"github.com/redhat-developer/gitops-operator/test/openshift/e2e/ginkgo/fixture"

test/openshift/e2e/ginkgo/parallel/1-009_validate-manage-other-namespace_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import (
2020
"context"
2121

2222
argov1beta1api "github.com/argoproj-labs/argocd-operator/api/v1beta1"
23+
"github.com/argoproj/argo-cd/gitops-engine/pkg/health"
2324
argocdv1alpha1 "github.com/argoproj/argo-cd/v3/pkg/apis/application/v1alpha1"
24-
"github.com/argoproj/gitops-engine/pkg/health"
2525
. "github.com/onsi/ginkgo/v2"
2626
. "github.com/onsi/gomega"
2727
"github.com/redhat-developer/gitops-operator/test/openshift/e2e/ginkgo/fixture"

test/openshift/e2e/ginkgo/parallel/1-012_validate-managed-by-chain_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import (
2020
"context"
2121

2222
argov1beta1api "github.com/argoproj-labs/argocd-operator/api/v1beta1"
23+
"github.com/argoproj/argo-cd/gitops-engine/pkg/health"
2324
argocdv1alpha1 "github.com/argoproj/argo-cd/v3/pkg/apis/application/v1alpha1"
24-
"github.com/argoproj/gitops-engine/pkg/health"
2525
. "github.com/onsi/ginkgo/v2"
2626
. "github.com/onsi/gomega"
2727
"github.com/redhat-developer/gitops-operator/test/openshift/e2e/ginkgo/fixture"

test/openshift/e2e/ginkgo/parallel/1-023_validate_repo_server_tls_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import (
2121
"reflect"
2222

2323
argov1beta1api "github.com/argoproj-labs/argocd-operator/api/v1beta1"
24+
"github.com/argoproj/argo-cd/gitops-engine/pkg/health"
2425
argocdv1alpha1 "github.com/argoproj/argo-cd/v3/pkg/apis/application/v1alpha1"
25-
"github.com/argoproj/gitops-engine/pkg/health"
2626
. "github.com/onsi/ginkgo/v2"
2727
. "github.com/onsi/gomega"
2828
"github.com/redhat-developer/gitops-operator/test/openshift/e2e/ginkgo/fixture"

test/openshift/e2e/ginkgo/parallel/1-025-validate-managed-by-change_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import (
2020
"context"
2121

2222
argov1beta1api "github.com/argoproj-labs/argocd-operator/api/v1beta1"
23+
"github.com/argoproj/argo-cd/gitops-engine/pkg/health"
2324
argocdv1alpha1 "github.com/argoproj/argo-cd/v3/pkg/apis/application/v1alpha1"
24-
"github.com/argoproj/gitops-engine/pkg/health"
2525
. "github.com/onsi/ginkgo/v2"
2626
. "github.com/onsi/gomega"
2727
"github.com/redhat-developer/gitops-operator/test/openshift/e2e/ginkgo/fixture"

0 commit comments

Comments
 (0)