Skip to content

Commit

Permalink
Merge pull request #143 from theBeginner86/theBeginner86/replicasets
Browse files Browse the repository at this point in the history
[chore] Support for discovering ReplicaSets
  • Loading branch information
leecalcote authored Aug 5, 2022
2 parents 2c2e41d + 52bcb63 commit ce71f2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions internal/config/default_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ var (
},
LocalResourceKey: []PipelineConfig{
// Core Resources
{
Name: "replicasets.v1.apps",
PublishTo: "meshery.meshsyc.core",
},
{
Name: "pods.v1.",
PublishTo: "meshery.meshsync.core",
Expand Down
3 changes: 1 addition & 2 deletions meshsync/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"bufio"
"fmt"
"io"
"io/ioutil"
"os"
"strings"
"time"
Expand Down Expand Up @@ -98,7 +97,7 @@ func (h *Handler) streamChannelPool() {
func (h *Handler) streamSession(id string, req model.ExecRequest, cfg config.ListenerConfig) {
subCh := make(chan *broker.Message)
tstdin, putStdin := io.Pipe()
stdin := ioutil.NopCloser(tstdin)
stdin := io.NopCloser(tstdin)
getStdout, stdout := io.Pipe()

err := h.Broker.SubscribeWithChannel(fmt.Sprintf("input.%s", id), generateID(), subCh)
Expand Down

0 comments on commit ce71f2c

Please sign in to comment.