-
Notifications
You must be signed in to change notification settings - Fork 723
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
Adjust Agent startup command to Ubuntu base image #5253
Conversation
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.
One question.
pkg/controller/agent/pod.go
Outdated
func trustCAScript(version version.Version, caPath string) string { | ||
sharedCAPath := "/etc/pki/ca-trust/source/anchors/" | ||
updateCmd := "update-ca-trust" | ||
if version.Major == 8 { |
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.
Do we want >=
8? Otherwise, we'd have to update this again when work began on v9.
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.
Well, I guess it's a question of whether we think that the next version is going to go back to CentOS style path/cmd, as that's how it will currently be handled.
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.
No, this is a good observation. Even if there is not other major after 8 we should not box ourselves in here.
The base image for Elastic Agent changes from CentOS to Ubuntu in 8.0.0. This adjusts the script that updates the certificates in the image to trust the Elasticsearch certificates the operator generates.
Fixes #5250
As stated in the title this adjusts the CA trust script we are running on startup when Agent is associated with an Elasticsearch instance to the new Ubuntu base image Agent is using in 8.x