Skip to content

Commit

Permalink
Add permissions to codegen output dir
Browse files Browse the repository at this point in the history
  • Loading branch information
indiebrain committed Nov 27, 2023
1 parent 4470b92 commit 9d5b8d3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,20 @@ endif
.PHONY: update-codegen
update-codegen:
@echo ">> Generating code for Kubernetes CRD types..."

id $(whoami)
id -nG $(whoami)
# mkdir -p $(PWD)/api/redisfailover/v1
# chmod -R 7 $(PWD)/api/redisfailover/v1

docker run --rm \
-v $(PWD):/go/src/$(PROJECT_PACKAGE) \
-e PROJECT_PACKAGE=$(PROJECT_PACKAGE) \
-e CLIENT_GENERATOR_OUT=$(PROJECT_PACKAGE)/client/k8s \
-e APIS_ROOT=$(PROJECT_PACKAGE)/api \
-e GROUPS_VERSION="redisfailover:v1" \
-e GENERATION_TARGETS="deepcopy,client" \
$(CODEGEN_IMAGE)
$(CODEGEN_IMAGE) ls -lAh $(PWD)/api/redisfailover/v1/**/*

generate-crd:
docker run --rm \
Expand Down

0 comments on commit 9d5b8d3

Please sign in to comment.