Skip to content

Commit

Permalink
chore: add make skaffold task
Browse files Browse the repository at this point in the history
Kustomize doesn't currently (or at least smoothly) create namespaces
if one doesn't already exist, so let's add a make task to wrap
`skaffold dev` along with creating a namespace if one doesn't already
exist.

Signed-off-by: Blake Pettersson <[email protected]>
  • Loading branch information
blakepettersson committed Sep 2, 2023
1 parent e61dcd0 commit 957cb07
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,11 @@ start: test-tools-image
docker version
$(call run-in-test-server,make ARGOCD_PROCFILE=test/container/Procfile start-local ARGOCD_START=${ARGOCD_START})

.PHONY: skaffold
skaffold:
kubectl create ns argocd || true
skaffold dev

# Starts a local instance of ArgoCD
.PHONY: start-local
start-local: mod-vendor-local dep-ui-local cli-local
Expand Down
10 changes: 6 additions & 4 deletions docs/developer-guide/running-locally.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ If you followed the [Toolchain Guide](toolchain-guide.md) in setting up your too
sure you're on the right kube context first) by running

```shell
skaffold dev
make skaffold
```

That's it. Once it's up and running, you can access Argo CD on (http://localhost:4000)[http://localhost:4000] (the user is
`admin` and the password is simply `password`. If you need to make any adjustments to the k8s
configuration(s), the `kustomization.yaml` for Skaffold can be found under the `skaffold` directory.
Alternatively, you can also run the command `skaffold dev` if you're certain that you have a preexisting `argocd` namespace
(`make skaffold` will create the `argocd` namespace if it doesn't already exist, otherwise the two commands are equivalent).
Once Argo CD's up and running, you can access it on (http://localhost:4000)[http://localhost:4000] (the user is `admin`
and the password is simply `password`. If you need to make any adjustments to the k8s configuration(s), the
`kustomization.yaml` for Skaffold can be found under the `skaffold` directory.

## Run Argo CD outside of Kubernetes

Expand Down

0 comments on commit 957cb07

Please sign in to comment.