Skip to content

Set probes port and scheme based on .spec.manageTLS#821

Merged
leochr merged 6 commits intomainfrom
cfg-probes
Mar 3, 2026
Merged

Set probes port and scheme based on .spec.manageTLS#821
leochr merged 6 commits intomainfrom
cfg-probes

Conversation

@kabicin
Copy link
Copy Markdown
Contributor

@kabicin kabicin commented Dec 1, 2025

  • The port/scheme will default based upon the CR instance's .spec.manageTLS value. For example, if manageTLS is true or undefined, scheme will be HTTPS and otherwise, HTTP.

leochr
leochr previously approved these changes Dec 1, 2025
Copy link
Copy Markdown
Member

@leochr leochr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kabicin Thank you. Looks good. Just one minor comment about FileName (which could be addressed separately).

Comment thread utils/utils.go Outdated
appContainer.StartupProbe = patchFileBasedProbe(instance.Spec.Probes.WebSphereLibertyApplicationProbes.GetDefaultStartupProbe(instance), instance.Spec.Probes.Startup, StartupProbeFileBasedScriptName, StartupProbeFileName)
probes := instance.Spec.Probes.WebSphereLibertyApplicationProbes
if probes.Startup != nil {
appContainer.StartupProbe = patchFileBasedProbe(probes.GetDefaultStartupProbe(instance), probes.GetStartupProbe(), StartupProbeFileBasedScriptName, StartupProbeFileName)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: FileName is no longer needed I believe and could be removed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, removed the parameter.

leochr
leochr previously approved these changes Mar 3, 2026
Copy link
Copy Markdown
Member

@leochr leochr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kabicin Looks good. Thank you

@leochr leochr merged commit 318e156 into main Mar 3, 2026
@leochr leochr deleted the cfg-probes branch March 3, 2026 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants