Skip to content
New issue

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

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

Already on GitHub? # to your account

Can't tag monitors in kubernetes via tag_names - data did not match any variant of untagged enum EntityWrapper #114

Open
AurimasNav opened this issue Jan 8, 2025 · 0 comments

Comments

@AurimasNav
Copy link

AurimasNav commented Jan 8, 2025

image: ghcr.io/bigboot/autokuma:sha-23287bc

trying to create example monitor:

apiVersion: autokuma.bigboot.dev/v1
kind: KumaEntity
metadata:
  name: example
spec:
  config:
    name: Static Json Example
    type: http
    url: https://example.com
    tag_names:
    - name: example_tag
      value: Foobar

the actual created resource in kubernetes does not have tag_names properties, it just creates it with empty object:

spec:
  config:
    name: Static Json Example
    tag_names:
      - {}
    type: http
    url: https://example.com

results in error:

WARN [kuma_client::util] Error while parsing example: data did not match any variant of untagged enum EntityWrapper!
WARN [autokuma::sources::kubernetes_source] reconcile failed: K8S(FinalizerError(ApplyFailed(LabelParseError("data did not match any variant of untagged enum EntityWrapper"))))

I've also tried to create tag object:

apiVersion: "autokuma.bigboot.dev/v1"
kind: KumaEntity
metadata:
  name: tags
spec:
  config: 
    name: example_tag
    color: "#bf0a0a"
    type: tag

which I can see created as it is available in monitor add tag dropbox in kuma UI, but it does not resolve the problem above.

@AurimasNav AurimasNav changed the title Can't tag monitors - data did not match any variant of untagged enum EntityWrapper Can't tag monitors in kubernetes via tag_names - data did not match any variant of untagged enum EntityWrapper Jan 8, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant