-
Notifications
You must be signed in to change notification settings - Fork 52
Remove redundant code form helmer #1561
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
Conversation
5d7e5e0
to
c03012e
Compare
90e0657
to
b98698b
Compare
@shlomitk1 @revit13 , I removed some redundant helm related code. |
Signed-off-by: Alexey Roytman <roytman@il.ibm.com>
func (r *BlueprintReconciler) applyChartResource(ctx context.Context, log *zerolog.Logger, chartSpec fapp.ChartSpec, | ||
args map[string]interface{}, blueprint *fapp.Blueprint, releaseName string) (ctrl.Result, error) { | ||
func (r *BlueprintReconciler) applyChartResource(ctx context.Context, cfg *action.Configuration, chartSpec fapp.ChartSpec, | ||
args map[string]interface{}, releaseNameSpace, releaseName string, log *zerolog.Logger) (ctrl.Result, error) { |
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.
releaseNameSpace -> releaseNamespace
Can't it be extracted from the config?
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.
- releaseNameSpace -> releaseNamespace
OK - Can't it be extracted from the config?
yes and no. It is stored in one of implementations ofkube.Interface
when it is Kubernetes.Client, it's available there, but there are 2 other implementations...
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.
A couple of comments:
-
In the manager deployment we have an option to deploy the manager pod with a pre-configured chart. See
fybrik/charts/fybrik/templates/manager-deployment.yaml
Lines 142 to 145 in 1c1529b
{{- if .Values.manager.chartVolume }} - mountPath: /opt/fybrik/ name: charts {{- end }} fybrik/charts/fybrik/values.yaml
Lines 222 to 227 in 1c1529b
chartVolume: "" # Specify a persistent volume claim, to be mounted by the manager, that can contain # helm charts that can be referenced by a FybrikModule. Manager will check if a chart # is available on volume first, then try to pull from a Docker registry if it does not exist. # To populate the volume, create a 'charts' directory at the root of the mount, # and place helm charts within the charts directory.
Either we disable this option, and the deployment yaml is updated accordingly, or we keep it. In the latter case, perhaps it will make more sense to define an env var that will prevent manager from trying to load a local chart if it is not there. -
Keeping HELM_DEBUG env variable may be useful for debugging purposes.
-
Did WAIT option reduce the number of idle status checks? Please check that the timeout has been indeed propagated to the helmer inner functions (I had once problems with that, 0 was used instead of the passed timeout value, so wait basically did nothing...)
-
Please set DisableOpenAPIValidation to the correct value.
|
Signed-off-by: Alexey Roytman <roytman@il.ibm.com>
getConfig
Signed-off-by: Alexey Roytman roytman@il.ibm.com