Skip to content

Commit ce1a590

Browse files
committed
Update
1 parent b44b6a6 commit ce1a590

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

cmd/main.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import (
3535
argov1alpha1api "github.com/argoproj-labs/argocd-operator/api/v1alpha1"
3636
argov1beta1api "github.com/argoproj-labs/argocd-operator/api/v1beta1"
3737
argocdcommon "github.com/argoproj-labs/argocd-operator/common"
38-
"github.com/argoproj-labs/argocd-operator/controllers/argocd"
3938
argocdprovisioner "github.com/argoproj-labs/argocd-operator/controllers/argocd"
4039
notificationsprovisioner "github.com/argoproj-labs/argocd-operator/controllers/notificationsconfiguration"
4140
appsv1 "github.com/openshift/api/apps/v1"
@@ -229,8 +228,8 @@ func main() {
229228
Scheme: mgr.GetScheme(),
230229
LabelSelector: labelSelectorFlag,
231230
K8sClient: k8sClient,
232-
LocalUsers: &argocd.LocalUsersInfo{
233-
TokenRenewalTimers: map[string]*argocd.TokenRenewalTimer{},
231+
LocalUsers: &argocdprovisioner.LocalUsersInfo{
232+
TokenRenewalTimers: map[string]*argocdprovisioner.TokenRenewalTimer{},
234233
},
235234
}).SetupWithManager(mgr); err != nil {
236235
setupLog.Error(err, "unable to create controller", "controller", "Argo CD")

controllers/argocd/openshift/openshift.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func BuilderHook(_ *argoapp.ArgoCD, v interface{}, _ string) error {
118118
logv.Info("updating the Argo CD controller to watch for changes to the admin ClusterRole")
119119

120120
clusterResourceHandler := handler.EnqueueRequestsFromMapFunc(adminClusterRoleMapper(bldr.Client))
121-
bldr.Builder.Watches(&rbacv1.ClusterRole{}, clusterResourceHandler,
121+
bldr.Watches(&rbacv1.ClusterRole{}, clusterResourceHandler,
122122
builder.WithPredicates(predicate.NewPredicateFuncs(func(o client.Object) bool {
123123
return o.GetName() == "admin"
124124
})))

controllers/argocd/openshift/openshift_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,10 +306,10 @@ func TestAdminClusterRoleMapper(t *testing.T) {
306306

307307
// Sort both slices to ensure consistent comparison
308308
sort.Slice(result, func(i, j int) bool {
309-
return result[i].NamespacedName.Name < result[j].NamespacedName.Name
309+
return result[i].Name < result[j].Name
310310
})
311311
sort.Slice(expectedRequests, func(i, j int) bool {
312-
return expectedRequests[i].NamespacedName.Name < expectedRequests[j].NamespacedName.Name
312+
return expectedRequests[i].Name < expectedRequests[j].Name
313313
})
314314

315315
assert.Equal(t, expectedRequests, result)

test/openshift/e2e/ginkgo/parallel/1-031_validate_toolchain_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ var _ = Describe("GitOps Operator Parallel E2E Tests", func() {
9595
if os.Getenv("CI") == "prow" {
9696
// when running against openshift-ci
9797
expected_dexVersion = "v2.30.3-dirty"
98-
expected_redisVersion = "6.2.4"
98+
expected_redisVersion = "7.2.7"
9999

100100
} else {
101101
// when running against RC/ released version of gitops

0 commit comments

Comments
 (0)