Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vikstrous/cuek8s
https://github.com/vikstrous/cuek8s
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/vikstrous/cuek8s
- Owner: vikstrous
- Created: 2024-06-03T14:13:17.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-06-24T13:55:17.000Z (7 months ago)
- Last Synced: 2024-12-23T17:14:03.426Z (17 days ago)
- Language: CUE
- Size: 316 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Usage:
1. Make sure your cue version is at least 0.9
2. Add the module as a dependency:
```bash
cue mod get github.com/vikstrous/cuek8s
```3. Use the definitions available
```cue
package cuek8stestimport "github.com/vikstrous/cuek8s"
service: cuek8s.#Service & {
metadata: {
name: "my-service"
}
}
```4. Confirm that invalid definitions will trigger an error:
```cue
service: cuek8s.#Service & {
metadata: {
nonsense: true
}
}
``````bash
service.metadata.nonsense: field not allowed:
../.cache/cue/mod/extract/github.com/vikstrous/[email protected]/definitions.cue:34:11
../.cache/cue/mod/extract/github.com/vikstrous/[email protected]/gen/k8s.io/api/core/v1/types_go_gen.cue:5941:13
../.cache/cue/mod/extract/github.com/vikstrous/[email protected]/gen/k8s.io/apimachinery/pkg/apis/meta/v1/types_go_gen.cue:89:14
./test.cue:5:10
./test.cue:7:3
```See [definitions.cue](./definitions.cue) to the complete list of kubernetes types exposed. If you want to see more added, open a Github issue!