Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-20905

Format the description of 'kubernetes.container.image' option

    XMLWordPrintableJSON

Details

    Description

      The description of ConfigOption 'kubernetes.container.image' has a URL link, as follows:

      @Documentation.OverrideDefault(
              "The default value depends on the actually running version. In general it looks like \"flink:<FLINK_VERSION>-scala_<SCALA_VERSION>\"")
      public static final ConfigOption<String> CONTAINER_IMAGE =
              key("kubernetes.container.image")
                      .stringType()
                      .defaultValue(getDefaultFlinkImage())
                      .withDescription(
                              "Image to use for Flink containers. "
                                      + "The specified image must be based upon the same Apache Flink and Scala versions as used by the application. "
                                      + "Visit https://hub.docker.com/_/flink?tab=tags for the official docker images provided by the Flink project. The Flink project also publishes docker images here: https://hub.docker.com/r/apache/flink");
      
      

      so the most reasonable way is to use Text Description with Link, as follows:

      @Documentation.OverrideDefault(
              "The default value depends on the actually running version. In general it looks like \"flink:<FLINK_VERSION>-scala_<SCALA_VERSION>\"")
      public static final ConfigOption<String> CONTAINER_IMAGE =
              key("kubernetes.container.image")
                      .stringType()
                      .defaultValue(getDefaultFlinkImage())
                      .withDescription(
                              Description.builder()
                                      .text(
                                              "Image to use for Flink containers. "
                                                      + "The specified image must be based upon the same Apache Flink and Scala versions as used by the application. "
                                                      + "Visit %s for the official docker images provided by the Flink project. The Flink project also publishes docker images to %s.",
                                              link("https://hub.docker.com/_/flink?tab=tags", "here"),
                                              link("https://hub.docker.com/r/apache/flink", "DockerHub"))
                                      .build());
      

      Attachments

        Issue Links

          Activity

            People

              jiang7chengzitc Ruguo Yu
              jiang7chengzitc Ruguo Yu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: