Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-52000 Release Spark Kubernetes Operator 0.2.0
  3. SPARK-52173

Fix OwnerReference Patching for Spark Application Driver Resources

    XMLWordPrintableJSON

Details

    Description

      At initialization phase, operator would request pre-resources for driver first, then apply the owner references on these resources with created driver pod uid.

       

      The latter patching is currently failing as it's decorating on created resource (which have managed fields set). 

       

      ```

      Message: metadata.managedFields must be nil.

      ```

       

      > ... when using the Apply operation you cannot define managedFields in the body of the request that you submit.

       

      https://kubernetes.io/docs/reference/using-api/server-side-apply/

       

      The patch body shall not include generated `managedFields` 

      Attachments

        Issue Links

          Activity

            People

              zhou_jiang Zhou JIANG
              zhou_jiang Zhou JIANG
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: