Skip to content

Annotations data type is too restrictive #1345

@elfranne

Description

@elfranne

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions