masayag opened a new issue, #317:
URL: 
https://github.com/apache/incubator-kie-kogito-serverless-operator/issues/317

   ### Description
   
   With existing 
[code](https://github.com/apache/incubator-kie-kogito-serverless-operator/blob/main/workflowproj/workflowproj.go#L85),
 a namespace is required to use the `workflowproj` handler.
   
   However, in certain cases, the namespace will be determined at a later stage 
than the resources generated.
   Certain resources don't require the namespace to be specified upfront (e.g. 
ConfigMap and SonataFlow CRs).
   If the resource is created in a namespace other than the namespace of the 
destination, an attempt to create or to apply the resource will fail, e.g.:
   ```
   → oc apply -f 02-configmap_mtaanalysis-props.yaml -n sonataflow-infra 
   error: the namespace from the provided object "default" does not match the 
namespace "sonataflow-infra". You must pass '--namespace=default' to perform 
this operation.
   → oc create -f 02-configmap_mtaanalysis-props.yaml -n sonataflow-infra 
   error: the namespace from the provided object "default" does not match the 
namespace "sonataflow-infra". You must pass '--namespace=default' to perform 
this operation.
   ``` 
   
   ### Implementation ideas
   
   Allow resources to be generated without specifying a namespace, by omitting 
the namespace attribute from the target generated resources.
   The namespace will be set by the admin when applying the CRs to the cluster, 
at the designated namespace.


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