ferenc-csaky opened a new pull request, #1258:
URL: https://github.com/apache/flink-kubernetes-operator/pull/1258

   ## What is the purpose of the change
   
   A standalone `FlinkDeployment` with `jarURI: s3://...` crash-loops with 
`MalformedURLException: unknown protocol: s3`. The operator puts the jar into 
`pipeline.classpaths`, which Flink parses as `java.net.URL`. Since Flink 1.19 
(FLINK-28915) the standalone entrypoint can fetch jars through the filesystem 
plugins with `--jars`, and this PR makes the operator use it.
   
   ## Brief change log
   
     - `FlinkConfigBuilder`: on Flink 1.19+, a `jarURI` the JVM cannot open as 
a URL goes into the internal option `kubernetes.internal.application.jar-uri`. 
`local`, `file` and `http(s)` jars stay on `pipeline.classpaths`, where they 
already work (`--jars` also refuses raw http by default).
     - `CmdStandaloneJobManagerDecorator`: passes it as `--jars=<uri>`, after 
the other entrypoint options. The `=` form keeps `--jars` from taking the job 
args as more jars.
     - Docs: the Standalone Mode section (en and zh) describes how each scheme 
is handled.
   
   ## Verifying this change
   
   This change added tests and can be verified as follows:
   
     - `FlinkConfigBuilderTest` covers which schemes go to `--jars` and which 
stay on the classpath, and Flink 1.18. `CmdStandaloneJobManagerDecoratorTest` 
parses the generated args with Flink's entrypoint options.
     - Manually on minikube with S3 and the presto plugin: an `s3://` jar runs 
on Flink 1.20.5 (savepoint upgrade, JobManager restart) and on Flink 2.3 (HA, 
last-state upgrade). `http://` and `local://` jars behave as on operator 
1.16.1, and an operator upgrade doesn't redeploy running clusters.
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): no
     - The public API, i.e., is any changes to the `CustomResourceDescriptors`: 
no
     - Core observer or reconciler logic that is regularly executed: yes, the 
generated config and JobManager args of standalone application deployments
   
   ## Documentation
   
     - Does this pull request introduce a new feature? no
     - If yes, how is the feature documented? not applicable
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes (please specify the tool below)
   
   Generated-by: Claude Code (Claude Opus 5.5)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to