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

Unable to set scheduler property with sensuctl #4177

Open
treydock opened this issue Jan 18, 2021 · 1 comment
Open

Unable to set scheduler property with sensuctl #4177

treydock opened this issue Jan 18, 2021 · 1 comment
Labels
component:sensuctl Sensu CLI improvements

Comments

@treydock
Copy link
Contributor

Expected Behavior

I'd expect the new Check property of scheduler to be something I can set with sensuctl.

Current Behavior

resource 0: json: unknown field "scheduler"
Error: in /tmp/test: some resources couldn't be parsed

Possible Solution

Steps to Reproduce (for bugs)

[root@sensu-backend /]# cat /tmp/test 
{
  "type": "CheckConfig",
  "api_version": "core/v2",
  "metadata": {
    "name": "test",
    "namespace": "default",
    "labels": {
      "foo": "baz"
    }
  },
  "spec": {
    "command": "check-http.rb",
    "subscriptions": [
      "demo"
    ],
    "interval": 60,
    "publish": true,
    "stdin": false,
    "scheduler": "memory",
    "output_metric_format": "nagios_perfdata",
    "output_metric_tags": [
      {
        "name": "instance",
        "value": "{{ .name }}"
      }
    ]
  }
}

[root@sensu-backend /]# sensuctl create -f /tmp/test 
resource 0: json: unknown field "scheduler"
Error: in /tmp/test: some resources couldn't be parsed

Context

I am working to add Sensu Go 6.2 support to sensu-puppet module and during testing was unable to make use of newly added scheduler property.

Your Environment

  • Sensu version used (sensuctl, sensu-backend, and/or sensu-agent): sensu-backend version 6.2.2+ee, enterprise edition, build f269b86dd1ce5ac9eddc9cec5f3e1cc27b6d5988, built 2021-01-14T17:58:28Z, built with go1.13.15

  • Installation method (packages, binaries, docker etc.): RPM

  • Operating System and version (e.g. Ubuntu 14.04): CentOS 7

@treydock
Copy link
Contributor Author

CC @ghoneycutt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:sensuctl Sensu CLI improvements
Projects
None yet
Development

No branches or pull requests

2 participants