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

feat(opentelemetry-collector): use Kubernetes recommended label for c… #1396

Merged
merged 12 commits into from
Nov 25, 2024

Conversation

nlamirault
Copy link
Contributor

@nlamirault nlamirault commented Oct 23, 2024

Use Kubernetes commended labels for component label.

…omponent

Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
@povilasv
Copy link
Contributor

I guess this is breaking change 🤔 People could have used component=agent-collector in other resources like Ingress / Network policies / ... So maybe we should stick with old label?

@TylerHelmuth
Copy link
Member

I agree this is a breaking change. We can add a new label but should leave the existing one for now.

Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
Copy link

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Nov 14, 2024
@nlamirault
Copy link
Contributor Author

/ping

@TylerHelmuth
Copy link
Member

@nlamirault please bump the patch version of the chart and run make generate-examples CHARTS=opentelemetry-collector

@github-actions github-actions bot removed the Stale label Nov 16, 2024
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
@jaronoff97
Copy link
Contributor

(once this is updated with the latest and examples are generated, should be good)

Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
@TylerHelmuth TylerHelmuth merged commit eadacb7 into open-telemetry:main Nov 25, 2024
3 checks passed
@z0rc
Copy link

z0rc commented Nov 26, 2024

This is still a breaking change and shouldn't be a patch release. It changes Deployment's spec.selector field which is immutable. Upgrade attempt breaks with:

Error: unable to generate manifests: cannot patch "otel-collector" with kind Deployment: Deployment.apps "otel-collector" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/component":"standalone-collector", "app.kubernetes.io/instance":"otel-collector", "app.kubernetes.io/name":"opentelemetry-collector", "component":"standalone-collector"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable

@TylerHelmuth
Copy link
Member

@z0rc thanks, I'll submit a pr to fix this.

rohanarora pushed a commit to rohanarora/opentelemetry-helm-charts that referenced this pull request Dec 2, 2024
open-telemetry#1396)

* feat(opentelemetry-collector): use Kubernetes recommended label for component

Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>

* feat(helm): use also previous label

Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>

* feat(helm): chart version

Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>

* feat(helm): generate examples

Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>

* feat(helm): generate examples

Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>

* feat(helm): generate examples

Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>

* feat(helm): generate examples

Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>

* feat(helm): cleanup

Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>

* feat(helm): generate examples

Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>

---------

Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
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

Successfully merging this pull request may close these issues.

5 participants