Skip to content

Commit

Permalink
THREESCALE-11020 Redis TLS update - review
Browse files Browse the repository at this point in the history
  • Loading branch information
valerymo committed Jan 15, 2025
1 parent a686c2f commit 3aea74e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
7 changes: 1 addition & 6 deletions pkg/3scale/amp/component/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +437,6 @@ func (backend *Backend) buildBackendWorkerEnv() []v1.EnvVar {
)
}

if backend.Options.RedisTLSEnabled {
result = append(result, backend.BackendRedisTLSEnvVars()...)
}
return result
}

Expand All @@ -464,9 +461,7 @@ func (backend *Backend) buildBackendListenerEnv() []v1.EnvVar {
v1.EnvVar{Name: "CONFIG_LISTENER_PROMETHEUS_METRICS_ENABLED", Value: "true"},
)
}
if backend.Options.RedisTLSEnabled {
result = append(result, backend.BackendRedisTLSEnvVars()...)
}

return result
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/3scale/amp/component/redis_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,5 @@ func DefaultBackendQueuesSentinelRole() string {
}

func DefaultRedisSslSecretValue() string {
return "replaceme"
return ""
}
8 changes: 0 additions & 8 deletions pkg/3scale/amp/operator/redis_options_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ func (r *RedisOptionsProvider) GetRedisOptions() (*component.RedisOptions, error
r.setPersistentVolumeClaimOptions()
r.setPriorityClassNames()
r.setTopologySpreadConstraints()
//r.setTLSEnabled()

// Should the operator be reading redis secrets?
// When HA is disabled, do we support external redis?
Expand Down Expand Up @@ -377,10 +376,3 @@ func (r *RedisOptionsProvider) systemRedisSecretLabels() map[string]string {
labels["apimanager.apps.3scale.net/watched-by"] = "system"
return labels
}

//func (s *RedisOptionsProvider) setTLSEnabled() {
// s.options.RedisTLSEnabled = false
// if s.apimanager.Spec.RedisTLSEnabled != nil {
// s.options.RedisTLSEnabled = *s.apimanager.Spec.RedisTLSEnabled
// }
//}

0 comments on commit 3aea74e

Please sign in to comment.