Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotations data type is too restrictive #1345

Open
elfranne opened this issue Oct 7, 2024 · 0 comments
Open

Annotations data type is too restrictive #1345

elfranne opened this issue Oct 7, 2024 · 0 comments

Comments

@elfranne
Copy link

elfranne commented Oct 7, 2024

Annotations data type is too restrictive, that makes it not compatible with remediation for example:
https://github.com/sensu/sensu-remediation-handler?tab=readme-ov-file#example-check-definition-and-remediation-request-configuration

  sensu_check { 'check-puppet-errors-with-remidiation':
    ensure         => present,
    command        => 'check-puppet-errors',
    interval       => 300,
    subscriptions  => ['system/linux'],
    runtime_assets => ['nmollerup/sensu-check-puppet'],
    annotations    => {
      'comment'                              => 'The last Puppet run had failures. Investigation needed',
      'io.sensu.remediation.config.actions'  => [
        {
          'description' => 'Retry another Puppet run.',
          'request'     => 'remediation-puppet-linux',
          'occurrences' => [1],
          'severities'  => [1,2]
        },
      ],
    },
    handlers       => ['remediation'],
  }

Module version: 5.11.1 (latest)
Sensu version: 6.11 (OSS)
OS: Ubuntu 22.04 Jammy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant