Skip to content

Commit

Permalink
fix: Fix issues (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
callmevladik committed Jul 19, 2024
1 parent b612176 commit d258ff8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM epamedp/headlamp:0.22.22
FROM epamedp/headlamp:0.22.23

COPY --chown=100:101 assets/ /headlamp/frontend
COPY --chown=100:101 dist/main.js /headlamp/plugins/edp/main.js
Expand Down
4 changes: 2 additions & 2 deletions src/k8s/TaskRun/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ export class TaskRunKubeObject extends K8s.cluster.makeKubeObject<TaskRunKubeObj
status: ValueOf<typeof TASK_RUN_STEP_STATUS>,
reason: ValueOf<typeof TASK_RUN_STEP_REASON>
): [string, string, boolean?] {
if (status === undefined || reason === undefined) {
if (status === undefined) {
return [ICONS.UNKNOWN, STATUS_COLOR.UNKNOWN];
}
const _status = status.toLowerCase();
const _reason = reason.toLowerCase();
const _reason = reason && reason.toLowerCase();

switch (_status) {
case TASK_RUN_STEP_STATUS.RUNNING:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ export const PageView = () => {
() =>
ingresses
? ingresses.filter((ingress) => {
if (!ingress.metadata.annotations) {
return false;
}

return 'nginx.ingress.kubernetes.io/auth-url' in ingress.metadata.annotations;
})
: null,
Expand Down

0 comments on commit d258ff8

Please sign in to comment.