Skip to content

Commit

Permalink
EVEREST-107 improve CLI run (#17)
Browse files Browse the repository at this point in the history
EVEREST-107 improve cli run
  • Loading branch information
oksana-grishchenko committed Mar 1, 2024
1 parent 00cabbd commit b60869a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dev-fe-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ jobs:
- name: Run Provisioning
run: |
go run cmd/everest/main.go install \
go run cmd/cli/main.go install \
--operator.mongodb \
--operator.postgresql \
--operator.xtradb-cluster \
Expand Down Expand Up @@ -191,7 +191,7 @@ jobs:
- name: Change token
run: |
echo "EVEREST_K8_TOKEN=$(go run cmd/everest/main.go token reset --json | jq .token -r)" >> $GITHUB_ENV
echo "EVEREST_K8_TOKEN=$(go run cmd/cli/main.go token reset --json | jq .token -r)" >> $GITHUB_ENV
- name: Expose Everest API Server
run: |
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ build: ## Build binaries
go build -v $(LD_FLAGS_API) -o bin/everest ./cmd

build-cli: ## Build binaries
go build -v $(LD_FLAGS_CLI) -o bin/everestctl ./cmd/everest
go build -v $(LD_FLAGS_CLI) -o bin/everestctl ./cmd/cli

release: FLAGS += -X 'github.com/percona/everest/cmd/config.TelemetryURL=https://check.percona.com' -X 'github.com/percona/everest/cmd/config.TelemetryInterval=24h'

Expand Down Expand Up @@ -63,6 +63,9 @@ run-debug: build-debug ## Run binary
TELEMETRY_INTERVAL=30m \
bin/everest

run-cli-install: build-cli
bin/everestctl install --skip-wizard --namespaces=everest

cert: ## Install dev TLS certificates
mkcert -install
mkcert -cert-file=dev-cert.pem -key-file=dev-key.pem everest everest.localhost 127.0.0.1
Expand Down
2 changes: 1 addition & 1 deletion api-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Provisioning kubernetes cluster
```
git clone git@github.com:percona/percona-everest-cli
cd percona-everest-cli
go run cmd/everest/main.go install --namespace everest --operator.mongodb=true --operator.postgresql=true --operator.xtradb-cluster=true --skip-wizard
go run cmd/cli/main.go install --namespace everest --operator.mongodb=true --operator.postgresql=true --operator.xtradb-cluster=true --skip-wizard
```
Using these commands you'll have installed the following operators

Expand Down
File renamed without changes.

0 comments on commit b60869a

Please sign in to comment.