siddhi-io / siddhi-operator

Operator allows you to run stream processing logic directly on a Kubernetes cluster
Apache License 2.0
17 stars 12 forks source link

Escape multiple entries of the same port return by the parser #99

Closed BuddhiWathsala closed 5 years ago

BuddhiWathsala commented 5 years ago

Purpose

K8s service creation returns an issue when we going to expose the same port more than twice. To fix this issue.

Goals

$subject

Approach

Create a slice to contain already exposed ports. If the given port is in that slice we are not going to expose it again.

Release note

Fix the issue of service creation, when the user gives the same port more than twise in the app.

Test environment

minikube version: v1.2.0