-
Notifications
You must be signed in to change notification settings - Fork 56
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
Fix mounting for inputs container #642
Conversation
var valuesString = KubernetesYaml.Serialize(values); | ||
await File.WriteAllTextAsync(TempHelmValuesYamlPath, valuesString); | ||
await Deployer.UploadTextToStorageAccountAsync(storageAccount, Deployer.ConfigurationContainerName, "aksValues.yaml", valuesString, cts.Token); | ||
} | ||
|
||
private void UpdateValues(HelmValues values, Version previousVersion) |
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.
Seems like this method should be named something like "UpdateContainerValues", and then in the Deployer.cs, there is a version check in the Update area, which would result in calling this. That way it's very clear what happens during an update, not buried in KubernetesManager.cs
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.
My intention was that all version related updates to the helm values would be added to this method not just this example for containers. I renamed the method to ProcessHelmValuesUpdates though, and passed the installedVersion from the deployer so hopefully its a little clearer.
{{- range .Values.internalContainersMIAuth }} | ||
{{- $path := printf "/%s/%s" .accountName .containerName }} | ||
{{- $claimName := printf "%s-%s-claim1" .accountName .containerName }} | ||
{{- if eq $storageAccount .accountName }} | ||
{{- if and (eq $storageAccount .accountName) (has .containerName $cromwellContainers)}} |
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 this case insensitive?
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.
It is not, there is no case insensitive comparison in the helm template language from what I can tell. I converted the strings to lowercase for comparison now though.
@jsaun can you please link the original issue and/or update the title and description of this PR? |
No description provided.