Documentation ¶
Index ¶
- Constants
- Variables
- func Collect(appID string, clusterID string) (string, error)
- func CreateBundle(requestedID string, appID string, archivePath string) (*types.SupportBundle, error)
- func CreateBundleForBackup(appID string, backupName string, backupNamespace string) (string, error)
- func CreateRenderedSpec(appID string, sequence int64, kotsKinds *kotsutil.KotsKinds, ...) (*troubleshootv1beta2.SupportBundle, error)
- func CreateSupportBundleAnalysis(appID string, archivePath string, bundle *types.SupportBundle) error
- func CreateSupportBundleDependencies(appID string, sequence int64, opts types.TroubleshootOptions) (*types.SupportBundle, error)
- func GetBundleCommand(appSlug string) []string
- func GetFilesContents(bundleID string, filenames []string) (map[string][]byte, error)
- func GetSpecSecretName(appSlug string) string
- func GetSpecURI(appSlug string) string
- func InjectDefaultAnalyzers(analyzer *troubleshootv1beta2.Analyzer) error
- func StartServer()
Constants ¶
const ( BUNDLE_PROGRESS_ERROR supportBundleProgressUpdateType = "error" BUNDLE_PROGRESS_COLLECTOR supportBundleProgressUpdateType = "collector" BUNDLE_PROGRESS_FILETREE supportBundleProgressUpdateType = "filetree" BUNDLE_PROGRESS_UPLOADED supportBundleProgressUpdateType = "uploaded" )
const (
SpecDataKey = "support-bundle-spec"
)
Variables ¶
var (
SupportBundleNameRegex = regexp.MustCompile(`^\/?support-bundle-(\d{4})-(\d{2})-(\d{2})T(\d{2})_(\d{2})_(\d{2})\/?`)
)
Functions ¶
func Collect ¶
Collect will queue collection of a new support bundle. It returns the ID of the support bundle so that the status can be queried by the front end.
func CreateBundle ¶
func CreateBundle(requestedID string, appID string, archivePath string) (*types.SupportBundle, error)
CreateBundle will create a support bundle in the store, attempting to use the requestedID. This function uploads the archive and creates the record.
func CreateBundleForBackup ¶
func CreateRenderedSpec ¶
func CreateRenderedSpec(appID string, sequence int64, kotsKinds *kotsutil.KotsKinds, opts types.TroubleshootOptions) (*troubleshootv1beta2.SupportBundle, error)
CreateRenderedSpec creates the support bundle specification from defaults and the kots app
func CreateSupportBundleAnalysis ¶
func CreateSupportBundleAnalysis(appID string, archivePath string, bundle *types.SupportBundle) error
CreateSupportBundleAnalysis takes a support bundle, unpacks to analyze then adds the analysis to the support bundle secret
func CreateSupportBundleDependencies ¶
func CreateSupportBundleDependencies(appID string, sequence int64, opts types.TroubleshootOptions) (*types.SupportBundle, error)
CreateSupportBundleDependencies generates k8s secrets and configmaps for the support bundle spec and redactors. These resources will be used when executing a support bundle collection
func GetBundleCommand ¶
func GetFilesContents ¶ added in v1.31.0
GetFilesContents will return the file contents for filenames matching the filenames parameter.
func GetSpecSecretName ¶
func GetSpecURI ¶
func InjectDefaultAnalyzers ¶ added in v1.31.0
func InjectDefaultAnalyzers(analyzer *troubleshootv1beta2.Analyzer) error
func StartServer ¶
func StartServer()
Types ¶
This section is empty.