mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-12 21:01:36 +00:00
🐛 Fix .spec.template.spec.imagePullSecrets: element 0: associative list with keys has an element that omits key field \"name\"
error
This commit is contained in:
@@ -816,11 +816,13 @@ func (provider *Provider) ApplyWorkerDaemonSet(
|
|||||||
podSpec.WithTolerations(noExecuteToleration, noScheduleToleration)
|
podSpec.WithTolerations(noExecuteToleration, noScheduleToleration)
|
||||||
podSpec.WithVolumes(procfsVolume, sysfsVolume)
|
podSpec.WithVolumes(procfsVolume, sysfsVolume)
|
||||||
|
|
||||||
|
if len(imagePullSecrets) > 0 {
|
||||||
localObjectReference := applyconfcore.LocalObjectReference()
|
localObjectReference := applyconfcore.LocalObjectReference()
|
||||||
for _, secret := range imagePullSecrets {
|
for _, secret := range imagePullSecrets {
|
||||||
localObjectReference.WithName(secret.Name)
|
localObjectReference.WithName(secret.Name)
|
||||||
}
|
}
|
||||||
podSpec.WithImagePullSecrets(localObjectReference)
|
podSpec.WithImagePullSecrets(localObjectReference)
|
||||||
|
}
|
||||||
|
|
||||||
podTemplate := applyconfcore.PodTemplateSpec()
|
podTemplate := applyconfcore.PodTemplateSpec()
|
||||||
podTemplate.WithLabels(map[string]string{
|
podTemplate.WithLabels(map[string]string{
|
||||||
|
Reference in New Issue
Block a user