Skip to content

Commit

Permalink
Fine tune the log and the variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
atheo89 committed Mar 1, 2024
1 parent 7acd2dd commit 36e6ea2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,30 +300,30 @@ func CheckAndMountCACertBundle(ctx context.Context, cli client.Client, notebook

if err := certValidator(cm, "ca-bundle.crt", log); err == nil {
log.Info("Validating certificates for ca-bundle.crt")
CustomCAvolumeMounts := []corev1.VolumeMount{
customCAVolumeMounts := []corev1.VolumeMount{
{
Name: volumeName,
MountPath: caVolumeMountPath,
SubPath: "custom-ca-bundle.crt",
ReadOnly: true,
},
}
volumeMounts = append(volumeMounts, CustomCAvolumeMounts...)
volumeMounts = append(volumeMounts, customCAVolumeMounts...)
} else {
log.Error(err, "Error validating certificates for ca-bundle.crt")
}

if err := certValidator(cm, "odh-ca-bundle.crt", log); err == nil {
log.Info("Validating certificates for odh-ca-bundle.crt")
CustomODHCAvolumeMountsvolumeMounts := []corev1.VolumeMount{
customODHCAVolumeMounts := []corev1.VolumeMount{
{
Name: volumeName,
MountPath: odhVolumeMountPath,
SubPath: "custom-odh-ca-bundle.crt",
ReadOnly: true,
},
}
volumeMounts = append(volumeMounts, CustomODHCAvolumeMountsvolumeMounts...)
volumeMounts = append(volumeMounts, customODHCAVolumeMounts...)
} else {
log.Error(err, "Error validating certificates for odh-ca-bundle.crt")
}
Expand Down

0 comments on commit 36e6ea2

Please sign in to comment.