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

#47091 - Added RemoteDialerProxy Helm Chart #102

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

gehrkefc
Copy link
Contributor

@gehrkefc gehrkefc commented Feb 10, 2025

Issue: rancher/rancher#47091

This depends on: rancher/rancher#47037

Problem

We had to convert the kubernetes files in 47037 into helm charts.

Solution

Added RemoteDialer Proxy Helm Chart

@gehrkefc gehrkefc changed the title #47091 - Added RDP Helm Chart #47091 - Added RemoteDialer Proxy Helm Chart Feb 10, 2025
@gehrkefc gehrkefc changed the title #47091 - Added RemoteDialer Proxy Helm Chart #47091 - Added RemoteDialerProxy Helm Chart Feb 10, 2025
@gehrkefc gehrkefc marked this pull request as ready for review February 11, 2025 14:47
@gehrkefc gehrkefc requested a review from a team as a code owner February 11, 2025 14:47
@prachidamle prachidamle removed the request for review from a team February 11, 2025 19:48
Copy link
Member

@rohitsakala rohitsakala left a comment

Choose a reason for hiding this comment

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

Some initial review based on what I observed. I might wrong here since I am new to this.

charts/remotedialer-proxy/Chart.yaml Outdated Show resolved Hide resolved
charts/remotedialer-proxy/Chart.yaml Show resolved Hide resolved
charts/remotedialer-proxy/values.yaml Outdated Show resolved Hide resolved
charts/remotedialer-proxy/templates/_helpers.tpl Outdated Show resolved Hide resolved
charts/remotedialer-proxy/Chart.yaml Outdated Show resolved Hide resolved
charts/remotedialer-proxy/templates/_helpers.tpl Outdated Show resolved Hide resolved
charts/remotedialer-proxy/templates/deployment.yaml Outdated Show resolved Hide resolved
charts/remotedialer-proxy/values.yaml Outdated Show resolved Hide resolved
@tomleb tomleb removed their request for review February 12, 2025 14:23
rohitsakala
rohitsakala previously approved these changes Feb 19, 2025
Comment on lines +4 to +6
{{- define "api-extension.name" }}
{{- default "api-extension" .Values.apiExtensionName }}
{{- end}}

Choose a reason for hiding this comment

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

I'd recommend adding a quick comment in values.yaml with the default value as well since this is a non-standard value

targetPort: https
protocol: TCP
name: https
- port: {{ .Values.service.proxyPort }}
- port: {{ default 6666 .Values.service.proxyPort }}

Choose a reason for hiding this comment

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

Since we have this same expression {{ default 6666 .Values.service.proxyPort }} listed across multiple files and resources, we should probably pull these port expressions into a function in _helper.yaml

@@ -27,7 +27,7 @@ spec:
{{- end }}
serviceAccountName: {{ include "remotedialer-proxy.serviceAccountName" . }}
containers:
- name: {{ .Chart.Name }}
- name: {{ include "remotedialer-proxy.name" . }}

Choose a reason for hiding this comment

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

Is there a reason we need to change the name of the container here?

{{/*
API Extension Name - To be used in other variables
*/}}
{{- define "api-extension.name" }}

Choose a reason for hiding this comment

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

I'm having a hard time figuring out why we need to have this function. Looks like its mostly wrapped inside of a bunch of other functions and is used the same way that .Chart.Name is usually used.

replicaCount: 1

image:
repository: rancher

Choose a reason for hiding this comment

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

For images the repository refers to the full name of the image (ex rancher/rancher-webook). This should be rancher/remotedialer-proxy

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.

4 participants