ibm-apiconnect / v2018-postmortem

Log collection tool for API Connect v2018.
Apache License 2.0
0 stars 6 forks source link

Support limiting helm installations to run on #26

Open KlavsKlavsen opened 4 years ago

KlavsKlavsen commented 4 years ago

in my environment we use the same tiller for MANY apiconnect installations (development environment and test/staging env shares the same tiller), and this tool then picks up ALL of them :(

We run one installation in several namespaces, per recommendations from IBM, so I would like to be able to filter which namespaces it looks in:

$ helm ls | grep utst
r0f6eb74195                     1               Mon Sep  7 12:36:13 2020        DEPLOYED        dynamic-gateway-service-1.0.60          1.0             api-utst-gateway-bank-u1
r3dd67522d0                     1               Mon Sep  7 12:32:20 2020        DEPLOYED        apic-analytics-2.0.0                                    api-utst-analytics-u1
r9f7cabb3e7                     1               Mon Sep  7 12:35:42 2020        DEPLOYED        dynamic-gateway-service-1.0.60          1.0             api-utst-gateway-web-u1
ra3bd1913db                     1               Mon Sep  7 11:51:05 2020        DEPLOYED        cassandra-operator-1.0.0                1.0.1           api-utst-manager-u1
rae6420eda4                     3               Wed Jul  1 13:50:17 2020        DEPLOYED        cassandra-operator-1.0.0                1.0.1           api-utst-manager-t1
rebc75288d9                     1               Mon Sep  7 12:36:47 2020        DEPLOYED        apic-portal-2.0.0                                       api-utst-portal-u1
rf69d0c65b3                     1               Mon Sep  7 11:51:13 2020        DEPLOYED        apiconnect-2.0.0                                        api-utst-manager-u1

so tool should do the above for one environment (in this case called utst).. perhaps adding a "namespace-filter" option which simply check if the "namespace-filter" string matched the namespace in the "helm ls" output - before considering that for postmortem task ?