-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🎉 Core: Support for IRSA when logging on EKS and passing role to Dest/Source Pods #177
Changes from all commits
4b3ae45
b8c3872
737bf48
fa30991
27c4d69
4d154e5
2dca1b8
a575b96
4aca296
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ data | |
.vscode | ||
**/gmon.out | ||
static_checker_reports/ | ||
bin/ | ||
|
||
# Logs | ||
acceptance_tests_logs/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,10 +54,12 @@ public ProcessFactory checkDockerProcessFactory( | |
public ProcessFactory checkKubernetesProcessFactory( | ||
@Named("checkWorkerConfigs") final WorkerConfigs workerConfigs, | ||
@Value("${airbyte.worker.job.kube.namespace}") final String kubernetesNamespace, | ||
@Value("${airbyte.worker.job.kube.service.account") final String kubernetesServiceAccount, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If I'm not wrong, there is a missing bracket here |
||
@Value("${micronaut.server.port}") final Integer serverPort) | ||
throws UnknownHostException { | ||
return createKubernetesProcessFactory(workerConfigs, | ||
kubernetesNamespace, | ||
kubernetesServiceAccount, | ||
serverPort); | ||
} | ||
|
||
|
@@ -86,10 +88,12 @@ public ProcessFactory defaultDockerProcessFactory( | |
public ProcessFactory defaultKubernetesProcessFactory( | ||
@Named("defaultWorkerConfigs") final WorkerConfigs workerConfigs, | ||
@Value("${airbyte.worker.job.kube.namespace}") final String kubernetesNamespace, | ||
@Value("${airbyte.worker.job.kube.service.account") final String kubernetesServiceAccount, | ||
@Value("${micronaut.server.port}") final Integer serverPort) | ||
throws UnknownHostException { | ||
return createKubernetesProcessFactory(workerConfigs, | ||
kubernetesNamespace, | ||
kubernetesServiceAccount, | ||
serverPort); | ||
} | ||
|
||
|
@@ -118,10 +122,12 @@ public ProcessFactory discoverDockerProcessFactory( | |
public ProcessFactory discoverKubernetesProcessFactory( | ||
@Named("discoverWorkerConfigs") final WorkerConfigs workerConfigs, | ||
@Value("${airbyte.worker.job.kube.namespace}") final String kubernetesNamespace, | ||
@Value("${airbyte.worker.job.kube.service.account") final String kubernetesServiceAccount, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @benmoriceau left a comment:
|
||
@Value("${micronaut.server.port}") final Integer serverPort) | ||
throws UnknownHostException { | ||
return createKubernetesProcessFactory(workerConfigs, | ||
kubernetesNamespace, | ||
kubernetesServiceAccount, | ||
serverPort); | ||
} | ||
|
||
|
@@ -150,10 +156,12 @@ public ProcessFactory replicationDockerProcessFactory( | |
public ProcessFactory replicationKubernetesProcessFactory( | ||
@Named("replicationWorkerConfigs") final WorkerConfigs workerConfigs, | ||
@Value("${airbyte.worker.job.kube.namespace}") final String kubernetesNamespace, | ||
@Value("${airbyte.worker.job.kube.service.account") final String kubernetesServiceAccount, | ||
@Value("${micronaut.server.port}") final Integer serverPort) | ||
throws UnknownHostException { | ||
return createKubernetesProcessFactory(workerConfigs, | ||
kubernetesNamespace, | ||
kubernetesServiceAccount, | ||
serverPort); | ||
} | ||
|
||
|
@@ -184,10 +192,12 @@ public ProcessFactory specDockerProcessFactory( | |
public ProcessFactory specKubernetesProcessFactory( | ||
@Named("specWorkerConfigs") final WorkerConfigs workerConfigs, | ||
@Value("${airbyte.worker.job.kube.namespace}") final String kubernetesNamespace, | ||
@Value("${airbyte.worker.job.kube.service.account") final String kubernetesServiceAccount, | ||
@Value("${micronaut.server.port}") final Integer serverPort) | ||
throws UnknownHostException { | ||
return createKubernetesProcessFactory(workerConfigs, | ||
kubernetesNamespace, | ||
kubernetesServiceAccount, | ||
serverPort); | ||
} | ||
|
||
|
@@ -207,13 +217,15 @@ private ProcessFactory createDockerProcessFactory(final WorkerConfigs workerConf | |
|
||
private ProcessFactory createKubernetesProcessFactory(final WorkerConfigs workerConfigs, | ||
final String kubernetesNamespace, | ||
final String kubernetesServiceAccount, | ||
final Integer serverPort) | ||
throws UnknownHostException { | ||
final KubernetesClient fabricClient = new DefaultKubernetesClient(); | ||
final String localIp = InetAddress.getLocalHost().getHostAddress(); | ||
final String kubeHeartbeatUrl = localIp + ":" + serverPort; | ||
return new KubeProcessFactory(workerConfigs, | ||
kubernetesNamespace, | ||
kubernetesServiceAccount, | ||
fabricClient, | ||
kubeHeartbeatUrl, | ||
false); | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -131,6 +131,8 @@ spec: | |||||
valueFrom: | ||||||
fieldRef: | ||||||
fieldPath: metadata.namespace | ||||||
- name: JOB_KUBE_NAMESPACE | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Comment from previous PR by @mjstel:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
value: "{{ .Values.global.jobs.kube.service_account }}" | ||||||
{{- if $.Values.global.jobs.kube.annotations }} | ||||||
- name: JOB_KUBE_ANNOTATIONS | ||||||
valueFrom: | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@benmoriceau added a comment to the previous PR: