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

ScaledJob: Support metadata annotations for ephemeral volume claims #6259

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dpertin
Copy link

@dpertin dpertin commented Oct 22, 2024

Add x-kubernetes-preserve-unknown-fields to ScaledJob CRD in order to support metadata in ephemeral volume claims

Based on #1311

Previously, ArgoCD used to see a diff, bypassed the error but kept the application "OutOfSync":
image
Yet a warning was triggered: unknown field "spec.jobTargetRef.template.spec.volumes[5].ephemeral.volumeClaimTemplate.metadata.annotations"

Now the change is applied, the desired block is part of the "live manifest" and the application is "Synced":
image

Checklist

Fixes #6254

Signed-off-by: Dimitri Pertin <dimitri.pertin@akeneo.com>
@dpertin dpertin force-pushed the 6254-volumeclaim-metadata branch from 2e104a0 to ebb2775 Compare October 22, 2024 14:57
@JorTurFer
Copy link
Member

Thanks for the fix! He have merged this PR, and I'd say that it will fix the current issue too. Could you double check it?

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.

Support metadata annotations in ScaledJob template's volume claims
2 participants