Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Add UI apiserver
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Jun 8, 2022
1 parent 1f59225 commit e4a9eb4
Show file tree
Hide file tree
Showing 45 changed files with 1,965 additions and 87 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
echo "${COSIGN_KEY}" > "$GITHUB_WORKSPACE/cosign.key"
env:
COSIGN_KEY: ${{ secrets.COSIGN_KEY }}
- run: make download-latest-ui
- run: make validate-ci
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
echo "${COSIGN_KEY}" > "$GITHUB_WORKSPACE/cosign.key"
env:
COSIGN_KEY: ${{ secrets.COSIGN_KEY }}
- run: make download-ui
- run: make validate-ci
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
download-latest-ui:
curl -sL https://cdn.acrn.io/ui/latest.tar.gz | tar xvzf - -C pkg/ui/server/static/dashboard --strip-components=1

download-ui:
curl -sL https://cdn.acrn.io/ui/latest.tar.gz | tar xvzf - -C pkg/ui/server/static/dashboard --strip-components=1

build:
CGO_ENABLED=0 go build -o bin/acorn -ldflags "-s -w" .

Expand Down
3 changes: 2 additions & 1 deletion docs/docs/100-Reference/01-command-line/acorn.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ acorn [flags]
* [acorn build](acorn_build.md) - Build an app from a acorn.cue file
* [acorn container](acorn_container.md) - List or get running containers
* [acorn credential](acorn_credential.md) - Manage registry credentials
* [acorn dashboard](acorn_dashboard.md) - Dashboard about acorn installation
* [acorn dev](acorn_dev.md) - Build and run an app in development mode
* [acorn exec](acorn_exec.md) - Run a command in a container
* [acorn image](acorn_image.md) - List images
* [acorn info](acorn_info.md) - Info about acorn installation
* [acorn init](acorn_init.md) - Initial cluster for acorn use
* [acorn init](acorn_init.md) - Install and configure acorn in the cluster
* [acorn logs](acorn_logs.md) - Log all pods from app
* [acorn pull](acorn_pull.md) - Pull an image to a remote registry
* [acorn push](acorn_push.md) - Push an image to a remote registry
Expand Down
32 changes: 32 additions & 0 deletions docs/docs/100-Reference/01-command-line/acorn_dashboard.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: "acorn dashboard"
---
## acorn dashboard

Dashboard about acorn installation

```
acorn dashboard [flags]
```

### Options

```
--browser Open browser after local server starts (default true)
-h, --help help for dashboard
--listen-address string Address to locally listen on (default "127.0.0.1:0")
```

### Options inherited from parent commands

```
-A, --all-namespaces Namespace to work in
--context string Context to use in the kubeconfig file
--kubeconfig string Location of a kubeconfig file
--namespace string Namespace to work in (default "acorn")
```

### SEE ALSO

* [acorn](acorn.md) -

16 changes: 11 additions & 5 deletions docs/docs/100-Reference/01-command-line/acorn_init.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ title: "acorn init"
---
## acorn init

Initial cluster for acorn use
Install and configure acorn in the cluster

```
acorn init [flags] [APP_NAME...]
acorn init [flags]
```

### Examples
Expand All @@ -19,9 +19,15 @@ acorn init
### Options

```
-h, --help help for init
--image string Override the default image used for the deployment
-o, --output string Output manifests instead of applying them (json, yaml)
--cluster-domains strings The externally addressable cluster domain (default .local.on-acorn.io)
-h, --help help for init
--image string Override the default image used for the deployment
--ingress-class-name string The ingress class name to assign to all created ingress resources (default '')
--mode string Initialize only 'config', 'resources', or 'both' (default 'both')
-o, --output string Output manifests instead of applying them (json, yaml)
--pod-security-enforce-profile string The name of the PodSecurity profile to set (default baseline)
--set-pod-security-enforce-profile Set the PodSecurity profile on created namespaces (default true)
--tls-enabled If true HTTPS URLs will be rendered for HTTP endpoint URLs (default false)
```

### Options inherited from parent commands
Expand Down
24 changes: 21 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ go 1.18
replace (
cloud.google.com/go v0.93.3 => cloud.google.com/go v0.100.2
github.com/docker/docker => github.com/docker/docker v20.10.3-0.20220121014307-40bb9831756f+incompatible
github.com/rancher/apiserver => github.com/acorn-io/apiserver-1 v0.0.0-20220608053213-0ffc3be57697
github.com/rancher/lasso => github.com/acorn-io/lasso v0.0.0-20220519152917-47b14aceb5cf
github.com/rancher/steve => github.com/acorn-io/steve v0.0.0-20220525234928-3ccc837e8406
go.etcd.io/etcd/server/v3 v3.5.1 => github.com/acorn-io/etcd/server/v3 v3.5.1-ot-1
k8s.io/apiserver => github.com/acorn-io/apiserver v0.24.1-ot-1
k8s.io/client-go => k8s.io/client-go v0.24.1
Expand All @@ -23,11 +25,17 @@ require (
github.com/google/go-containerregistry/pkg/authn/kubernetes v0.0.0-20220526175912-f74686f9f86f
github.com/google/uuid v1.3.0
github.com/goombaio/namegenerator v0.0.0-20181006234301-989e774b106e
github.com/gorilla/mux v1.8.0
github.com/gorilla/websocket v1.5.0
github.com/moby/buildkit v0.10.1
github.com/moby/locker v1.0.1
github.com/opencontainers/image-spec v1.0.3-0.20220114050600-8b9d41f48198
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8
github.com/pterm/pterm v0.12.41
github.com/rancher/apiserver v0.0.0-20220513144301-4808910b5d4d
github.com/rancher/kubernetes-provider-detector v0.1.5
github.com/rancher/lasso v0.0.0-20220412224715-5f3517291ad4
github.com/rancher/steve v0.0.0-20220503004032-53511a06ff37
github.com/rancher/wrangler v1.0.1-0.20220520195731-8eeded9bae2a
github.com/sirupsen/logrus v1.8.1
github.com/spf13/cobra v1.4.0
Expand All @@ -38,7 +46,7 @@ require (
k8s.io/api v0.24.1
k8s.io/apimachinery v0.24.1
k8s.io/apiserver v0.24.1
k8s.io/client-go v11.0.1-0.20190409021438-1a26190bd76a+incompatible
k8s.io/client-go v12.0.0+incompatible
k8s.io/kube-aggregator v0.24.1
k8s.io/kube-openapi v0.0.0-20220413171646-5e7f5fdc6da6
k8s.io/kubectl v0.24.1
Expand All @@ -52,6 +60,8 @@ require (
github.com/Microsoft/go-winio v0.5.2 // indirect
github.com/NYTimes/gziphandler v1.1.1 // indirect
github.com/VividCortex/ewma v1.1.1 // indirect
github.com/adrg/xdg v0.3.1 // indirect
github.com/atomicgo/cursor v0.0.1 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/blang/semver/v4 v4.0.0 // indirect
github.com/cenkalti/backoff/v4 v4.1.3 // indirect
Expand Down Expand Up @@ -90,6 +100,7 @@ require (
github.com/google/go-cmp v0.5.8 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
github.com/gookit/color v1.5.0 // indirect
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0 // indirect
Expand All @@ -102,7 +113,7 @@ require (
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.11 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mattn/go-runewidth v0.0.12 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
Expand All @@ -115,21 +126,27 @@ require (
github.com/morikuni/aec v1.0.0 // indirect
github.com/mpvl/unique v0.0.0-20150818121801-cbe035fff7de // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/pborman/uuid v1.2.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_golang v1.12.1 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.32.1 // indirect
github.com/prometheus/procfs v0.7.3 // indirect
github.com/protocolbuffers/txtpbfmt v0.0.0-20201118171849-f6a6b3f636fc // indirect
github.com/rancher/dynamiclistener v0.2.1-0.20200714201033-9c1939da3af9 // indirect
github.com/rancher/lasso/controller-runtime v0.0.0-20220412224715-5f3517291ad4 // indirect
github.com/rancher/norman v0.0.0-20210423002317-8e6ffc77a819 // indirect
github.com/rancher/remotedialer v0.2.6-0.20220104192242-f3837f8d649a // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/tonistiigi/fsutil v0.0.0-20220115021204-b19f7f9cb274 // indirect
github.com/tonistiigi/fsutil v0.0.0-20220315205639-9ed612626da3 // indirect
github.com/tonistiigi/units v0.0.0-20180711220420-6950e57a87ea // indirect
github.com/tonistiigi/vt100 v0.0.0-20210615222946-8066bb97264f // indirect
github.com/vbatts/tar-split v0.11.2 // indirect
github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 // indirect
go.etcd.io/etcd/api/v3 v3.5.1 // indirect
go.etcd.io/etcd/client/pkg/v3 v3.5.1 // indirect
go.etcd.io/etcd/client/v3 v3.5.1 // indirect
Expand Down Expand Up @@ -170,6 +187,7 @@ require (
k8s.io/klog v1.0.0 // indirect
k8s.io/klog/v2 v2.60.1 // indirect
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.30 // indirect
sigs.k8s.io/cli-utils v0.27.0 // indirect
sigs.k8s.io/controller-tools v0.8.0 // indirect
sigs.k8s.io/json v0.0.0-20220525155127-227cbc7cc124 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.2.1 // indirect
Expand Down
Loading

0 comments on commit e4a9eb4

Please sign in to comment.