mirror of
https://github.com/rancher/k3k.git
synced 2026-08-23 22:36:17 +00:00
External datastore support (#879)
* Adding new k3s function to get the config * Adding a new way to get the bootstrap data directly from the server Pod * Gate the bootstrap fetch if external datastore is in use --------- Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
This commit is contained in:
@@ -41,8 +41,13 @@ func buildSecretMountVolume(secretMount v1beta1.SecretMount) (corev1.Volume, cor
|
||||
},
|
||||
}
|
||||
|
||||
volName := secretMount.Name
|
||||
if volName == "" {
|
||||
volName = secretMount.SecretName
|
||||
}
|
||||
|
||||
vol := corev1.Volume{
|
||||
Name: secretMount.SecretName,
|
||||
Name: volName,
|
||||
VolumeSource: corev1.VolumeSource{
|
||||
Projected: &corev1.ProjectedVolumeSource{
|
||||
Sources: projectedVolSources,
|
||||
@@ -51,7 +56,7 @@ func buildSecretMountVolume(secretMount v1beta1.SecretMount) (corev1.Volume, cor
|
||||
}
|
||||
|
||||
volMount := corev1.VolumeMount{
|
||||
Name: secretMount.SecretName,
|
||||
Name: volName,
|
||||
MountPath: secretMount.MountPath,
|
||||
SubPath: secretMount.SubPath,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user