@@ -91,7 +91,6 @@ func main() {
91
91
helmCacheMaxSize int
92
92
helmCacheTTL string
93
93
helmCachePurgeInterval string
94
- kexAlgos []string
95
94
artifactRetentionTTL time.Duration
96
95
artifactRetentionRecords int
97
96
)
@@ -124,8 +123,10 @@ func main() {
124
123
"The TTL of an index in the cache. Valid time units are ns, us (or µs), ms, s, m, h." )
125
124
flag .StringVar (& helmCachePurgeInterval , "helm-cache-purge-interval" , "1m" ,
126
125
"The interval at which the cache is purged. Valid time units are ns, us (or µs), ms, s, m, h." )
127
- flag .StringSliceVar (& kexAlgos , "ssh-kex-algos" , []string {},
126
+ flag .StringSliceVar (& git . KexAlgos , "ssh-kex-algos" , []string {},
128
127
"The list of key exchange algorithms to use for ssh connections, arranged from most preferred to the least." )
128
+ flag .StringSliceVar (& git .HostKeyAlgos , "ssh-hostkey-algos" , []string {},
129
+ "The list of hostkey algorithms to use for ssh connections, arranged from most preferred to the least." )
129
130
flag .DurationVar (& artifactRetentionTTL , "artifact-retention-ttl" , 60 * time .Second ,
130
131
"The duration of time that artifacts will be kept in storage before being garbage collected." )
131
132
flag .IntVar (& artifactRetentionRecords , "artifact-retention-records" , 2 ,
@@ -185,7 +186,6 @@ func main() {
185
186
storageAdvAddr = determineAdvStorageAddr (storageAddr , setupLog )
186
187
}
187
188
storage := mustInitStorage (storagePath , storageAdvAddr , artifactRetentionTTL , artifactRetentionRecords , setupLog )
188
- setPreferredKexAlgos (kexAlgos )
189
189
190
190
if err = (& controllers.GitRepositoryReconciler {
191
191
Client : mgr .GetClient (),
@@ -345,7 +345,3 @@ func envOrDefault(envName, defaultValue string) string {
345
345
346
346
return defaultValue
347
347
}
348
-
349
- func setPreferredKexAlgos (algos []string ) {
350
- git .KexAlgos = algos
351
- }
0 commit comments