diff --git a/config/samples/troubleshoot_v1beta2_collector.yaml b/config/samples/troubleshoot_v1beta2_collector.yaml index b3b8e008..6a4595c6 100644 --- a/config/samples/troubleshoot_v1beta2_collector.yaml +++ b/config/samples/troubleshoot_v1beta2_collector.yaml @@ -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: {} diff --git a/pkg/apis/troubleshoot/v1beta2/supportbundle_types.go b/pkg/apis/troubleshoot/v1beta2/supportbundle_types.go index 0da842a9..40465f89 100644 --- a/pkg/apis/troubleshoot/v1beta2/supportbundle_types.go +++ b/pkg/apis/troubleshoot/v1beta2/supportbundle_types.go @@ -27,6 +27,8 @@ 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 optionally defines a location which is the source of this spec to allow updating of the spec at runtime + Uri string `json:"uri,omitempty" yaml:"uri,omitempty"` } // SupportBundleStatus defines the observed state of SupportBundle