Skip to content

Commit

Permalink
Exclude the CUE vendor packages from Git
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <[email protected]>
  • Loading branch information
stefanprodan committed Apr 14, 2022
1 parent 36bf90b commit 54908f7
Show file tree
Hide file tree
Showing 78 changed files with 820 additions and 15,316 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.17.x
- name: Run unit tests
run: make test
- name: Setup CUE
uses: cue-lang/setup-cue@main
- name: Run unit tests
run: make test
- name: Generate CUE definitions
run: make cue-mod
- name: Verify CUE formatting
working-directory: ./cue
run: |
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ release/
build/
gcloud/
dist/
bin/
bin/
cue/cue.mod/gen/
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ swagger:
go get github.com/swaggo/swag/cmd/swag
cd pkg/api && $$(go env GOPATH)/bin/swag init -g server.go

.PHONY: cue
cue:
.PHONY: cue-mod
cue-mod:
@cd cue && cue get go k8s.io/api/... && cue get go github.com/cert-manager/cert-manager/pkg/apis/certmanager/v1

.PHONY: cue-gen
cue-gen:
@cd cue && cue fmt ./... && cue vet --all-errors --concrete ./...
@cd cue && cue gen
12 changes: 11 additions & 1 deletion cue/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@

This directory contains a [cuelang module](https://cuelang.org/docs/) and tooling to generate podinfo resources.

It defines a `podinfo.#Application` definition which takes a `podinfo.#Config` as input. The `podinfo.#Config` definition is modelled on the `podinfo` Helm chart `values.yaml` file.
It defines a `podinfo.#Application` definition which takes a `podinfo.#Config` as input.
The `podinfo.#Config` definition is modelled on the `podinfo` Helm chart `values.yaml` file.

## Prerequisites

Generate the Kubernetes API definitions required by podinfo with:

```shell
cue get go k8s.io/api/...
cue get go github.com/cert-manager/cert-manager/pkg/apis/certmanager/v1
```

## Configuration

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 54908f7

Please sign in to comment.