From 4681e362949517a2dd5f831d65153ff2b590eb49 Mon Sep 17 00:00:00 2001 From: Ivan Velichko Date: Fri, 29 Sep 2023 10:10:09 +0000 Subject: [PATCH] Add goreleaser --- .goreleaser.yaml | 30 ++++++++++++++++++++++++++++++ Makefile | 12 ++++++++++++ README.md | 23 ++++++++++++++++++++++- ui/dist/.keep | 0 4 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 .goreleaser.yaml create mode 100644 ui/dist/.keep diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..1620b5f --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,30 @@ +project_name: kexp +before: + hooks: + - make front-build + - go mod tidy +builds: + - env: + - CGO_ENABLED=0 + goos: + - linux + - darwin + goarch: + - amd64 + - arm64 +archives: + - name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}" +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ incpatch .Version }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' + +# modelines, feel free to remove those if you don't want/use them: +# yaml-language-server: $schema=https://goreleaser.com/static/schema.json +# vim: set ts=2 sw=2 tw=0 fo=cnqoj diff --git a/Makefile b/Makefile index 3e87f40..6c4bfb4 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,10 @@ front-run-dev: front-lint-fix: cd ${CUR_DIR}/ui && npm run lint-fix +.PHONY: front-build +front-build: + cd ${CUR_DIR}/ui && npm run build + .PHONY: build build: cd ${CUR_DIR}/ui && npm run build @@ -47,3 +51,11 @@ docker-build: .PHONY: docker-push docker-push: docker-build docker push ghcr.io/iximiuz/kexp:latest + +.PHONY: release +release: + goreleaser --clean + +.PHONY: release-snapshot +release-snapshot: + goreleaser release --snapshot --clean diff --git a/README.md b/README.md index 69339ef..8c804bb 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,26 @@ # k'exp - Kubernetes Explorer +Understand Kubernetes - the visual way. +Not yet another attempt to manage production clusters in the browser. + +k'exp is for: + +- Learning and exploring Kubernetes capabilities +- Application development (object graph "presets" for every app) +- Controller and operator development (dynamic object graph) +- [coming soon] Postman-like client for Kubernetes API + + +## How to run + +It's a single Go binary with embedded UI. +If you already have `kubectl` configured to access your cluster(s), +you can run `kexp` too - it uses the same `KUBECONFIG` discovery logic. + +```sh +``` + + ## Development Server: @@ -17,8 +38,8 @@ npm run dev ``` ```sh -make back-run-dev make front-run-dev +make back-run-dev open localhost:5173 ``` diff --git a/ui/dist/.keep b/ui/dist/.keep new file mode 100644 index 0000000..e69de29