Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(helm): ensure coder can be deployed in a non-default namespace#16579

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

ThomasK33
Copy link
Member

@ThomasK33ThomasK33 commentedFeb 14, 2025
edited
Loading

Added namespace to all resources in the helm chart and added tests to ensure that coder can be deployed in non-default namespaces, as specified via the namespace flag in the helm command.

Ways to verify this:

  • current state:

    $ helm template my-coder coder -n coder --version 2.19.0 --repo https://helm.coder.com/v2| yq'.metadata.namespace'null---null---null---null---null
  • fixed state when checking out this PR:

    $ helm template my-coder ./helm/coder -n coder --set coder.image.tag=latest| yq'.metadata.namespace'coder---coder---coder---coder---coder

Change-Id: Ib66d4be9bcc4984dfe15709362e1fe0dcd3e847f
Signed-off-by: Thomas Kosiewskitk@coder.com

Change-Id: Ib66d4be9bcc4984dfe15709362e1fe0dcd3e847fSigned-off-by: Thomas Kosiewski <tk@coder.com>
@ThomasK33Graphite App
Copy link
MemberAuthor

This stack of pull requests is managed byGraphite. Learn more aboutstacking.

@ThomasK33ThomasK33 marked this pull request as ready for reviewFebruary 14, 2025 15:27
Copy link
Member

@johnstcnjohnstcn left a comment

Choose a reason for hiding this comment

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

LGTM, but do weneed to do this for every single test case? Would simply testing with the default values suffice?

@ThomasK33
Copy link
MemberAuthor

LGTM, but do weneed to do this for every single test case? Would simply testing with the default values suffice?

I don't think testing the default values would be enough here. For example, the ingress is not enabled by default; thus, if it were to miss the namespace, we'd not be able to catch it.
The same applies to all the other objects that get conditionally templated.

@abasu0713
Copy link

I would like to add the issue affects the following CRDs for a failed deployment using Terraform helm provider:

  • RoleBinding
  • Role
  • Deployment
  • Service
Screenshot 2025-02-14 at 1 07 48 PMScreenshot 2025-02-14 at 1 07 42 PMScreenshot 2025-02-14 at 1 07 34 PMScreenshot 2025-02-14 at 1 07 27 PM

I haven't used Ingress, since my setup is Cloudflare Tunnels -> Coder Service (ClusterIP) which avoids the need for Ingress, Load balancers or NodePorts with Egress only routes within my network.
Hope this helps.
@ThomasK33 Thanks for sending the PR. You rock! Looking forward to getting this merged.

@abasu0713
Copy link

I am sorry if I am coming across rushing, but any chance we could get this merged please! 🙏

@matifalimatifali linked an issueFeb 17, 2025 that may beclosed by this pull request
@ThomasK33ThomasK33 merged commit420855d intomainFeb 18, 2025
37 checks passed
@ThomasK33ThomasK33 deleted the 02-14-fix_helm_ensure_coder_can_be_deployed_in_a_non-default_namespace branchFebruary 18, 2025 11:50
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsFeb 18, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

@mafredrimafredriAwaiting requested review from mafredri

Assignees

@ThomasK33ThomasK33

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Terraform Helm Deployment fails
3 participants
@ThomasK33@abasu0713@johnstcn

[8]ページ先頭

©2009-2025 Movatter.jp