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 0e1f05d commit 856b143
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1179,8 +1179,10 @@ 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",
// 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",
})
}

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 856b143

Please sign in to comment.