nicknezis commented on pull request #3710:
URL: https://github.com/apache/incubator-heron/pull/3710#issuecomment-922011806


   I think that's correct, but steps 2 might be somewhat simpler than you 
describe. I'll try to find a better example, but I think step 2 should be 
something like [this 
example](https://github.com/fabric8io/kubernetes-client/blob/04e0b2e2530751c90aeb9c0465ad3219c46a636f/kubernetes-examples/src/main/java/io/fabric8/kubernetes/examples/ConfigMapExample.java#L52).
 It is Fabric8 API, but there should be a similar `get` method using the 
official k8s api.
   
   Once you lookup the ConfigMap object, you should be able to call 
[`getData()`](https://github.com/kubernetes-client/java/blob/69cc44bac6764a93d9d8e384c326554a21bb2d89/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMap.java#L145)
 to retrieve the ConfigMap's value which should be the `template` that is 
passed into `kubernetesClient.pods().load(template).get()`.


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


Reply via email to