dungdm93 opened a new pull request #11008:
URL: https://github.com/apache/airflow/pull/11008


   In Kubernetes world, this one is `CustomResourceDefinition` (CRD)
   ```yaml
   apiVersion: apiextensions.k8s.io/v1
   kind: CustomResourceDefinition
   metadata:
     annotations:
       controller-gen.kubebuilder.io/version: (unknown)
     creationTimestamp: null
     name: scheduledsparkapplications.sparkoperator.k8s.io
   spec:
     group: sparkoperator.k8s.io
     names:
       kind: ScheduledSparkApplication
       listKind: ScheduledSparkApplicationList
       plural: scheduledsparkapplications
       shortNames:
       - scheduledsparkapp
       singular: scheduledsparkapplication
     scope: Namespaced
     versions:
     - name: v1beta2
       schema:
         openAPIV3Schema:
           properties:
             apiVersion:
               type: string
             kind:
               type: string
             metadata:
               type: object
   ...
   ```
   and this one is `CustomResource` or `CustomObject`
   ```yaml
   apiVersion: "sparkoperator.k8s.io/v1beta2"
   kind: SparkApplication
   metadata:
     name: spark-pi
     namespace: default
   spec:
     type: Scala
     mode: cluster
     image: "gcr.io/spark-operator/spark:v3.0.0"
     imagePullPolicy: Always
     mainClass: org.apache.spark.examples.SparkPi
     mainApplicationFile: 
"local:///opt/spark/examples/jars/spark-examples_2.12-3.0.0.jar"
     sparkVersion: "3.0.0"
     restartPolicy:
       type: Never
   ...
   ```
   In kubernetes hook, there are some method name `custom_resource_definition` 
but work with `custom_object`.
   So this PR correct this issue.


----------------------------------------------------------------
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:
[email protected]


Reply via email to