Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix multinamespace cache issue #132

Merged
merged 3 commits into from Feb 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions e2e/e2e.sh
Expand Up @@ -2,7 +2,7 @@
set -o errexit
set -x
# Get Kind
go install sigs.k8s.io/kind@v0.17.0
go install sigs.k8s.io/kind@v0.21.0
# minio statefulset name
MINIO_STS_NAME=myminio-ss-0
# druid namespace
Expand Down Expand Up @@ -45,7 +45,7 @@ kubectl apply -f e2e/configs/druid-cr.yaml -n ${NAMESPACE}
sleep 10
for d in $(kubectl get pods -n ${NAMESPACE} -l app=druid -l druid_cr=tiny-cluster -o name)
do
kubectl wait -n ${NAMESPACE} "$d" --for=condition=Ready --timeout=5m
kubectl wait -n ${NAMESPACE} "$d" --for=condition=Ready --timeout=15m
done
# wait for druid pods
for s in $(kubectl get sts -n ${NAMESPACE} -l app=${NAMESPACE} -l druid_cr=tiny-cluster -o name)
Expand Down
5 changes: 3 additions & 2 deletions main.go
Expand Up @@ -118,8 +118,9 @@ func main() {

func watchNamespaceCache() cache.NewCacheFunc {
var managerWatchCache cache.NewCacheFunc
if watchNamespace != "" {
ns := strings.Split(watchNamespace, ",")
ns := strings.Split(watchNamespace, ",")

if len(ns) > 1 {
for i := range ns {
ns[i] = strings.TrimSpace(ns[i])
}
Expand Down