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

CRD Matchers #41

Open
astephanh opened this issue Dec 11, 2023 · 4 comments
Open

CRD Matchers #41

astephanh opened this issue Dec 11, 2023 · 4 comments

Comments

@astephanh
Copy link

Hello,

is there a way to add custom matchers for CRDs from https://github.com/datreeio/CRDs-catalog? I'd like to use the automatching functionality with crd resources as well.

to define matchers for CRDs might be better than define schemas and load manually. Maybe if there was an builtin matcher "kubernetes-crd" which could be configured via lua tables to create matchers based on the configuration? I'm no lua programmer, but it doesn't seem too hard to do (as the logic is almost implemented already).

Best Regards
Stephan

@astephanh
Copy link
Author

Hi again.

I'm by no means a programmer, but i managed to hack a simple Function to load the schema. Maybe you can use it to write something more "production ready".

main...astephanh:yaml-companion.nvim:main

@szechp
Copy link

szechp commented Dec 18, 2023

if it works, why not create a pull request?

@kevin-schmid
Copy link

@astephanh awesome job! I was looking for exactly this feature. I'm currently using your fork and it works as expected.

@astephanh
Copy link
Author

Hi,

the Problem is, that it will not work if there is no definition found. I also have trouble if i'm offline. I think some caching would be beneficial for speed. So as i'm not really a dev (in lua even less) i was hoping, someone could implement it properly :)

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

No branches or pull requests

3 participants