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: update spec with new scripts dir when updating kotsadm #5085

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

emosbaugh
Copy link
Member

What this PR does / why we need it:

Which issue(s) this PR fixes:

Does this PR require a test?

Does this PR require a release note?


Does this PR require documentation?

@emosbaugh emosbaugh marked this pull request as ready for review January 7, 2025 20:45
Comment on lines +172 to +174
if existing.Spec.Template.Annotations != nil {
existing.Spec.Template.Annotations["pre.hook.backup.velero.io/command"] = `["/scripts/backup.sh"]`
}
Copy link
Member

Choose a reason for hiding this comment

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

I think we should create the map if it is nil, but this is probably fine in practice

@laverya laverya enabled auto-merge (squash) January 8, 2025 20:46
@laverya laverya merged commit 1663223 into main Jan 8, 2025
122 checks passed
@laverya laverya deleted the fix-update-kotsadm-spec-with-new-scripts-dir branch January 8, 2025 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug::normal type::bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants