azagrebin commented on a change in pull request #11245: 
[FLINK-15794][Kubernetes] Generate the Kubernetes default image version
URL: https://github.com/apache/flink/pull/11245#discussion_r396337589
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/util/EnvironmentInformation.java
 ##########
 @@ -41,14 +44,19 @@
        public static final String UNKNOWN = "<unknown>";
 
        /**
-        * Returns the version of the code as String. If version == null, then 
the JobManager does not run from a
-        * Maven build. An example is a source code checkout, compile, and run 
from inside an IDE.
-        * 
-        * @return The version string.
+        * Returns the version of the code as String.
+        * @return The project version string.
         */
        public static String getVersion() {
-               String version = 
EnvironmentInformation.class.getPackage().getImplementationVersion();
-               return version != null ? version : UNKNOWN;
+               return PROJECT_VERSION;
 
 Review comment:
   does it help for Kubernetes with the IDE execution?
   the snapshot image version is not available in docker hub anyways and needs 
to be built.
   was there any other issue with the previous implementation of `getVersion`?
   
   the option could use `latest` if `getVersion` returns null for local IDE 
builds.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to