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

Bug: Check applying not working, when using only private Location #60

Open
fluktuid opened this issue Feb 21, 2025 · 0 comments
Open

Bug: Check applying not working, when using only private Location #60

fluktuid opened this issue Feb 21, 2025 · 0 comments

Comments

@fluktuid
Copy link

fluktuid commented Feb 21, 2025

When applying an api-check with only private location, the check produces an error.

steps to reproduce:

  • create private-location
  • apply api-check with (existing) location
    e.g.
    apiVersion: k8s.checklyhq.com/v1alpha1
    kind: ApiCheck
    metadata:
      name: operator-apicheck-sample
    spec:
      endpoint: "checklyhq.com"
      success: "200"
      muted: true # Default "false"
      group: non-existant-dummy-group
    ---
    apiVersion: k8s.checklyhq.com/v1alpha1
    kind: Group
    metadata:
      name: operator-apicheck-sample-grp
    spec:
      alertchannel: []
      locations:
      - test-location
      muted: true
  • check operator logs:
    2025-02-21T08:20:52Z	ERROR	Reconciler error	{"controller": "group", "controllerGroup": "k8s.checklyhq.com", "controllerKind": "Group", "Group": {"name":"operator-apicheck-sample-grp"}, "namespace": "", "name": "operator-apicheck-sample-grp", "reconcileID": "<shadowed>", "error": "unexpected response status 400: \"{\\\"statusCode\\\":400,\\\"error\\\":\\\"Bad Request\\\",\\\"message\\\":\\\"You have to set at least one `location` or `privateLocation`\\\"}\""}
    sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler.
      /go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:329
    sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
      /go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:266
    sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
      /go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:227
    

Workaround:

  • use public location
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