kubeshop / kusk-gen

Kusk Gen generates Ingress-controller configurations from your OpenAPI definition
https://kubeshop.github.io/kusk-gen
MIT License
173 stars 12 forks source link

Add version cmd #75

Closed dobegor closed 3 years ago

dobegor commented 3 years ago

Resolves #75

Currently it will have to be filled in manually like this: go run -ldflags="-X 'github.com/kubeshop/kusk/version.Version=0.0.1' -X 'github.com/kubeshop/kusk/version.Commit=42'" main.go version Later on we can fill this within Goreleaser (supports this out of the box).

kylehodgetts commented 3 years ago

Perhaps it would be worthwhile to create a Makefile?

dobegor commented 3 years ago

Perhaps it would be worthwhile to create a Makefile?

I think we'll either create a Makefile or use Goreleaser, which covers it - whichever we'd able to finish in a given timeline - so I left this out here

kylehodgetts commented 3 years ago

How is the Date value set?

dobegor commented 3 years ago

How is the Date value set?

It's just a string, goreleaser fills it with timestamp formatted https://goreleaser.com/cookbooks/using-main.version/ deploying manually you can just pipe date -u there