-
Notifications
You must be signed in to change notification settings - Fork 361
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
Have A CI task to verify the CRD folder in sync #480
Comments
Hello, may I know the step verify the CRD folder YAML manifests are synced with the Velero image manually? |
Thanks @jenting for your prompt response.
Then we compare the |
@tungbq Be aware that the YAML output ordering and some extra labels or annotations added/removed from the Velero CLI output. |
As I observed, the diff part mostly is:
and
Trying to find a way to automate this. Not quite simple than I thought. |
I'd suggest not using kubectl --dry-run=client to generate the CRDs YAML. |
Or as an alternative, you could compare the two results. velero install --crds-only --dry-run -o yaml | kubectl apply --dry-run=client -f - -oyaml > debug_velero.yml
kubectl apply --dry-run=client -f crds/ -o yaml > debug_origin.yaml |
Thanks @jenting. I'm implementing the workflow upon your suggestion! |
Describe the problem/challenge you have
[A description of the current limitation/problem/challenge that you are experiencing.]
Currently, the CI does not check the CRD folder YAML manifests are synced with the Velero image.
Describe the solution you'd like
[A clear and concise description of what you want to happen.]
Have a CI task to verify the CRD folder YAML manifests are synced with the Velero image.
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:
helm version
):helm list -n <YOUR NAMESPACE>
):kubectl version
):/etc/os-release
):The text was updated successfully, but these errors were encountered: