@@ -80,6 +80,7 @@ func MakeDeployment(ctx context.Context, el *v1beta1.EventListener, configAcc re
80
80
nodeSelector , annotations map [string ]string
81
81
affinity * corev1.Affinity
82
82
topologySpreadConstraints []corev1.TopologySpreadConstraint
83
+ imagePullSecrets []corev1.LocalObjectReference
83
84
)
84
85
85
86
for _ , v := range container .Env {
@@ -106,6 +107,9 @@ func MakeDeployment(ctx context.Context, el *v1beta1.EventListener, configAcc re
106
107
if len (el .Spec .Resources .KubernetesResource .Template .Spec .NodeSelector ) != 0 {
107
108
nodeSelector = el .Spec .Resources .KubernetesResource .Template .Spec .NodeSelector
108
109
}
110
+ if len (el .Spec .Resources .KubernetesResource .Template .Spec .ImagePullSecrets ) != 0 {
111
+ imagePullSecrets = el .Spec .Resources .KubernetesResource .Template .Spec .ImagePullSecrets
112
+ }
109
113
if el .Spec .Resources .KubernetesResource .Template .Spec .ServiceAccountName != "" {
110
114
serviceAccountName = el .Spec .Resources .KubernetesResource .Template .Spec .ServiceAccountName
111
115
}
@@ -137,6 +141,7 @@ func MakeDeployment(ctx context.Context, el *v1beta1.EventListener, configAcc re
137
141
Annotations : annotations ,
138
142
},
139
143
Spec : corev1.PodSpec {
144
+ ImagePullSecrets : imagePullSecrets ,
140
145
Tolerations : tolerations ,
141
146
NodeSelector : nodeSelector ,
142
147
ServiceAccountName : serviceAccountName ,
0 commit comments