github.com/oam-dev/kubevela@v1.9.11/makefiles/develop.mk (about)

     1  
     2  # Install CRDs and Definitions of Vela Core into a cluster, this is for develop convenient.
     3  .PHONY: core-install
     4  core-install: manifests
     5  	kubectl apply -f hack/namespace.yaml
     6  	kubectl apply -f charts/vela-core/crds/
     7  	@$(OK) install succeed
     8  
     9  # Uninstall CRDs and Definitions of Vela Core from a cluster, this is for develop convenient.
    10  .PHONY: core-uninstall
    11  core-uninstall: manifests
    12  	kubectl delete -f charts/vela-core/crds/
    13  
    14  # Run against the configured Kubernetes cluster in ~/.kube/config
    15  .PHONY: run
    16  run:
    17  	go run ./cmd/core/main.go --application-revision-limit 5
    18  
    19  # Run against the configured Kubernetes cluster in ~/.kube/config with debug logs
    20  .PHONY: core-debug-run
    21  core-debug-run: fmt vet manifests
    22  	go run ./cmd/core/main.go --log-debug=true
    23  
    24  # Run against the configured Kubernetes cluster in ~/.kube/config
    25  .PHONY: core-run
    26  core-run: fmt vet manifests
    27  	go run ./cmd/core/main.go
    28  
    29  ## gen-cue: Generate CUE files from Go files. Variable DIR is the directory of the Go files, FLAGS is the flags for vela def gen-cue command.
    30  .PHONY: gen-cue
    31  gen-cue:
    32  	./hack/cuegen/cuegen.sh $(DIR) $(FLAGS)