kruise icon indicating copy to clipboard operation
kruise copied to clipboard

[GLCC] Genereate openapi schema for kustomize

Open furykerry opened this issue 2 years ago • 6 comments

OpenKruise does not work very well with kustomize. kustomize strategic merge only support k8s native resource type, and json patch is unable to merge array element using merge keys such as container name.

However, kustomize support using openapi schema to specify merge key and patch strategy.

Background information can be refer: https://tech.aabouzaid.com/2022/11/set-openapi-patch-strategy-for-kubernetes-custom-resources-kustomize.html

The programme can be refer: https://github.com/argoproj/argo-rollouts/pull/1371

What would you like to be added: generate openapi for openkruise resource types

Why is this needed: Enable kustomize to patch correctly OpenKruise types.

furykerry avatar Aug 31 '22 02:08 furykerry

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 29 '22 03:11 stale[bot]

/reopen

furykerry avatar Dec 09 '22 06:12 furykerry

@furykerry: Reopened this issue.

In response to this:

/reopen

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

kruise-bot avatar Dec 09 '22 06:12 kruise-bot

Background information can be refer: https://tech.aabouzaid.com/2022/11/set-openapi-patch-strategy-for-kubernetes-custom-resources-kustomize.html

The programme can be refer: https://github.com/argoproj/argo-rollouts/pull/1371

zmberg avatar Jun 07 '23 02:06 zmberg

@zmberg Hi, May I ask if this is the only selected issue for GLCC? Maybe I can take this. But it seems that this issue does not require too much proposal design. May I ask what content I need to prepare when applying?

y-ykcir avatar Jun 13 '23 08:06 y-ykcir

@y-ykcir Yes, this is glcc project. And you can apply for it in glcc.

zmberg avatar Jun 19 '23 04:06 zmberg