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

ERROR controllers.K6 Failed to launch k6 rule check-for-env-label failed at path /spec/template/metadata/labels/tags.datadoghq.com/env #461

Open
arpitrege123 opened this issue Sep 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@arpitrege123
Copy link

Brief summary

error from k6-operator-controller-manager even though the tags are added .
ERROR Reconciler error {"controller": "k6", "controllerGroup": "k6.io", "controllerKind": "K6", "K6": {"name":"k6-sample","namespace":"default"}, "namespace": "default", "name": "k6-sample", "reconcileID": "", "error": "admission webhook "validate.kyverno.svc-ignore" denied the request: \n\nresource Job/default/k6-sample-initializer was blocked due to the following policies \n\nrequire-dd-label:\n check-for-env-label: 'validation error: The label tags.datadoghq.com/env is required.\n rule check-for-env-label failed at path /spec/template/metadata/labels/tags.datadoghq.com/env/'\n"}

k6-operator version or image

k6-operator:latest

Helm chart version (if applicable)

No response

TestRun / PrivateLoadZone YAML

apiVersion: k6.io/v1alpha1
kind: K6
metadata:
name: k6-sample
labels:
tags.datadoghq.com/env: perf-test
tags.datadoghq.com/service: k6-operator
annotations:
linkerd.io/inject: enabled
spec:
parallelism: 1
script:
configMap:
name: k6-test
file: k6_script_notifySessionFlow.js
template:
metadata:
labels:
tags.datadoghq.com/env: perf-test
tags.datadoghq.com/service: k6-operator

Other environment details (if applicable)

No response

Steps to reproduce the problem

Getting error while deploying the above Yaml for k6 crd
kubectl apply -f k6run.yaml

Expected behaviour

Should spin up new pod

Actual behaviour

getting error in k6-operator-system logs

@arpitrege123 arpitrege123 added the bug Something isn't working label Sep 20, 2024
@arpitrege123
Copy link
Author

Tried it with kind: TestRun as well , same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant