Skip to content

Commit

Permalink
TEST
Browse files Browse the repository at this point in the history
Signed-off-by: JenTing Hsiao <[email protected]>
  • Loading branch information
jenting committed Oct 7, 2022
1 parent 79f47a8 commit c0a9017
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions install/installer/pkg/components/server/configmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ func configmap(ctx *common.RenderContext) ([]runtime.Object, error) {
// Enable protected_secrets by default
defaultFeatureFlags := []NamedWorkspaceFeatureFlag{NamedWorkspaceFeatureProtectedSecrets}
_ = ctx.WithExperimental(func(cfg *experimental.Config) error {
if cfg == nil || cfg.Workspace == nil {
if cfg == nil || cfg.Workspace == nil || cfg.Workspace.EnableProtectedSecrets == nil {
return nil
}
if !cfg.Workspace.EnableProtectedSecrets {
if !*cfg.Workspace.EnableProtectedSecrets {
// Disable protected_secrets if it is explicitly set to false in the installer configuration
defaultFeatureFlags = []NamedWorkspaceFeatureFlag{}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ type WorkspaceConfig struct {
UsageReportBucketName string `json:"usageReportBucketName"`
} `json:"contentService"`

EnableProtectedSecrets bool `json:"enableProtectedSecrets"`
EnableProtectedSecrets *bool `json:"enableProtectedSecrets"`
}

type PersistentVolumeClaim struct {
Expand Down

0 comments on commit c0a9017

Please sign in to comment.