Skip to content

Commit

Permalink
Change task invocation in Makefile
Browse files Browse the repository at this point in the history
As the shell wrapper script was removed in 7a4b48a
the `task` invocation is direct now.
  • Loading branch information
RafalKorepta committed Sep 24, 2024
1 parent 5536cca commit de6d48e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/go/k8s/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ all: build

# Run tests
test: manifests generate fmt
cd ../../.. && nix develop -c ./task k8s:run-unit-tests
cd ../../.. && nix develop -c task k8s:run-unit-tests

# Build manager binary
.PHONY: manager
Expand All @@ -58,7 +58,7 @@ build: manager configurator

.PHONY: fmt
fmt: ## Run go fmt against code.
cd ../../.. && nix develop -c ./task fmt
cd ../../.. && nix develop -c task fmt

# Run against the configured Kubernetes cluster in ~/.kube/config
run: generate vet manifests fmt
Expand Down Expand Up @@ -92,12 +92,12 @@ undeploy:
# Generate manifests e.g. CRD, RBAC etc.
.PHONY: manifests
manifests:
cd ../../.. && nix develop -c ./task k8s:generate-manifests
cd ../../.. && nix develop -c task k8s:generate-manifests

# Generate code
.PHONY: generate
generate:
cd ../../.. && nix develop -c ./task k8s:generate-controller-code
cd ../../.. && nix develop -c task k8s:generate-controller-code

# Creates kind cluster
kind-create:
Expand All @@ -110,12 +110,12 @@ certmanager-install: kind-create
# Build the docker image
docker-build:
echo "~~~ Building operator image :docker:"
cd ../../.. && ./task k8s:build-operator-images
cd ../../.. && task k8s:build-operator-images

# Build the docker image
docker-build-configurator:
echo "~~~ Building configurator image :docker:"
cd ../../.. && ./task k8s:build-operator-images
cd ../../.. && task k8s:build-operator-images

# Preload controller image to kind cluster
push-to-kind: kind-create certmanager-install
Expand All @@ -124,11 +124,11 @@ push-to-kind: kind-create certmanager-install

# Execute end to end tests
e2e-tests:
cd ../../.. && nix develop -c ./task k8s:run-kuttl-tests
cd ../../.. && nix develop -c task k8s:run-kuttl-tests

# Execute end to end tests v2
e2e-tests-v2: kuttl
cd ../../.. && nix develop -c ./task k8s:run-k8s-v2-tests
cd ../../.. && nix develop -c task k8s:run-k8s-v2-tests

# Create resources for the e2e-tests-v2-ci
create-e2e-tests-v2-helm:
Expand All @@ -137,7 +137,7 @@ create-e2e-tests-v2-helm:
# Execute end to end tests v2
e2e-tests-v2-helm:
echo "~~~ Running kuttl tests :k8s:redpanda"
cd ../../.. && nix develop -c ./task k8s:run-k8s-v2-helm-tests
cd ../../.. && nix develop -c task k8s:run-k8s-v2-helm-tests

##@ Build Dependencies

Expand All @@ -160,11 +160,11 @@ $(KUSTOMIZE): $(LOCALBIN)

.PHONY: lint
lint:
cd ../../.. && nix develop -c ./task lint
cd ../../.. && nix develop -c task lint

.PHONY: lint-fix
lint-fix:
cd ../../.. && nix develop -c ./task lint-fix
cd ../../.. && nix develop -c task lint-fix

.PHONY: install-prometheus
install-prometheus:
Expand Down

0 comments on commit de6d48e

Please sign in to comment.