Skip to content

Commit

Permalink
cryostat expects to talk to storage over http only for now
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Nov 1, 2024
1 parent d4c0035 commit 67cd857
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1210,6 +1210,11 @@ func NewCoreContainer(cr *model.CryostatInstance, specs *ServiceSpecs, imageTag
configPath := "/opt/cryostat.d/conf.d"
templatesPath := "/opt/cryostat.d/templates.d"

storageProtocol := "http"
// TODO
// if tls != nil {
// storageProtocol = "https"
// }
envs := []corev1.EnvVar{
{
Name: "QUARKUS_HTTP_HOST",
Expand Down Expand Up @@ -1257,7 +1262,7 @@ func NewCoreContainer(cr *model.CryostatInstance, specs *ServiceSpecs, imageTag
},
{
Name: "QUARKUS_S3_ENDPOINT_OVERRIDE",
Value: fmt.Sprintf("https://%s-storage.%s.svc.cluster.local:8333", cr.Name, cr.InstallNamespace),
Value: fmt.Sprintf("%s://%s-storage.%s.svc.cluster.local:8333", storageProtocol, cr.Name, cr.InstallNamespace),
},
{
Name: "QUARKUS_S3_PATH_STYLE_ACCESS",
Expand Down Expand Up @@ -1639,6 +1644,7 @@ func NewStorageContainer(cr *model.CryostatInstance, imageTag string, tls *TLSCo

livenessProbeScheme := corev1.URISchemeHTTP

// TODO
/**
if tls != nil {
tlsEnvs := []corev1.EnvVar{
Expand Down Expand Up @@ -1787,6 +1793,7 @@ func NewDatabaseContainer(cr *model.CryostatInstance, imageTag string, tls *TLSC
},
}

// TODO
/**
if tls != nil {
tlsEnvs := []corev1.EnvVar{
Expand Down

0 comments on commit 67cd857

Please sign in to comment.