Skip to content

Commit

Permalink
chore: use correct image pull secret. (#13151)
Browse files Browse the repository at this point in the history
The current change was a P0 hot fix to make sure the right configuration was passed in.

To save time, I used what was already present. Here we do so correctly.
  • Loading branch information
davinchia committed Jul 18, 2024
1 parent 74b7096 commit 86c6955
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,15 @@ class ContainerConfigBeanFactory {
}
}

@Singleton
@Named("replicationImagePullSecrets")
fun replicationImagePullSecrets(
@Named("replicationWorkerConfigs") workerConfigs: WorkerConfigs,
): List<LocalObjectReference> {
return workerConfigs.jobImagePullSecrets
.map { imagePullSecret -> LocalObjectReference(imagePullSecret) }
}

@Singleton
@Named("checkImagePullSecrets")
fun checkImagePullSecrets(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class OrchestratorPodFactory(
private val orchestratorEnvSingleton: OrchestratorEnvSingleton,
@Value("\${airbyte.worker.job.kube.serviceAccount}") private val serviceAccount: String?,
@Named("orchestratorContainerPorts") private val containerPorts: List<ContainerPort>,
@Named("discoverImagePullSecrets") private val imagePullSecrets: List<LocalObjectReference>,
@Named("replicationImagePullSecrets") private val imagePullSecrets: List<LocalObjectReference>,
private val volumeFactory: VolumeFactory,
private val initContainerFactory: InitContainerFactory,
) {
Expand Down

0 comments on commit 86c6955

Please sign in to comment.