MehrCurry commented on issue #3763:
URL: https://github.com/apache/camel-k/issues/3763#issuecomment-1293589182

   My hack workaround is a kyverno policy to patch the variable:
   
   ```
   ---
   apiVersion: kyverno.io/v1
   kind: ClusterPolicy
   metadata:
     name: add-operator-id
     annotations:
       policies.kyverno.io/title: Add Environment Variables KAMEL_OPERATOR_ID
       policies.kyverno.io/subject: Deployment
       policies.kyverno.io/category: Other
       policies.kyverno.io/description: >-
         This i a temporary fix for the missing KAMEL_OPERATOR_ID variable in 
the
         camel-k helm chart. See https://github.com/apache/camel-k/issues/3763
   spec:
     rules:
     - name: add-operator-id
       match:
         resources:
           names:
           - camel-k-operator
           kinds:
           - Deployment
       mutate:
         patchesJson6902: |-
           - op: add
             path: "/spec/template/spec/containers/0/env/-"
             value: {"name":"KAMEL_OPERATOR_ID","value":"camel-k"}
   ```
   


-- 
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: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to