@@ -189,7 +189,7 @@ func TestReconcile(t *testing.T) {
189189 WithIntegrationSourceSpec (makeIntegrationSourceSpec (sinkDest )),
190190 WithInitIntegrationSourceConditions ,
191191 WithIntegrationSourceStatusObservedGeneration (generation ),
192- WithIntegrationSourcePropagateContainerSourceStatus (makeContainerSourceStatus (& conditionTrue )),
192+ WithIntegrationSourcePropagateContainerSourceStatus (makeContainerSourceStatusOIDC (& conditionTrue )),
193193 WithIntegrationSourceOIDCServiceAccountName (getOIDCServiceAccountNameForContainerSource ()),
194194 ),
195195 }},
@@ -218,39 +218,6 @@ func TestReconcile(t *testing.T) {
218218
219219func makeContainerSourceOIDC (source * sourcesv1alpha1.IntegrationSource , ready * corev1.ConditionStatus ) * sourcesv1.ContainerSource {
220220 cs := makeContainerSource (source , ready )
221-
222- // replace all env_vars for inserting the OIDC ones at the right order/index
223- cs .Spec .Template .Spec .Containers [0 ].Env = []corev1.EnvVar {
224- {
225- Name : "CAMEL_KNATIVE_CLIENT_SSL_ENABLED" ,
226- Value : "true" ,
227- },
228- {
229- Name : "CAMEL_KNATIVE_CLIENT_SSL_CERT_PATH" ,
230- Value : "/knative-custom-certs/knative-eventing-bundle.pem" ,
231- },
232- {
233- Name : "CAMEL_KNATIVE_CLIENT_OIDC_ENABLED" ,
234- Value : "true" ,
235- },
236- {
237- Name : "CAMEL_KNATIVE_CLIENT_OIDC_TOKEN_PATH" ,
238- Value : "file:///oidc/token" ,
239- },
240- {
241- Name : "CAMEL_KAMELET_TIMER_SOURCE_PERIOD" ,
242- Value : "1000" ,
243- },
244- {
245- Name : "CAMEL_KAMELET_TIMER_SOURCE_MESSAGE" ,
246- Value : "Hallo" ,
247- },
248- {
249- Name : "CAMEL_KAMELET_TIMER_SOURCE_REPEATCOUNT" ,
250- Value : "0" ,
251- },
252- }
253-
254221 cs .Status = * makeContainerSourceStatusOIDC (ready )
255222
256223 return cs
0 commit comments