Skip to content

Commit

Permalink
Collect logs from istio and knative namespaces (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiridanek authored Apr 2, 2024
1 parent 5cbbcd9 commit 207411d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/io/odh/test/OdhConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ private OdhConstants() { }
public static final String ODH_MODEL_OPERATOR = "odh-model-controller";
public static final String ODH_NOTEBOOK_OPERATOR = "odh-notebook-controller-manager";
public static final String KUEUE_OPERATOR = "kueue-controller-manager";
public static final String KNATIVE_SERVING_NAMESPACE = "knative-serving";
public static final String ISTIO_SYSTEM_NAMESPACE = "istio-system";

public static final String CONTROLLERS_NAMESPACE = getOdhOrRhoai("CONTROLLERS_NAMESPACE", ODH_CONTROLLERS_NAMESPACE, RHOAI_CONTROLLERS_NAMESPACE);
public static final String DASHBOARD_ROUTE_NAME = getOdhOrRhoai("DASHBOARD_ROUTE_NAME", ODH_DASHBOARD_ROUTE_NAME, RHOAI_DASHBOARD_ROUTE_NAME);
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/io/odh/test/framework/logs/LogCollector.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public static void saveKubernetesState(ExtensionContext extensionContext, Throwa
ResourceManager.addNamespaceForLogCollect(OdhConstants.OLM_OPERATOR_NAMESPACE);
ResourceManager.addNamespaceForLogCollect(OdhConstants.CONTROLLERS_NAMESPACE);
ResourceManager.addNamespaceForLogCollect(OdhConstants.MONITORING_NAMESPACE);
ResourceManager.addNamespaceForLogCollect(OdhConstants.ISTIO_SYSTEM_NAMESPACE);
ResourceManager.addNamespaceForLogCollect(OdhConstants.KNATIVE_SERVING_NAMESPACE);
} catch (Exception ignored) {
LOGGER.warn("Cannot label namespaces for collect logs");
}
Expand Down

0 comments on commit 207411d

Please sign in to comment.