You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To extract the pod name, instead of selecting the pod based on searching container name and deployment name it would be easier to have the key and value of the labels associated to the pods to retrieve its name.
The kubernetes client abstraction already has the getPodsBy (namespace, labelKey, labelValue) so we could call the function to get pod details which has name in it.
The workaround we could do for now is to search all pods whose metadata matches the deployment name and has the container name provided in the input JSON.
We cannot assume the label will always be app=<deployment_name> so it would be better to get this information from the user
The text was updated successfully, but these errors were encountered:
To extract the pod name, instead of selecting the pod based on searching container name and deployment name it would be easier to have the key and value of the labels associated to the pods to retrieve its name.
The kubernetes client abstraction already has the
getPodsBy (namespace, labelKey, labelValue)
so we could call the function to get pod details which has name in it.The workaround we could do for now is to search all pods whose metadata matches the deployment name and has the container name provided in the input JSON.
We cannot assume the label will always be
app=<deployment_name>
so it would be better to get this information from the userThe text was updated successfully, but these errors were encountered: