Skip to content

Commit f9bd7c2

Browse files
committed
remove time component
1 parent 4da4093 commit f9bd7c2

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

cli/server.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -583,9 +583,7 @@ func (r *RootCmd) Server(newAPI func(context.Context, *coderd.Options) (*coderd.
583583
HostnamePrefix: vals.SSHConfig.DeploymentName.String(),
584584
SSHConfigOptions: configSSHOptions,
585585
},
586-
// we are experimenting with self destructing flags that stop working after a certain date.
587-
// This flag should be removed after the date specified below.
588-
AllowWorkspaceRenames: allowWorkspaceRenames(vals.AllowWorkspaceRenames.Value()),
586+
AllowWorkspaceRenames: vals.AllowWorkspaceRenames.Value(),
589587
}
590588
if httpServers.TLSConfig != nil {
591589
options.TLSCertificates = httpServers.TLSConfig.Certificates
@@ -2551,7 +2549,3 @@ func parseExternalAuthProvidersFromEnv(prefix string, environ []string) ([]coder
25512549
}
25522550
return providers, nil
25532551
}
2554-
2555-
func allowWorkspaceRenames(flagValue bool) bool {
2556-
return flagValue && time.Now().Before(codersdk.WorkspaceRenameDeadline)
2557-
}

codersdk/deployment.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"encoding/json"
66
"flag"
7-
"fmt"
87
"net/http"
98
"os"
109
"path/filepath"
@@ -1846,7 +1845,7 @@ Write out the current server config as YAML to stdout.`,
18461845
},
18471846
{
18481847
Name: "Allow Workspace Renames",
1849-
Description: fmt.Sprintf("DEPRECATED: Allow users to rename their workspaces. Use only for temporary compatibility reasons, this flag will no longer function after %s.", WorkspaceRenameDeadline.Format("2006-01-02")),
1848+
Description: "DEPRECATED: Allow users to rename their workspaces. Use only for temporary compatibility reasons.",
18501849
Flag: "allow-workspace-renames",
18511850
Env: "CODER_ALLOW_WORKSPACE_RENAMES",
18521851
Default: "false",

codersdk/workspaces.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ const (
2121
AutomaticUpdatesNever AutomaticUpdates = "never"
2222
)
2323

24-
var WorkspaceRenameDeadline = time.Date(2024, 04, 01, 0, 0, 0, 0, time.UTC)
25-
2624
// Workspace is a deployment of a template. It references a specific
2725
// version and can be updated.
2826
type Workspace struct {

0 commit comments

Comments
 (0)