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
We found on some OpenShift clusters that the API Groups Information is not always available making the Operator crash on the following command because of HTTP response 502:
A more stable (but maybe more crappy ?) solution could be to look at the available annotations on namespace to try detecting some OpenShift specific ones like this:
- name: Retrieve and set watch namespace
set_fact:
watch_namespace: "{{ lookup('env','WATCH_NAMESPACE') }}"
- name: Get watched namespace infos
set_fact:
watched_namespace: "{{ lookup('k8s', kind='Namespace', resource_name=watch_namespace) }}"
- name: Determine is this is an OpenShift or Kubernetes namespace
set_fact:
is_openshift : "{{ watched_namespace.metadata.annotations['openshift.io/display-name'] is defined }}"
is_kubernetes : "{{ watched_namespace.metadata.annotations['openshift.io/display-name'] is not defined }}"
Maybe we should consider this as a fallback in case of official API returning an error?
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity 😴
It will be closed in 30 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.
There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. Microcks is a Cloud Native Computing Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.
Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.
We found on some OpenShift clusters that the API Groups Information is not always available making the Operator crash on the following command because of HTTP response 502:
A more stable (but maybe more crappy ?) solution could be to look at the available annotations on namespace to try detecting some OpenShift specific ones like this:
Maybe we should consider this as a fallback in case of official API returning an error?
The text was updated successfully, but these errors were encountered: