rgolangh opened a new pull request, #482:
URL: https://github.com/apache/incubator-kie-kogito-serverless-operator/pull/482

   Motivation:
   There's a need to select efficiently workflows and their respective
   services. Having the common kubernetes labels allow a single selector:
   
      podSelector:
        matchExpressions:
          - { key: app.kubernetes.io/component, operator: In, values:
            ["data-index-service", "jobs-service", "serverless-workflow"] }
   
   Modification:
   Make the v1.Deployment for services and the deployment or knative
   services to contain at common labels
   
   Result:
   A workflow deployment or knative serving labels:
       app.kubernetes.io/name: ${workflow name}
       app.kubernetes.io/component: serverless-workflow
       app.kubernetes.io/part-of: ${platform url set by status}
       app.kubernetes.io/managed-by: sonataflow-operator
   
   Data index or Jobs services Deployment.v1 labels:
   
       app.kubernetes.io/name: ${service name}
       app.kubernetes.io/component: data-index-service|jobs-service
       app.kubernetes.io/part-of: ${platform name}
       app.kubernetes.io/managed-by: sonataflow-operator
   
   A future improvement will be to pass the platform name to the workflow
   so app.kubernetes.io/part-of will have the platform name so we can
   select all component for a platform.
   
   Reference: 
https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/#labels
   
   Signed-off-by: Roy Golan <[email protected]>
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to