Skip to content

Templates: Deployment: Fixed Deployment.yaml#4380

Merged
illume merged 1 commit intokubernetes-sigs:mainfrom
mudit06mah:DeploymentFix
Feb 1, 2026
Merged

Templates: Deployment: Fixed Deployment.yaml#4380
illume merged 1 commit intokubernetes-sigs:mainfrom
mudit06mah:DeploymentFix

Conversation

@mudit06mah
Copy link
Contributor

@mudit06mah mudit06mah commented Jan 18, 2026

Summary:

Fixes deployment to add quotes to useAccessToken and PKCE

Related Issue:

Fixes #4364

Changes:

  • Added {{ | quote }} to OIDC_USE_ACCESS_TOKEN and OIDC_USE_PKCE.
  • Error arises as value is taken to be a boolean (true) while it should be taken as a string ("true").

Steps to Test:

Run:

helm upgrade --install headlamp-test ./charts/headlamp \
  --namespace kube-system \
  --set config.oidc.useAccessToken=true \
  --set config.oidc.secret.create=false

Inside root folder of headlamp
After that Run:

kubectl get deployment headlamp-test -n kube-system -o yaml | grep OIDC_USE_ACCESS_TOKEN -A 1

Runs Successfully (output):

        - -oidc-use-access-token=$(OIDC_USE_ACCESS_TOKEN)
        env:
        - name: OIDC_USE_ACCESS_TOKEN
          value: "true"

Note: Accidentally closed my previous PR on the same issue, hence creating a new one fixing the issue

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 18, 2026
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 18, 2026
@illume illume requested a review from Copilot January 18, 2026 11:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a Helm templating issue where boolean values for OIDC configuration were not being properly quoted as strings in the deployment manifest. The fix adds the quote filter to ensure environment variables receive string values instead of unquoted boolean values, which would cause YAML parsing issues.

Changes:

  • Added | quote filter to OIDC_USE_ACCESS_TOKEN environment variable
  • Added | quote filter to OIDC_USE_PKCE environment variable

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mudit06mah
Copy link
Contributor Author

Linting error arises due to the fix, I apologize for not running these tests earlier.
Should I change them as well?

Copy link
Contributor

@skoeva skoeva left a comment

Choose a reason for hiding this comment

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

there's a command in the CI output to update the templates, you could run that to fix the error

@mudit06mah
Copy link
Contributor Author

I have updated all snapshots, this branch is ready to be merged.

@mudit06mah mudit06mah requested a review from skoeva January 20, 2026 06:53
Copy link
Contributor

@skoeva skoeva left a comment

Choose a reason for hiding this comment

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

@mudit06mah mudit06mah changed the title Fixed Deployment.yaml Templates: Deployment: Fixed Deployment.yaml Jan 21, 2026
@mudit06mah
Copy link
Contributor Author

This PR passes all tests and is ready to be merged.

@mudit06mah mudit06mah requested a review from skoeva January 24, 2026 09:25
@mudit06mah mudit06mah force-pushed the DeploymentFix branch 2 times, most recently from f2d132b to 07f32cf Compare January 25, 2026 17:36
@mudit06mah
Copy link
Contributor Author

@skoeva Can you please review this again? :)

Copy link
Contributor

@illume illume left a comment

Choose a reason for hiding this comment

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

@mudit06mah please check the test failure, and run the test locally?

@mudit06mah
Copy link
Contributor Author

@illume Really Sorry for the overlook from my side! I have changed the tests accordingly and this PR passes all tests now. Really sorry for earlier 🙇

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@illume illume left a comment

Choose a reason for hiding this comment

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

🎉 thanks!

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: illume, mudit06mah

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 1, 2026
@illume illume added kind/bug Categorizes issue or PR as related to a bug. charts labels Feb 1, 2026
@illume illume added this to the v0.40.0 milestone Feb 1, 2026
@illume illume merged commit 9a71954 into kubernetes-sigs:main Feb 1, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. charts cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

incorrect env for deployment with create.secret false for token

4 participants