Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pkg/devspace/services/podreplace/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ func buildDeployment(ctx devspacecontext.Context, name string, target runtime.Ob
deployment.Spec.Selector.MatchExpressions = nil
}
deployment.Spec.Selector.MatchLabels[selector.ReplacedLabel] = "true"
deployment.Spec.Strategy = appsv1.DeploymentStrategy{
Type: appsv1.RecreateDeploymentStrategyType,
}

// make sure labels etc are there
if ctx.Log().GetLevel() == logrus.DebugLevel {
Expand Down
2 changes: 1 addition & 1 deletion pkg/devspace/services/ssh/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func addHost(path, host, port string) (string, error) {
newLines = append(newLines, " HostName localhost")
newLines = append(newLines, " LogLevel error")
newLines = append(newLines, " Port "+port)
newLines = append(newLines, " IdentityFile "+DevSpaceSSHPrivateKeyFile)
newLines = append(newLines, " IdentityFile \""+DevSpaceSSHPrivateKeyFile+"\"")
newLines = append(newLines, " StrictHostKeyChecking no")
newLines = append(newLines, " UserKnownHostsFile /dev/null")
newLines = append(newLines, " User devspace")
Expand Down