Skip to content

Commit

Permalink
Add tests for plugins (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha authored Mar 23, 2018
1 parent 20721ae commit c9dfb60
Show file tree
Hide file tree
Showing 201 changed files with 3,287 additions and 39,419 deletions.
17 changes: 0 additions & 17 deletions docs/examples/cluster-alerts/json_path/demo-1.yaml

This file was deleted.

3 changes: 2 additions & 1 deletion docs/reference/hyperalert/hyperalert.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ hyperalert [flags]

```
--alsologtostderr log to standard error as well as files
--enable-analytics send usage events to Google Analytics
--context string Use the context in kubeconfig
-h, --help help for hyperalert
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
--log_dir string If non-empty, write log files in this directory
--logtostderr log to standard error instead of files
Expand Down
3 changes: 2 additions & 1 deletion docs/reference/hyperalert/hyperalert_analytics_id.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ hyperalert analytics_id [flags]

```
--alsologtostderr log to standard error as well as files
--enable-analytics send usage events to Google Analytics
--context string Use the context in kubeconfig
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
--log_dir string If non-empty, write log files in this directory
--logtostderr log to standard error instead of files
Expand Down
3 changes: 2 additions & 1 deletion docs/reference/hyperalert/hyperalert_check_ca_cert.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ hyperalert check_ca_cert [flags]

```
--alsologtostderr log to standard error as well as files
--enable-analytics send usage events to Google Analytics
--context string Use the context in kubeconfig
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
--log_dir string If non-empty, write log files in this directory
--logtostderr log to standard error instead of files
Expand Down
5 changes: 2 additions & 3 deletions docs/reference/hyperalert/hyperalert_check_cert.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ hyperalert check_cert [flags]
-c, --critical duration Remaining duration for Critical state. [Default: 120h] (default 120h0m0s)
-h, --help help for check_cert
-H, --host string Icinga host name
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
--master string The address of the Kubernetes API server (overrides any value in kubeconfig)
-k, --secretKey stringSlice Name of secret key where certificates are kept
-s, --secretName string Name of secret from where certificates are checked
-l, --selector string Selector (label query) to filter on, supports '=', '==', and '!='
Expand All @@ -39,7 +37,8 @@ hyperalert check_cert [flags]

```
--alsologtostderr log to standard error as well as files
--enable-analytics send usage events to Google Analytics
--context string Use the context in kubeconfig
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
--log_dir string If non-empty, write log files in this directory
--logtostderr log to standard error instead of files
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,15 @@ hyperalert check_component_status [flags]
```
-n, --componentName string Name of component which should be ready
-h, --help help for check_component_status
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
--master string The address of the Kubernetes API server (overrides any value in kubeconfig)
-l, --selector string Selector (label query) to filter on, supports '=', '==', and '!='.
```

### Options inherited from parent commands

```
--alsologtostderr log to standard error as well as files
--enable-analytics send usage events to Google Analytics
--context string Use the context in kubeconfig
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
--log_dir string If non-empty, write log files in this directory
--logtostderr log to standard error instead of files
Expand Down
3 changes: 2 additions & 1 deletion docs/reference/hyperalert/hyperalert_check_env.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ hyperalert check_env [flags]

```
--alsologtostderr log to standard error as well as files
--enable-analytics send usage events to Google Analytics
--context string Use the context in kubeconfig
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
--log_dir string If non-empty, write log files in this directory
--logtostderr log to standard error instead of files
Expand Down
5 changes: 2 additions & 3 deletions docs/reference/hyperalert/hyperalert_check_event.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,14 @@ hyperalert check_event [flags]
--involvedObjectName string Involved object name used to select events
--involvedObjectNamespace string Involved object namespace used to select events
--involvedObjectUID string Involved object uid used to select events
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
--master string The address of the Kubernetes API server (overrides any value in kubeconfig)
```

### Options inherited from parent commands

```
--alsologtostderr log to standard error as well as files
--enable-analytics send usage events to Google Analytics
--context string Use the context in kubeconfig
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
--log_dir string If non-empty, write log files in this directory
--logtostderr log to standard error instead of files
Expand Down
5 changes: 2 additions & 3 deletions docs/reference/hyperalert/hyperalert_check_influx_query.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ hyperalert check_influx_query [flags]
-h, --help help for check_influx_query
-H, --host string Icinga host name
--influxHost string URL of InfluxDB host to query
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
--master string The address of the Kubernetes API server (overrides any value in kubeconfig)
-s, --secretName string Kubernetes secret name
-w, --warning string Warning query which returns [true/false]
```
Expand All @@ -44,7 +42,8 @@ hyperalert check_influx_query [flags]

```
--alsologtostderr log to standard error as well as files
--enable-analytics send usage events to Google Analytics
--context string Use the context in kubeconfig
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
--log_dir string If non-empty, write log files in this directory
--logtostderr log to standard error instead of files
Expand Down
5 changes: 2 additions & 3 deletions docs/reference/hyperalert/hyperalert_check_json_path.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ hyperalert check_json_path [flags]
-c, --critical string Critical jsonpath query which returns [true/false]
-h, --help help for check_json_path
-H, --host string Icinga host name
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
--master string The address of the Kubernetes API server (overrides any value in kubeconfig)
-s, --secretName string Kubernetes secret name
-u, --url string URL to get data
-w, --warning string Warning jsonpath query which returns [true/false]
Expand All @@ -38,7 +36,8 @@ hyperalert check_json_path [flags]

```
--alsologtostderr log to standard error as well as files
--enable-analytics send usage events to Google Analytics
--context string Use the context in kubeconfig
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
--log_dir string If non-empty, write log files in this directory
--logtostderr log to standard error instead of files
Expand Down
13 changes: 6 additions & 7 deletions docs/reference/hyperalert/hyperalert_check_node_exists.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,18 @@ hyperalert check_node_exists [flags]
### Options

```
-c, --count int Number of expected Kubernetes Node
-h, --help help for check_node_exists
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
--master string The address of the Kubernetes API server (overrides any value in kubeconfig)
-n, --nodeName string Name of node whose existence is checked
-l, --selector string Selector (label query) to filter on, supports '=', '==', and '!='.
-c, --count int Number of expected Kubernetes Node
-h, --help help for check_node_exists
-n, --nodeName string Name of node whose existence is checked
-l, --selector string Selector (label query) to filter on, supports '=', '==', and '!='.
```

### Options inherited from parent commands

```
--alsologtostderr log to standard error as well as files
--enable-analytics send usage events to Google Analytics
--context string Use the context in kubeconfig
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
--log_dir string If non-empty, write log files in this directory
--logtostderr log to standard error instead of files
Expand Down
9 changes: 4 additions & 5 deletions docs/reference/hyperalert/hyperalert_check_node_status.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,16 @@ hyperalert check_node_status [flags]
### Options

```
-h, --help help for check_node_status
-H, --host string Icinga host name
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
--master string The address of the Kubernetes API server (overrides any value in kubeconfig)
-h, --help help for check_node_status
-H, --host string Icinga host name
```

### Options inherited from parent commands

```
--alsologtostderr log to standard error as well as files
--enable-analytics send usage events to Google Analytics
--context string Use the context in kubeconfig
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
--log_dir string If non-empty, write log files in this directory
--logtostderr log to standard error instead of files
Expand Down
15 changes: 7 additions & 8 deletions docs/reference/hyperalert/hyperalert_check_pod_exec.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,19 @@ hyperalert check_pod_exec [flags]
### Options

```
-a, --argv string Arguments for exec command. [Format: 'arg; arg; arg']
-c, --cmd string Exec command. [Default: /bin/sh] (default "/bin/sh")
-C, --container string Container name in specified pod
-h, --help help for check_pod_exec
-H, --host string Icinga host name
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
--master string The address of the Kubernetes API server (overrides any value in kubeconfig)
-a, --argv string Arguments for exec command. [Format: 'arg; arg; arg']
-c, --cmd string Exec command. [Default: /bin/sh] (default "/bin/sh")
-C, --container string Container name in specified pod
-h, --help help for check_pod_exec
-H, --host string Icinga host name
```

### Options inherited from parent commands

```
--alsologtostderr log to standard error as well as files
--enable-analytics send usage events to Google Analytics
--context string Use the context in kubeconfig
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
--log_dir string If non-empty, write log files in this directory
--logtostderr log to standard error instead of files
Expand Down
15 changes: 7 additions & 8 deletions docs/reference/hyperalert/hyperalert_check_pod_exists.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,19 @@ hyperalert check_pod_exists [flags]
### Options

```
-c, --count int Number of Kubernetes pods
-h, --help help for check_pod_exists
-H, --host string Icinga host name
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
--master string The address of the Kubernetes API server (overrides any value in kubeconfig)
-p, --podName string Name of pod whose existence is checked
-l, --selector string Selector (label query) to filter on, supports '=', '==', and '!='.
-c, --count int Number of Kubernetes pods
-h, --help help for check_pod_exists
-H, --host string Icinga host name
-p, --podName string Name of pod whose existence is checked
-l, --selector string Selector (label query) to filter on, supports '=', '==', and '!='.
```

### Options inherited from parent commands

```
--alsologtostderr log to standard error as well as files
--enable-analytics send usage events to Google Analytics
--context string Use the context in kubeconfig
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
--log_dir string If non-empty, write log files in this directory
--logtostderr log to standard error instead of files
Expand Down
9 changes: 4 additions & 5 deletions docs/reference/hyperalert/hyperalert_check_pod_status.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,16 @@ hyperalert check_pod_status [flags]
### Options

```
-h, --help help for check_pod_status
-H, --host string Icinga host name
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
--master string The address of the Kubernetes API server (overrides any value in kubeconfig)
-h, --help help for check_pod_status
-H, --host string Icinga host name
```

### Options inherited from parent commands

```
--alsologtostderr log to standard error as well as files
--enable-analytics send usage events to Google Analytics
--context string Use the context in kubeconfig
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
--log_dir string If non-empty, write log files in this directory
--logtostderr log to standard error instead of files
Expand Down
5 changes: 2 additions & 3 deletions docs/reference/hyperalert/hyperalert_check_volume.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ hyperalert check_volume [flags]
-c, --critical float Critical level value (usage percentage) (default 95)
-h, --help help for check_volume
-H, --host string Icinga host name
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
--master string The address of the Kubernetes API server (overrides any value in kubeconfig)
--nodeStat Checking Node disk size
-s, --secretName string Kubernetes secret name
-N, --volumeName string Volume name
Expand All @@ -39,7 +37,8 @@ hyperalert check_volume [flags]

```
--alsologtostderr log to standard error as well as files
--enable-analytics send usage events to Google Analytics
--context string Use the context in kubeconfig
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
--log_dir string If non-empty, write log files in this directory
--logtostderr log to standard error instead of files
Expand Down
Loading

0 comments on commit c9dfb60

Please sign in to comment.