[ 
https://issues.apache.org/jira/browse/FLINK-27483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17531528#comment-17531528
 ] 

Aitozi commented on FLINK-27483:
--------------------------------

The config type can be listed as below:
 * The session cluster/application's config are decided by the 
flinkDeployment's flinkConfiguration mixed with the default config.
 * The operator's reconcile configs like interval, client timeout, cancel job 
timeout's config are built from the operator config and the related 
FlinkDeployment config.

I think for the session job we can built the reconcile configs from the session 
job's {{configuration + flink deployment config + default config}}.

If the config field is added, I think we could add an option like 
{{kubernetes.operator.user.artifacts.http.header: k1:v1,k2:v2}} and the 
HttpArtifactFetcher will decorate the http request based on the header config.

> Support adding custom HTTP header for HTTP based Jar fetch
> ----------------------------------------------------------
>
>                 Key: FLINK-27483
>                 URL: https://issues.apache.org/jira/browse/FLINK-27483
>             Project: Flink
>          Issue Type: Improvement
>          Components: Kubernetes Operator
>            Reporter: Fuyao Li
>            Priority: Major
>
> Hello Team,
> I noticed this https://issues.apache.org/jira/browse/FLINK-27161, which could 
> enable users to specify a URL to fetch jars.
> In many cases, user might want to add some custom headers to fetch jars from 
> remote private artifactory (like Oauth tokens, api-keys, etc).
> adding a field called artifactoryJarHeader will be very helpful.
> This field can be of array type.
> [key1, value1, key2, value2]
> It seems the current ArtifactManager doesn't support specify a custom header. 
> Please correct me if I am wrong.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to