Skip to content

Commit

Permalink
prep for 1.0.0 release
Browse files Browse the repository at this point in the history
added "alias" namespaces for the following resources to make migration easier:
- `asset`
- `check`
- `filter`
- `handler`
- `mutator`

the new aliases would be `sensu_go_asset`, `sensu_go_check`, etc

Signed-off-by: Ben Abrams <[email protected]>
  • Loading branch information
majormoses committed Aug 5, 2020
1 parent 0b2c3c6 commit a9873da
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 4 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).
This CHANGELOG follows the format located [here](https://github.com/sensu-plugins/community/blob/master/HOW_WE_CHANGELOG.md)

## [Unreleased]
### Added
- `sensu_asset` now supports namespaces that are not `default`. Default is the `default` namespace. (@joe-armstrong)

## [1.0.0] - 2020-07-24

### Breaking Changes
- `sensu_check` now does not provide defaults for `command` and `subscriptions`, and they must be required as per the upstream specs. (@kovukono)
- declare chef supported versions to use match current chef support (15+) (@majormoses)

### Fixed
- Chef 16+ support (@kovukono)
Expand All @@ -18,6 +19,9 @@ This CHANGELOG follows the format located [here](https://github.com/sensu-plugin
### Added
- `sensu_active_directory` resource for active directory integration. (@kovukono)
- `sensu_secrets_provider` and `sensu_secret` resource for Vault integration, along with secret support for checks, handlers, and mutators. (@kovukono)
- `sensu_asset` now exposes a `namespace` attribute for controlling where the asset is created, by default it will use `default`. Default is the `default` namespace. @joe-armstrong)
- `sensu_asset` now supports multi-built assets using the `builds` key and accepts an array of hashes for each filter. By default no filters are passed. (@cwjohnston)
- all of the following resources: `asset`, `check`, `filter`, `handler`, and `mutator` have had new aliases added to the providers with an optional namespace to ease migration issues where a resource exists in both `sensu` and `sensu-go` the generic schema is `sensu_go_$COMPONENT`. For example `sensu_check` can be referenced also via `sensu_go_check`. (@majoemoses)

## [0.3.0] - 2020-05-13
### Fixed
Expand Down
4 changes: 2 additions & 2 deletions metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
maintainer_email '[email protected]'
license 'MIT'
description 'Installs/Configures Sensu Go'
version '0.3.0'
version '1.0.0'

chef_version '>= 12.5'
chef_version '>= 15.0'

%w(
aix
Expand Down
1 change: 1 addition & 0 deletions resources/asset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

resource_name :sensu_asset
provides :sensu_asset
provides :sensu_go_asset

property :filters, Array
property :sha512, String, required: false
Expand Down
1 change: 1 addition & 0 deletions resources/check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

resource_name :sensu_check
provides :sensu_check
provides :sensu_go_check

property :check_hooks, Array
property :command, String, required: true
Expand Down
1 change: 1 addition & 0 deletions resources/filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

resource_name :sensu_filter
provides :sensu_filter
provides :sensu_go_filter

property :filter_action, String, equal_to: %w(allow deny), required: true
property :expressions, Array, required: true
Expand Down
1 change: 1 addition & 0 deletions resources/handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

resource_name :sensu_handler
provides :sensu_handler
provides :sensu_go_handler

property :command, String # only allowed if type == pipe
property :env_vars, Array
Expand Down
1 change: 1 addition & 0 deletions resources/mutator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

resource_name :sensu_mutator
provides :sensu_mutator
provides :sensu_go_mutator

property :command, String, required: true
property :env_vars, Array
Expand Down

0 comments on commit a9873da

Please sign in to comment.