-
Notifications
You must be signed in to change notification settings - Fork 9
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
[Issue]: Potentially duplicated labels present in object metadata #30
Comments
Thank you for reporting this. We have opened a bug ticket on our side to look into this. |
Thanks for taking a look @farshadghodsian. Besides the duplicated labels, I think the objects need more consistent labelling, e.g. in the generated pod spec referenced above, it has
The |
hey, I face the same issue: ---
apiVersion: v1
kind: Namespace
metadata:
name: amd-gpu-plugin
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: amd-gpu-operator
namespace: amd-gpu-plugin
spec:
url: https://rocm.github.io/gpu-operator
interval: 1h
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: amd-gpu-operator
namespace: amd-gpu-plugin
spec:
interval: 5m
chart:
spec:
chart: gpu-operator-charts
sourceRef:
kind: HelmRepository
name: amd-gpu-operator
namespace: amd-gpu-plugin
version: "*"
# version: "1.0.0"
values:
kmm:
enabled: false
node-feature-discovery:
enabled: false Helm release status
Logs
|
Problem Description
In some of the k8s objects created from the Helm chart template, there are duplicate keys for certain labels in the metadata, e.g.
app.kubernetes.io/name
. When validating the generated manifest with Kubeconform, we run into errors likeWhen looking at the generated manifest, it indeed has duplicates, e.g.
app.kubernetes.io/name
is duplicated in the pod template's label for this deploymentThis is generated from https://github.com/ROCm/gpu-operator/blob/v1.0.0/helm-charts/templates/deployment.yaml, and when inspecting the code I can see that the template has a hard coded value for
app.kubernetes.io/name
https://github.com/ROCm/gpu-operator/blob/v1.0.0/helm-charts/templates/deployment.yaml#L23 and also one generated from{{- include "helm-charts-k8s.selectorLabels" . | nindent 8 }}
https://github.com/ROCm/gpu-operator/blob/v1.0.0/helm-charts/templates/_helpers.tpl#L48-L51There are also other potential duplicate values, as I have not checked all values from the Helm chart.
Operating System
Ubuntu 22.04
CPU
Unsure (did this in our dev environment EC2 instance), likely not relevant in this issue
GPU
Not relevant
ROCm Version
ROCm 6.3.0
ROCm Component
No response
Steps to Reproduce
Generate the full YAML manifest of the Helm chart release, and validate the manifest using Kubeconform https://github.com/yannh/kubeconform. Kubeconform will return errors indicating duplicate label keys.
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: