fh-system-dump-tool

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2016 License: Apache-2.0 Imports: 19 Imported by: 0

README

fh-system-dump-tool

This repository contains the system dump tool for the RHMAP On-Prem product.

Building

Building requires Go 1.6.

go build

Runtime Prerequisites

Running

The follow section outlines the steps required to run the system dump tool.

1. Login to OpenShift Cluster as an Administrative User
oc login <public-master-url>
2. Run the System Dump Tool
./fh-system-dump-tool

Adding new analysis checks

Create a function - currently all in analysis.go - which matches the CheckTask interface:

type CheckTask func(string, io.Writer) (Result, error)

The writer is where the stderr output from your checks should be sent.

If a resource from oc is required, you can use the helper function: getResourceStruct pass to this the current project, the resource type and a pointer to the struct the json should decode into.

The Result struct has the following properties:

  • CheckName
  • Status
  • StatusMessage
  • Info (Array)
    • Name
    • Namespace
    • Kind
    • Count
    • Message

Update the function CheckTasks to also return your new check function.

Documentation

Overview

The RHMAP System Dump Tool.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL