Skip to content

Commit

Permalink
rename to local-dev
Browse files Browse the repository at this point in the history
Signed-off-by: Meredith Lancaster <[email protected]>
  • Loading branch information
malancas committed Jul 10, 2023
1 parent 2114b4f commit 7dd19c4
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ policy-controller:
policy-tester:
CGO_ENABLED=0 go build -trimpath -ldflags "$(LDFLAGS)" -o $@ ./cmd/tester

## Build localk8s binary
.PHONY: localk8s
localk8s:
CGO_ENABLED=0 go build -trimpath -ldflags "$(LDFLAGS)" -o bin/$@ ./cmd/localk8s
## Build local-dev binary
.PHONY: local-dev
local-dev:
CGO_ENABLED=0 go build -trimpath -ldflags "$(LDFLAGS)" -o bin/$@ ./cmd/local-dev

#####################
# lint / test section
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ Then run it pointing to a YAML file containing a ClusterImagePolicy, and an imag

## Local Development

You can spin up a local [Kind](https://kind.sigs.k8s.io/) K8s cluster to test local changes to the policy controller using the `localk8s`
CLI tool. Build the tool with `make localk8s` and then run it with `./bin/localk8s setup --cluster-name=<my cluster name> --ko-docker-repo=<some-docker-repo>`.
You can spin up a local [Kind](https://kind.sigs.k8s.io/) K8s cluster to test local changes to the policy controller using the ``
CLI tool. Build the tool with `make local-dev` and then run it with `./bin/local-dev setup --cluster-name=<my cluster name> --ko-docker-repo=<some-docker-repo>`.

You can clean up the cluster with `./bin/localk8s clean --cluster-name=<my cluster name>`.
You can clean up the cluster with `./bin/local-dev clean --cluster-name=<my cluster name>`.

You will need to have the following tools installed to use this:
- [Docker](https://docs.docker.com/get-docker/)
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion cmd/localk8s/root.go → cmd/local-dev/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
)

var rootCmd = &cobra.Command{
Use: "localk8s",
Use: "local-dev",
Short: "Create, manage, and destroy a local k8s cluster for testing the policy controller",
Long: "Create, manage, and destroy a local k8s cluster for testing the policy controller",
}
Expand Down
File renamed without changes.

0 comments on commit 7dd19c4

Please sign in to comment.