-
Notifications
You must be signed in to change notification settings - Fork 102
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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.
{{- define "api-extension.name" }} | ||
{{- default "api-extension" .Values.apiExtensionName }} | ||
{{- end}} |
There was a problem hiding this comment.
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 }} |
There was a problem hiding this comment.
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" . }} |
There was a problem hiding this comment.
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" }} |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
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