diff --git a/cmd/main.go b/cmd/main.go index a4a8a72bdce..f731f43b383 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -78,6 +78,7 @@ import ( metricsserver "sigs.k8s.io/controller-runtime/pkg/metrics/server" "github.com/argoproj-labs/gitops-operator/argocd-operator/pkg/tlsprofile" + "github.com/samber/lo" //+kubebuilder:scaffold:imports ) @@ -382,6 +383,9 @@ func main() { DisableClusterTLSProfile: disableClusterTLSProfile, MinVersion: profile.MinTLSVersion, Ciphers: profile.Ciphers, + CurvePreferences: lo.Map(profile.Groups, func(group configv1.TLSGroup, _ int) string { + return string(group) + }), }, }).SetupWithManager(mgr); err != nil { setupLog.Error(err, "unable to create controller", "controller", "Argo CD") diff --git a/go.mod b/go.mod index e04582f5b0b..d0036fc47c2 100644 --- a/go.mod +++ b/go.mod @@ -25,6 +25,7 @@ require ( github.com/openshift/controller-runtime-common v0.0.0-20260428152732-64ee174f5e2e github.com/operator-framework/api v0.17.5 github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.74.0 + github.com/samber/lo v1.53.0 github.com/stretchr/testify v1.11.1 go.uber.org/zap v1.28.0 golang.org/x/crypto v0.56.0 diff --git a/go.sum b/go.sum index 32ec726a6df..fe682fee0ae 100644 --- a/go.sum +++ b/go.sum @@ -421,6 +421,8 @@ github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0t github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc= github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/samber/lo v1.53.0 h1:t975lj2py4kJPQ6haz1QMgtId2gtmfktACxIXArw3HM= +github.com/samber/lo v1.53.0/go.mod h1:4+MXEGsJzbKGaUEQFKBq2xtfuznW9oz/WrgyzMzRoM0= github.com/sergi/go-diff v1.4.0 h1:n/SP9D5ad1fORl+llWyN+D6qoUETXNZARKjyY2/KVCw= github.com/sergi/go-diff v1.4.0/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4= github.com/sethvargo/go-password v0.4.0 h1:eSidVKQw5C7CmTDAtH3RipBTSjdU1ZRxQaynD2GWLVU=