Skip to content

Commit ce71f2c

Browse files
authored
Merge pull request #143 from theBeginner86/theBeginner86/replicasets
[chore] Support for discovering ReplicaSets
2 parents 2c2e41d + 52bcb63 commit ce71f2c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

internal/config/default_config.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ var (
4242
},
4343
LocalResourceKey: []PipelineConfig{
4444
// Core Resources
45+
{
46+
Name: "replicasets.v1.apps",
47+
PublishTo: "meshery.meshsyc.core",
48+
},
4549
{
4650
Name: "pods.v1.",
4751
PublishTo: "meshery.meshsync.core",

meshsync/exec.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"bufio"
55
"fmt"
66
"io"
7-
"io/ioutil"
87
"os"
98
"strings"
109
"time"
@@ -98,7 +97,7 @@ func (h *Handler) streamChannelPool() {
9897
func (h *Handler) streamSession(id string, req model.ExecRequest, cfg config.ListenerConfig) {
9998
subCh := make(chan *broker.Message)
10099
tstdin, putStdin := io.Pipe()
101-
stdin := ioutil.NopCloser(tstdin)
100+
stdin := io.NopCloser(tstdin)
102101
getStdout, stdout := io.Pipe()
103102

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

0 commit comments

Comments
 (0)