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

statefulset: explicit apiVersion and kind for volumeClaimTemplates #38981

Closed
wants to merge 1 commit into from

Conversation

sathieu
Copy link
Contributor

@sathieu sathieu commented Jan 17, 2023

The conversion introduced by kubernetes/kubernetes#87706 caused ServerSide-apply to generate a diff when the applied volumeClaimTemplates item has no apiVersion or kind .

This PR recommends setting apiVersion and kind .

See argoproj/argo-cd#11143.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 17, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign kbhawkey for approval by writing /assign @kbhawkey in a comment. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot requested a review from foxish January 17, 2023 20:41
@k8s-ci-robot k8s-ci-robot added the language/en Issues or PRs related to English language label Jan 17, 2023
@k8s-ci-robot k8s-ci-robot added the sig/docs Categorizes an issue or PR as relevant to SIG Docs. label Jan 17, 2023
@k8s-ci-robot
Copy link
Contributor

Welcome @sathieu!

It looks like this is your first PR to kubernetes/website 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/website has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 17, 2023
@netlify
Copy link

netlify bot commented Jan 17, 2023

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit 8c1133e
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-io-main-staging/deploys/63c7080174bf340008edeb21
😎 Deploy Preview https://deploy-preview-38981--kubernetes-io-main-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@lavalamp
Copy link
Member

...or is SSA doing something wrong? cc @apelisse to check?

@sathieu
Copy link
Contributor Author

sathieu commented Jan 18, 2023

@lavalamp You are right, and I don't see why SSA is going thru conversion (we are using apps/v1 StatefulSet).

@sathieu
Copy link
Contributor Author

sathieu commented Feb 2, 2023

Anyone having a idea how to fix diff in ServerSideApply with volumeClaimTemplates?

Ping @liggitt @wojtek-t 🙇

@apelisse
Copy link
Member

apelisse commented Feb 2, 2023

I mostly understand what's going on but a few details are still a little fuzzy. What are some minimal steps to reproduce so I can take a better look? Thanks.

@sathieu
Copy link
Contributor Author

sathieu commented Apr 18, 2023

It looks like the issue is coming from the way ArgoCD uses SSA (argoproj/argo-cd#11143 (comment)). Closing PR.

@sathieu sathieu closed this Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/en Issues or PRs related to English language sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants