Skip to content

Commit 67f41cf

Browse files
authored
Merge pull request #2487 from FabianKramm/main
fix: add ssh config quotes
2 parents a0b69d1 + f47fc6f commit 67f41cf

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

pkg/devspace/services/podreplace/builder.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ func buildDeployment(ctx devspacecontext.Context, name string, target runtime.Ob
160160
deployment.Spec.Selector.MatchExpressions = nil
161161
}
162162
deployment.Spec.Selector.MatchLabels[selector.ReplacedLabel] = "true"
163+
deployment.Spec.Strategy = appsv1.DeploymentStrategy{
164+
Type: appsv1.RecreateDeploymentStrategyType,
165+
}
163166

164167
// make sure labels etc are there
165168
if ctx.Log().GetLevel() == logrus.DebugLevel {

pkg/devspace/services/ssh/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ func addHost(path, host, port string) (string, error) {
232232
newLines = append(newLines, " HostName localhost")
233233
newLines = append(newLines, " LogLevel error")
234234
newLines = append(newLines, " Port "+port)
235-
newLines = append(newLines, " IdentityFile "+DevSpaceSSHPrivateKeyFile)
235+
newLines = append(newLines, " IdentityFile \""+DevSpaceSSHPrivateKeyFile+"\"")
236236
newLines = append(newLines, " StrictHostKeyChecking no")
237237
newLines = append(newLines, " UserKnownHostsFile /dev/null")
238238
newLines = append(newLines, " User devspace")

0 commit comments

Comments
 (0)