-
Notifications
You must be signed in to change notification settings - Fork 6
Set probes port and scheme based on .spec.manageTLS #821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
leochr
left a comment
There was a problem hiding this 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).
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) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, removed the parameter.
Signed-off-by: Leo Christy Jesuraj <leojc@ca.ibm.com>
Signed-off-by: Leo Christy Jesuraj <leojc@ca.ibm.com>
Update to .secrets.baseline for 1.5.2
.spec.manageTLSvalue. For example, if manageTLS is true or undefined, scheme will be HTTPS and otherwise, HTTP.