EL 20220901 - Implement new type for #682

This commit is contained in:
Edgar Lanting
2022-09-01 14:58:51 +02:00
parent cdf4d730d4
commit b2c3280623
2 changed files with 8 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ kind: Collector
metadata:
name: collector-sample
spec:
uri: https://raw.githubusercontent.com/replicatedhq/troubleshoot-specs/main/in-cluster/default.yaml
collectors:
- clusterInfo: {}
- clusterResources: {}

View File

@@ -27,6 +27,13 @@ type SupportBundleSpec struct {
HostCollectors []*HostCollect `json:"hostCollectors,omitempty" yaml:"hostCollectors,omitempty"`
Analyzers []*Analyze `json:"analyzers,omitempty" yaml:"analyzers,omitempty"`
HostAnalyzers []*HostAnalyze `json:"hostAnalyzers,omitempty" yaml:"hostAnalyzers,omitempty"`
// Uri defines the location of the spec file that needs to be used. This is optional and can be
// either a secret, url or spec yaml file.
// When presented with a spec document that contains a URI, if that spec is one of the specs provided
// on the command line or initial call to Troubleshoot, attempt to collect a replacement spec from that URI.
// If successful, it will replace the entire spec with the one downloaded.
// If unsuccessful, log the error and use the spec provided.
Uri string `json:"uri,omitempty" yaml:"uri,omitempty"`
}
// SupportBundleStatus defines the observed state of SupportBundle