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

The annotation config do not support complex structure

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Information Provided
    • 1.11.2
    • None
    • None

    Description

      Now we support user to set annotations by these config, the format is "k1:v1,k2:v2".

      1. kubernetes.rest-service.annotations 
      2. kubernetes.jobmanager.annotations
      3. kubernetes.taskmanager.annotations

      But the annotation may be more complex structure like "k1:{"a1":"v1","a2":"v2"},k2:{"a1":"v1","a2":"v2"}", It can not be parsed. 

      Shall we support annotation and labels just like the environment variables use a prefix split mechanism, like :

      1. kubernetes.rest-service.annotation.k1="{"a1":"v1","a2":"v2"}"

      By this we can set some default cluster annotations and labels and no need to worry about overridden by user config.

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            aitozi WenJun Min
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: