Skip to content

Commit ca9106e

Browse files
authored
Merge pull request #93 from replicatedhq/no-collector-cmd
Remove manager and collector commands
2 parents 1ee6629 + 7ab1734 commit ca9106e

File tree

8 files changed

+23
-249
lines changed

8 files changed

+23
-249
lines changed

Makefile

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ define LDFLAGS
3434
"
3535
endef
3636

37-
all: test manager
37+
all: test
3838

3939
.PHONY: ffi
4040
ffi: fmt vet
@@ -44,10 +44,6 @@ ffi: fmt vet
4444
test: generate fmt vet manifests
4545
go test ./pkg/... ./cmd/... -coverprofile cover.out
4646

47-
.PHONY: manager
48-
manager: generate fmt vet
49-
go build ${LDFLAGS} -o bin/manager github.com/replicatedhq/troubleshoot/cmd/manager
50-
5147
.PHONY: support-bundle
5248
support-bundle: generate fmt vet
5349
go build ${LDFLAGS} -o bin/support-bundle github.com/replicatedhq/troubleshoot/cmd/troubleshoot
@@ -60,10 +56,6 @@ preflight: generate fmt vet
6056
analyze: generate fmt vet
6157
go build ${LDFLAGS} -o bin/analyze github.com/replicatedhq/troubleshoot/cmd/analyze
6258

63-
.PHONY: run
64-
run: generate fmt vet
65-
TROUBLESHOOT_EXTERNAL_MANAGER=1 go run ./cmd/manager/main.go
66-
6759
.PHONY: install
6860
install: manifests
6961
kubectl apply -f config/crds
@@ -109,13 +101,6 @@ else
109101
CLIENT_GEN=$(shell which client-gen)
110102
endif
111103

112-
.PHONY: snapshot-release
113-
snapshot-release:
114-
curl -sL https://git.io/goreleaser | bash -s -- --rm-dist --snapshot --config deploy/.goreleaser.snapshot.yml
115-
docker push replicated/troubleshoot:alpha
116-
docker push replicated/preflight:alpha
117-
docker push replicated/troubleshoot-manager:alpha
118-
119104
.PHONY: release
120105
release: export GITHUB_TOKEN = $(shell echo ${GITHUB_TOKEN_TROUBLESHOOT})
121106
release:
@@ -126,10 +111,8 @@ local-release:
126111
curl -sL https://git.io/goreleaser | bash -s -- --rm-dist --snapshot --config deploy/.goreleaser.local.yml
127112
docker tag replicated/troubleshoot:alpha localhost:32000/troubleshoot:alpha
128113
docker tag replicated/preflight:alpha localhost:32000/preflight:alpha
129-
docker tag replicated/troubleshoot-manager:alpha localhost:32000/troubleshoot-manager:alpha
130114
docker push localhost:32000/troubleshoot:alpha
131115
docker push localhost:32000/preflight:alpha
132-
docker push localhost:32000/troubleshoot-manager:alpha
133116

134117
.PHONY: run-preflight
135118
run-preflight: preflight

cmd/collector/cli/root.go

Lines changed: 0 additions & 39 deletions
This file was deleted.

cmd/collector/cli/run.go

Lines changed: 0 additions & 58 deletions
This file was deleted.

cmd/collector/cli/server.go

Lines changed: 0 additions & 43 deletions
This file was deleted.

cmd/collector/main.go

Lines changed: 0 additions & 7 deletions
This file was deleted.

cmd/manager/main.go

Lines changed: 0 additions & 84 deletions
This file was deleted.

config/crds/troubleshoot.replicated.com_collectors.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,17 @@ spec:
475475
- data
476476
- when
477477
type: object
478+
data:
479+
properties:
480+
collectorName:
481+
type: string
482+
data:
483+
type: string
484+
name:
485+
type: string
486+
required:
487+
- data
488+
type: object
478489
exec:
479490
properties:
480491
args:

config/crds/troubleshoot.replicated.com_preflights.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -900,6 +900,17 @@ spec:
900900
- data
901901
- when
902902
type: object
903+
data:
904+
properties:
905+
collectorName:
906+
type: string
907+
data:
908+
type: string
909+
name:
910+
type: string
911+
required:
912+
- data
913+
type: object
903914
exec:
904915
properties:
905916
args:

0 commit comments

Comments
 (0)