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

Fix imagePullSecret handling when secret is not set #748

Merged
merged 2 commits into from
Aug 5, 2022

Conversation

dpmerron-ltd
Copy link
Contributor

When performing a helm upgrade over an existing deployment helm would error with;

client.go:205: [debug] error updating the resource "alfresco-content-services-alfresco-router":
failed to create patch: map: map[] does not contain declared merge key: name
upgrade.go:355: [debug] warning: Upgrade "alfresco-content-services" failed: failed to create patch: map: map[] does not contain declared merge key: name

This is because the original deployment would set the imagePullSecret to "name: " and would try to be re-set at upgrade. Since a blank value is defaulted in the chart values this conditional is needed in all the deployment (and is present in the others).

@CLAassistant
Copy link

CLAassistant commented Aug 4, 2022

CLA assistant check
All committers have signed the CLA.

@gionn
Copy link
Member

gionn commented Aug 4, 2022

Hello, would you mind fixing also helm/alfresco-content-services/charts/alfresco-sync-service/templates/deployment-syncservice.yaml with the same approach?

for the future we really need to define a new template with that snippet and reuse everywhere

…charts/alfresco-sync-service/templates/deployment-syncservice.yaml
@dpmerron-ltd
Copy link
Contributor Author

Hi @gionn . I've made the same change to helm/alfresco-content-services/charts/alfresco-sync-service/templates/deployment-syncservice.yaml aswell!

@gionn
Copy link
Member

gionn commented Aug 5, 2022

Looks like we have some issues on github actions for PR coming from forked repos, in the meanwhile I've manually run your code here so it's fine to merge.

@dpmerron-ltd please sign the CLA and we can proceed to merge

@gionn gionn self-assigned this Aug 5, 2022
@gionn gionn changed the title Updated deployment-transform-router.yaml with conditional imagePullSe… Fix imagePullSecret handling when secret is not set Aug 5, 2022
@gionn gionn merged commit 58939e5 into Alfresco:master Aug 5, 2022
@gionn
Copy link
Member

gionn commented Aug 5, 2022

Thanks for contributing! 🌮

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants