Skip to content

Commit 91c387b

Browse files
Merge pull request #696 from replicatedhq/el_issue_682_20220831
EL 20220901 - Implement new type for #682
2 parents cdf4d73 + 8fcb65d commit 91c387b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

config/samples/troubleshoot_v1beta2_collector.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ kind: Collector
33
metadata:
44
name: collector-sample
55
spec:
6+
uri: https://raw.githubusercontent.com/replicatedhq/troubleshoot-specs/main/in-cluster/default.yaml
67
collectors:
78
- clusterInfo: {}
89
- clusterResources: {}

pkg/apis/troubleshoot/v1beta2/supportbundle_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ type SupportBundleSpec struct {
2727
HostCollectors []*HostCollect `json:"hostCollectors,omitempty" yaml:"hostCollectors,omitempty"`
2828
Analyzers []*Analyze `json:"analyzers,omitempty" yaml:"analyzers,omitempty"`
2929
HostAnalyzers []*HostAnalyze `json:"hostAnalyzers,omitempty" yaml:"hostAnalyzers,omitempty"`
30+
// URI optionally defines a location which is the source of this spec to allow updating of the spec at runtime
31+
Uri string `json:"uri,omitempty" yaml:"uri,omitempty"`
3032
}
3133

3234
// SupportBundleStatus defines the observed state of SupportBundle

0 commit comments

Comments
 (0)