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

KEDA should make sure generate correct labels for HPA #1630

Closed
anggao opened this issue Feb 22, 2021 · 0 comments · Fixed by #1631
Closed

KEDA should make sure generate correct labels for HPA #1630

anggao opened this issue Feb 22, 2021 · 0 comments · Fixed by #1631
Labels
bug Something isn't working

Comments

@anggao
Copy link
Contributor

anggao commented Feb 22, 2021

Report

2021-02-22T14:36:15.195Z ERROR controllers.ScaledObject Failed to ensure HPA is correctly created for ScaledObj
ect {“ScaledObject.Namespace”: “XXXXXXX”, “ScaledObject.Name”: “XXXXXXXX-0-model-pod”, “error”: “HorizontalPodAutoscaler.autoscaling \“keda-hpa-XXXXXXXX\” is invalid: metadata.labels: Invalid value: \“keda-hpa-XXXXXXXXXX-\“: a valid label must be an empty string or consist of alphanumeric characters, ‘-’, ‘’ or ‘.’, and must start and end wit
h an alphanumeric character (e.g. ‘MyValue’, or ‘my_value’, or ‘12345’, regex used for validation is ‘(([A-Za-z0-9][-A-Za-z0-
9
.]*)?[A-Za-z0-9])?’)“}

Expected Behavior

KEDA should make sure the generated labels are correct

Actual Behavior

if len(labelName) > 63 {
	labelName = labelName[:63]
}

Steps to Reproduce the Problem

Create a KEDA scaled object with name like sort-accommodation-aaaaaa-aaaa-accommodation-aaaaaa-0-model-pod

Logs from KEDA operator

example

KEDA Version

2.0.0

Kubernetes Version

1.18

Platform

Other

Scaler Details

No response

@anggao anggao added the bug Something isn't working label Feb 22, 2021
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

Successfully merging a pull request may close this issue.

1 participant