File tree 3 files changed +11
-4
lines changed
3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change
1
+ v2.2.1
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ CURRENT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " > /dev/null && pwd ) "
4
+ GIT_COMMIT=` git rev-parse --short HEAD`
5
+ VERSION=` cat ${CURRENT_DIR} /../VERSION`
6
+
3
7
set -e
4
8
5
- TAG=${IMAGE_TAG:- ' latest ' }
9
+ TAG=${IMAGE_TAG:- " $VERSION - $GIT_COMMIT " }
6
10
7
11
docker build --build-arg ARGO_VERSION=${TAG} -t ${IMAGE_NAMESPACE:- `whoami`} /argoui:${TAG} .
8
12
Original file line number Diff line number Diff line change @@ -101,18 +101,20 @@ export function create(
101
101
async ( req , res ) => serve ( res , ( ) => ( forceNamespaceIsolation ? crd . ns ( namespace ) : crd . ns ( req . params . namespace ) ) . workflows . get ( req . params . name ) ) ) ;
102
102
103
103
app . get ( '/api/workflows/live' , async ( req , res ) => {
104
+ const ns = getNamespace ( req ) ;
105
+
104
106
let updatesSource = new Observable ( ( observer : Observer < any > ) => {
105
107
const labelSelector = getWorkflowLabelSelector ( req ) ;
106
- let stream = crd . ns ( req . params . namespace ) . workflows . getStream ( { qs : { watch : true , labelSelector : labelSelector . join ( ',' ) } } ) ;
108
+ let stream = ( ns ? crd . ns ( ns ) : crd ) . workflows . getStream ( { qs : { watch : true , labelSelector : labelSelector . join ( ',' ) } } ) ;
107
109
stream . on ( 'end' , ( ) => observer . complete ( ) ) ;
108
110
stream . on ( 'error' , ( e ) => observer . error ( e ) ) ;
109
111
stream . on ( 'close' , ( ) => observer . complete ( ) ) ;
110
112
stream = stream . pipe ( new JSONStream ( ) ) ;
111
113
stream . on ( 'data' , ( data ) => data && observer . next ( data ) ) ;
112
114
} ) ;
113
- if ( forceNamespaceIsolation || req . query . namespace ) {
115
+ if ( ns ) {
114
116
updatesSource = updatesSource . filter ( ( change ) => {
115
- return change . object . metadata . namespace === forceNamespaceIsolation ? namespace : req . query . namespace ;
117
+ return change . object . metadata . namespace === ns ;
116
118
} ) ;
117
119
}
118
120
if ( req . query . name ) {
You can’t perform that action at this time.
0 commit comments