Skip to content

SOD-7329 Added commonLabels support to the ocean-vpa Helm chart#211

Open
cshivaraj-patil wants to merge 5 commits into
mainfrom
SOD-7329-fr-ocean-vpa-helm-chart-add-common-labels-support
Open

SOD-7329 Added commonLabels support to the ocean-vpa Helm chart#211
cshivaraj-patil wants to merge 5 commits into
mainfrom
SOD-7329-fr-ocean-vpa-helm-chart-add-common-labels-support

Conversation

@cshivaraj-patil

Copy link
Copy Markdown
Collaborator

##Jira ticket

https://flexera.atlassian.net/browse/SOD-7329

Summary

This adds support for commonLabels to the Ocean VPA Helm chart.
Applied commonLabels to chart resources such as Deployments, Services, and other Kubernetes objects.
Ensured Pod templates continue to use only podLabels, so commonLabels are not applied to Pods.

Testing

Installed the chart using:

helm install ocean-vpa .
--set commonLabels.environment=dev
--set commonLabels.team=rightsizing

Verified that Deployments and other resources include the configured commonLabels.
Verified that Pods do not include commonLabels.
Confirmed the Helm chart deploys successfully and all resources are in a healthy state.

Screenshots

Installed the chart with:

helm install ocean-vpa .
--set commonLabels.environment=dev
--set commonLabels.team=rightsizing

  1. Deployment labels – ocean-vpa-updater
    Deployment labels – ocean-vpa-admission-controller

Verified that commonLabels are applied to the ocean-vpa-updater Deployment.
Verified that commonLabels are applied to the ocean-vpa-admission-controller Deployment.
Screenshot 2026-07-10 at 12 52 51 PM

Screenshot 2026-07-10 at 12 53 36 PM
  1. Deployment YAML (metadata.labels)

Verified that the configured commonLabels (environment=dev, team=rightsizing) are present under metadata.labels of the generated Deployment resource.
Screenshot 2026-07-10 at 12 55 15 PM

  1. Pod labels

Verified that Pods do not receive commonLabels.
Screenshot 2026-07-10 at 12 56 01 PM

Added commonLabels support to the ocean-vpa Helm chart and verified that labels are applied to supported resources while Pods correctly exclude them.
@cshivaraj-patil cshivaraj-patil self-assigned this Jul 15, 2026
@cshivaraj-patil
cshivaraj-patil requested a review from a team as a code owner July 15, 2026 06:53
@Ranjithdr21

Copy link
Copy Markdown
Collaborator

Update the chart version in Chart.yaml file

# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.2
version: 1.0.3

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert this version bump.
Need not to bump version for admission controller

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update version in ocean-vpa -->Chart.yaml

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this trailing h, This change is not from this PR but needs to be removed.

@Ranjithdr21

Copy link
Copy Markdown
Collaborator

Also update README.md file as well with the new version.

@Ranjithdr21

Ranjithdr21 commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Please check this file vpa-webhooks_jobs_certgen-rolebinding_delete_secret.yaml common label is missing.

@Ranjithdr21

Copy link
Copy Markdown
Collaborator

Please document somewhere that we are “Preserving existing behavior for Pod labeling.”

Comment thread charts/ocean-vpa/README.md Outdated

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.13.1](https://github.com/norwoodj/helm-docs/releases/v1.13.1) No newline at end of file
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2) No newline at end of file

@Ranjithdr21 Ranjithdr21 Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Helm docs version mismatch with CI.
pipeline runs make docs, and the docs in Makefile.devel.mk currently uses jnorwood/helm-docs:v1.13.1.
This PR appears to have docs generated with a different version (v1.14.2), causing the docs check to fail.
Please either regenerate docs with v1.13.1 or update CI/Makefile.devel.mk to the new version and commit regenerated docs consistently.
Which results in lint stage failure.

@Ranjithdr21

Copy link
Copy Markdown
Collaborator

LGTM

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.

2 participants