Skip to content

feat: add pod annotations #18

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

Merged
merged 2 commits into from
Jun 16, 2022
Merged

Conversation

DWSR
Copy link
Contributor

@DWSR DWSR commented Jun 15, 2022

Adds the ability to provide additional annotations to inject into the
migration job's pod

DWSR added 2 commits June 15, 2022 11:02
Adds the ability to provide additional annotations to inject into the
migration job's pod
@DWSR DWSR marked this pull request as draft June 15, 2022 17:16
@DWSR DWSR marked this pull request as ready for review June 15, 2022 18:31
Comment on lines +207 to +216
// add annotations to the job's pod template
jobTemplateAnnotations := map[string]string{
webhook.NOWAIT_MIGRATOR_ANNOTATION: "true",
}
if obj.Spec.Annotations != nil {
for k, v := range obj.Spec.Annotations {
jobTemplateAnnotations[k] = v
}
}

Copy link
Owner

Choose a reason for hiding this comment

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

Doing it in this order does technically allow the footgun of overriding the nowait annotation itself but I don't think anyone could do that by accident :)

@coderanger coderanger merged commit b4c2053 into coderanger:main Jun 16, 2022
@DWSR DWSR deleted the add-pod-annotations branch June 16, 2022 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants