Skip to content

Commit

Permalink
Updating goreleaser and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
agm650 committed Jun 10, 2022
1 parent 9de833e commit 7c84092
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 30 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ vendor/
bonsai/
dist/
bin

entities-status
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
builds:
- env:
- CGO_ENABLED=0
Expand Down
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Versioning](http://semver.org/spec/v2.0.0.html).

## Unreleased

## [0.0.2] - 2022-06-10
## [0.0.3] - 2022-06-10

### Fixed

Expand All @@ -18,6 +18,16 @@ Versioning](http://semver.org/spec/v2.0.0.html).

- Minimal golang version set to 1.18

### Removed

- Unused parameters removal

## [0.0.2] - 2020-07-25

### Added

- JSON and YAML output

## [0.0.1] - 2020-06-01

### Added
Expand Down
38 changes: 9 additions & 29 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ import (
type Config struct {
sensu.PluginConfig
Namespace string
CheckType string
Instance string
Timeout string
RuntimeAssets string
SensuAPIUrl string
Expand All @@ -29,32 +27,14 @@ type Config struct {
var (
config = Config{
PluginConfig: sensu.PluginConfig{
Name: "sensu-runbook",
Short: "Sensu Runbook Automation. Execute commands on Sensu Agent nodes.",
Keyspace: "sensu.io/plugins/sensu-runbook/config",
Name: "sensu-entities-status",
Short: "Sensu Entities Status. Get entities status.",
Keyspace: "las/accs/entities-status/config",
},
}

options = []*sensu.PluginConfigOption{
{
Path: "checktype",
Env: "SENSU_CHECK_TYPE",
Argument: "checktype",
Shorthand: "c",
Default: "",
Usage: "The ID or name to use for the job (i.e. defaults to a random UUIDv4)",
Value: &config.CheckType,
},
{
Path: "instance",
Env: "SENSU_INSTANCE",
Argument: "instance",
Shorthand: "i",
Default: "",
Usage: "From which Instance do we want events from",
Value: &config.Instance,
},
{
options = []sensu.ConfigOption{
&sensu.PluginConfigOption[string]{
Path: "namespace",
Env: "SENSU_NAMESPACE", // provided by the sensuctl command plugin execution environment
Argument: "namespace",
Expand All @@ -63,7 +43,7 @@ var (
Usage: "Sensu Namespace to perform the runbook automation (defaults to $SENSU_NAMESPACE)",
Value: &config.Namespace,
},
{
&sensu.PluginConfigOption[string]{
Path: "sensu-api-url",
Env: "SENSU_API_URL", // provided by the sensuctl command plugin execution environment
Argument: "sensu-api-url",
Expand All @@ -72,7 +52,7 @@ var (
Usage: "Sensu API URL (defaults to $SENSU_API_URL)",
Value: &config.SensuAPIUrl,
},
{
&sensu.PluginConfigOption[string]{
Path: "sensu-access-token",
Env: "SENSU_ACCESS_TOKEN", // provided by the sensuctl command plugin execution environment
Argument: "sensu-access-token",
Expand All @@ -81,7 +61,7 @@ var (
Usage: "Sensu API Access Token (defaults to $SENSU_ACCESS_TOKEN)",
Value: &config.SensuAccessToken,
},
{
&sensu.PluginConfigOption[string]{
Path: "sensu-format",
Env: "SENSU_FORMAT", // provided by the sensuctl command plugin execution environment
Argument: "sensu-format",
Expand All @@ -90,7 +70,7 @@ var (
Usage: "Sensu Format (defaults to $SENSU_FORMAT). Authorized values: tabular, yaml wrapped-json",
Value: &config.SensuFormat,
},
{
&sensu.PluginConfigOption[bool]{
Path: "sensu-debug",
Env: "SENSU_DEBUG", // provided by the sensuctl command plugin execution environment
Argument: "sensu-debug",
Expand Down

0 comments on commit 7c84092

Please sign in to comment.