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

CoreKind: use joinSchema #11

Merged
merged 7 commits into from
Apr 27, 2023
Merged

CoreKind: use joinSchema #11

merged 7 commits into from
Apr 27, 2023

Conversation

ryantxu
Copy link
Member

@ryantxu ryantxu commented Apr 20, 2023

Update core types so they are also k8s based. See grafana/grafana#67008

@ryantxu ryantxu marked this pull request as ready for review April 26, 2023 21:05
@ryantxu ryantxu changed the title CoreTypes: use join schema CoreKind: use joinSchema Apr 26, 2023
@@ -63,7 +63,11 @@ _crdSchema: {
// Have to do this gnarly regex instead
[!~"^(uid|creationTimestamp|deletionTimestamp|finalizers|resourceVersion|labels|updateTimestamp|createdBy|updatedBy|extraFields)$"]: string
}
spec: struct.MinFields(0)
spec: _
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is _ an empty placeholder in cue (similar to JS empty, unused param in a function?)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's "top", most closely analogous to any in typescript

@ryantxu ryantxu merged commit bb32881 into main Apr 27, 2023
@ryantxu ryantxu deleted the core-schema-format branch April 27, 2023 15:20
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.

None yet

4 participants