dcos / dcos-checks

checks for DC/OS cluster

Home Page:https://dcos.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dcos-checks

add a new check

  1. go get github.com/spf13/cobra/cobra

  2. cobra add -t github.com/dcos/dcos-checks/cmd/checks/<subcommand> <subcommand>

  3. edit cmd/checks/<subcommand>.go

  4. rename init() to func Add(root *cobra.Command) and change it accordingly:

    func Add(root *cobra.Command) {
      root.AddCommand(<subcommand>)
      // other flag and configuration goes here
    }
    
  5. Modify cmd/subcommands.go to add your check.

see https://github.com/spf13/cobra for more details

About

checks for DC/OS cluster

https://dcos.io


Languages

Language:Go 92.3%Language:Shell 5.2%Language:Makefile 2.0%Language:Dockerfile 0.6%