Skip to content

Commit

Permalink
Change environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ebaron committed Jan 15, 2025
1 parent 2524613 commit b0261c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1179,16 +1179,11 @@ func NewCoreContainer(cr *model.CryostatInstance, specs *ServiceSpecs, imageTag
if cr.Spec.AgentOptions != nil && cr.Spec.AgentOptions.DisableHostnameVerification {
envs = append(envs,
corev1.EnvVar{
Name: "CRYOSTAT_AGENT_DISABLE_HOSTNAME_VERIFICATION",
Value: "true",
},
// FIXME this disables hostname verification on all HTTP clients, not only the Agent ones.
// This means hostname verification on the report sidecar client, if any, will also be disabled.
corev1.EnvVar{
// TODO This should eventually be replaced by an agent-specific toggle.
// See: https://github.com/cryostatio/cryostat/issues/778
Name: "QUARKUS_REST_CLIENT_VERIFY_HOST",
Value: "false",
},
)
})
}

// Mount the templates specified in Cryostat CR under /opt/cryostat.d/templates.d
Expand Down
4 changes: 2 additions & 2 deletions internal/test/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -1605,8 +1605,8 @@ func (r *TestResources) NewCoreEnvironmentVariables(reportsUrl string, ingress b
if r.DisableAgentHostnameVerify {
envs = append(envs,
corev1.EnvVar{
Name: "CRYOSTAT_AGENT_DISABLE_HOSTNAME_VERIFICATION",
Value: "true",
Name: "QUARKUS_REST_CLIENT_VERIFY_HOST",
Value: "false",
})
}

Expand Down

0 comments on commit b0261c7

Please sign in to comment.