Skip to content

Commit

Permalink
[db] inCluster: remove mysql version flag
Browse files Browse the repository at this point in the history
  • Loading branch information
geropl committed Sep 19, 2023
1 parent 5303260 commit 5170a7a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
5 changes: 0 additions & 5 deletions dev/preview/workflow/preview/deploy-gitpod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -483,11 +483,6 @@ yq w -i "${INSTALLER_CONFIG_PATH}" experimental.workspace.networkLimits.enforce
yq w -i "${INSTALLER_CONFIG_PATH}" experimental.workspace.networkLimits.connectionsPerMinute "3000"
yq w -i "${INSTALLER_CONFIG_PATH}" experimental.workspace.networkLimits.bucketSize "3000"

#
# Configure DB
#
yq w -i "${INSTALLER_CONFIG_PATH}" database.inClusterMySql_8_0 "true"

log_success "Generated config at $INSTALLER_CONFIG_PATH"

# ========
Expand Down
14 changes: 5 additions & 9 deletions install/installer/pkg/components/database/incluster/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,11 @@ var Helm = common.CompositeHelmFunc(
Value string `json:"value,omitempty"`
}
extraEnvVars := []EnvVar{}
// MySQL 5.7: We switched to specific tags because we got subtle broken versions with just specifying major versions
mysqlBitnamiImageTag := "5.7.34-debian-10-r55"
if cfg.Config.Database.InClusterMysSQL_8_0 {
mysqlBitnamiImageTag = "8.0.33-debian-11-r24"
extraEnvVars = append(extraEnvVars, EnvVar{
Name: "MYSQL_AUTHENTICATION_PLUGIN",
Value: "mysql_native_password",
})
}
mysqlBitnamiImageTag = "8.0.33-debian-11-r24"
extraEnvVars = append(extraEnvVars, EnvVar{
Name: "MYSQL_AUTHENTICATION_PLUGIN",
Value: "mysql_native_password",
})
extraEnvVarsBytes, err := yaml.Marshal(extraEnvVars)
if err != nil {
return nil, err
Expand Down
2 changes: 0 additions & 2 deletions install/installer/pkg/config/v1/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,6 @@ type Database struct {
External *DatabaseExternal `json:"external,omitempty"`
CloudSQL *DatabaseCloudSQL `json:"cloudSQL,omitempty"`
SSL *SSLOptions `json:"ssl,omitempty"`
// A temporary flag to help debug for the migration to MySQL 8.0
InClusterMysSQL_8_0 bool `json:"inClusterMySql_8_0,omitempty"`
}

type DatabaseExternal struct {
Expand Down

0 comments on commit 5170a7a

Please sign in to comment.