Skip to content

Commit

Permalink
Fix getVolumesFromAssociations when association has no CA
Browse files Browse the repository at this point in the history
  • Loading branch information
thbkrkr committed Sep 14, 2021
1 parent a6be319 commit 14aa58f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controller/agent/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ func getVolumesFromAssociations(associations []commonv1.Association) []volume.Vo
var vols []volume.VolumeLike
for i, assoc := range associations {
if !assoc.AssociationConf().CAIsConfigured() {
return nil
// skip as there is no volume to mount if association has no CA configured
continue
}
caSecretName := assoc.AssociationConf().GetCASecretName()
vols = append(vols, volume.NewSecretVolumeWithMountPath(
Expand Down

0 comments on commit 14aa58f

Please sign in to comment.