-
Notifications
You must be signed in to change notification settings - Fork 19
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
add TLS support for status service #215
Conversation
@@ -168,6 +168,36 @@ func (b *DatabaseStatefulSetBuilder) buildVolumes() []corev1.Volume { | |||
volumes = append(volumes, buildTLSVolume(interconnectTLSVolumeName, b.Spec.Service.Interconnect.TLSConfiguration)) | |||
} | |||
|
|||
if b.Spec.Service.Status.TLSConfiguration.Enabled { | |||
volumes = append(volumes, | |||
// No CA here |
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.
We should use buildTLSVolume
here. In case of user hasn't CA file he may set it to just cert file
@@ -212,6 +212,36 @@ func (b *StorageStatefulSetBuilder) buildVolumes() []corev1.Volume { | |||
volumes = append(volumes, buildTLSVolume(interconnectTLSVolumeName, b.Spec.Service.Interconnect.TLSConfiguration)) | |||
} | |||
|
|||
if b.Spec.Service.Status.TLSConfiguration.Enabled { | |||
volumes = append(volumes, | |||
// No CA here |
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.
the same as database_statefulset.go, use buildTLSVolume here
3b02f60
to
32c4f4b
Compare
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
Add support for Service.Status.TLSConfiguration for Storage and Database object.
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Other information