Skip to content

Commit

Permalink
fix(core): Fix Panic due to interface conversion
Browse files Browse the repository at this point in the history
Signed-off-by: Anurag Rajawat <[email protected]>
  • Loading branch information
anurag-rajawat committed Apr 16, 2024
1 parent d3075c2 commit ddffda6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sentryflow/core/k8sHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ import (
"sync"
"time"

"github.com/5GSEC/SentryFlow/config"
"github.com/5GSEC/SentryFlow/types"
"gopkg.in/yaml.v2"
corev1 "k8s.io/api/core/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/cache"

"github.com/5GSEC/SentryFlow/config"
"github.com/5GSEC/SentryFlow/types"
)

// K8s global reference for Kubernetes Handler
Expand Down Expand Up @@ -414,7 +415,7 @@ func (kh *K8sHandler) PatchIstioConfigMap() error {

// Append eps to the existing slice
if !duplicate {
meshConfig["extensionProviders"] = append(ep.([]map[interface{}]interface{}), eps)
meshConfig["extensionProviders"] = append(ep.([]interface{}), eps)
}
}

Expand Down

0 comments on commit ddffda6

Please sign in to comment.