chore: add makefile and skaffold config to simplify local testing
This commit is contained in:
parent
0e33c33415
commit
57b6d69b6b
27
Makefile
Normal file
27
Makefile
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
deployment_name ?= bitwarden-crd-operator
|
||||||
|
namespace ?= bitwarden-crd-operator
|
||||||
|
label_filter = -l app.kubernetes.io/instance=bitwarden-crd-operator -l app.kubernetes.io/name=bitwarden-crd-operator
|
||||||
|
|
||||||
|
create-namespace:
|
||||||
|
kubectl create namespace ${namespace}
|
||||||
|
|
||||||
|
dev:
|
||||||
|
skaffold dev -n ${namespace}
|
||||||
|
|
||||||
|
run:
|
||||||
|
skaffold run -n ${namespace}
|
||||||
|
|
||||||
|
pods:
|
||||||
|
kubectl -n ${namespace} get pods
|
||||||
|
|
||||||
|
desc-pods:
|
||||||
|
kubectl -n ${namespace} describe pod ${label_filter}
|
||||||
|
|
||||||
|
delete-pods-force:
|
||||||
|
kubectl -n ${namespace} delete pod ${label_filter} --force
|
||||||
|
|
||||||
|
exec:
|
||||||
|
kubectl -n ${namespace} exec -it deployment/${deployment_name} -- sh
|
||||||
|
|
||||||
|
logs:
|
||||||
|
kubectl -n ${namespace} logs -f --tail 30 deployment/${deployment_name}
|
17
skaffold.yaml
Normal file
17
skaffold.yaml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
apiVersion: skaffold/v4beta5
|
||||||
|
kind: Config
|
||||||
|
metadata:
|
||||||
|
name: bitwarden-crd-operator
|
||||||
|
build:
|
||||||
|
artifacts:
|
||||||
|
- image: ghcr.io/lerentis/bitwarden-crd-operator
|
||||||
|
docker:
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
deploy:
|
||||||
|
helm:
|
||||||
|
releases:
|
||||||
|
- name: bitwarden-crd-operator
|
||||||
|
chartPath: charts/bitwarden-crd-operator
|
||||||
|
valuesFiles:
|
||||||
|
- env/values.yaml
|
||||||
|
version: v0.7.4
|
Loading…
Reference in New Issue
Block a user