mirror of
https://gitlab.fabcity.hamburg/software/fab-city-software-kit.git
synced 2024-09-19 20:08:52 +02:00
added additional make commands for oml operations
This commit is contained in:
parent
53329f9e9b
commit
6b168b8b0d
35
Makefile
35
Makefile
|
@ -37,10 +37,13 @@ k3d-delete: ## Delete the local K3D development cluster
|
||||||
lint: yaml-lint markdown-lint ## Lint all input files.
|
lint: yaml-lint markdown-lint ## Lint all input files.
|
||||||
|
|
||||||
yaml-lint: ## Lint all YAML files.
|
yaml-lint: ## Lint all YAML files.
|
||||||
yamllint -f auto $(shell pwd)
|
yamllint -f auto .
|
||||||
|
|
||||||
markdown-lint: ## Lint all Markdown files.
|
markdown-lint: ## Lint all Markdown files.
|
||||||
mdl $(shell pwd)
|
mdl .
|
||||||
|
|
||||||
|
manifest-lint: ## Lint the Kubenetes manifest.
|
||||||
|
kubectl kustomize overlays/dev --enable-helm | kubeconform -ignore-missing-schemas -strict
|
||||||
|
|
||||||
##@ Test
|
##@ Test
|
||||||
|
|
||||||
|
@ -55,7 +58,7 @@ manifest: ## Build Kubernetes manifest using Helm.
|
||||||
##@ Deployment
|
##@ Deployment
|
||||||
|
|
||||||
deploy: ## Deploy local Kubernetes development cluster.
|
deploy: ## Deploy local Kubernetes development cluster.
|
||||||
kubectl kustomize overlays/dev/ --enable-helm | kubectl apply -f -
|
kubectl kustomize overlays/dev/ --enable-helm | kubectl apply --server-side=true -f -
|
||||||
|
|
||||||
clean: down up deploy ## Deploy a clean local Kubernetes development cluster.
|
clean: down up deploy ## Deploy a clean local Kubernetes development cluster.
|
||||||
|
|
||||||
|
@ -64,5 +67,31 @@ clean: down up deploy ## Deploy a clean local Kubernetes development cluster.
|
||||||
get-all: ## Get the state of all Kubernetes resources.
|
get-all: ## Get the state of all Kubernetes resources.
|
||||||
kubectl get all --all-namespaces
|
kubectl get all --all-namespaces
|
||||||
|
|
||||||
|
get-ns: ## Get all Kubernetes namespaces.
|
||||||
|
kubectl get namespaces
|
||||||
|
|
||||||
|
get-api: ## Get all Kubernetes api resources.
|
||||||
|
kubectl api-resources
|
||||||
|
|
||||||
watch-all: ## Watch the state of all Kubernetes resources.
|
watch-all: ## Watch the state of all Kubernetes resources.
|
||||||
watch -n 1 kubectl get all --all-namespaces
|
watch -n 1 kubectl get all --all-namespaces
|
||||||
|
|
||||||
|
get-olm-status: ## Get the state of the Operator Framework Lifecycle Manager.
|
||||||
|
operator-sdk olm status
|
||||||
|
|
||||||
|
get-olm-cat: ## Get the catalog sources of the Operator Framework Lifecycle Manager.
|
||||||
|
kubectl get catalogsources.operators.coreos.com --all-namespaces
|
||||||
|
|
||||||
|
get-olm-subs: ## Get the catalog subscriptions of the Operator Framework Lifecycle Manager.
|
||||||
|
kubectl get subscriptions.operators.coreos.com --all-namespaces
|
||||||
|
|
||||||
|
get-olm-pkgs: ## Get the package manifest of the Operator Framework Lifecycle Manager.
|
||||||
|
kubectl get packagemanifest --all-namespaces
|
||||||
|
|
||||||
|
get-olm-ip: ## Get the install plans of the Operator Framework Lifecycle Manager.
|
||||||
|
kubectl get installplans.operators.coreos.com --all-namespaces
|
||||||
|
|
||||||
|
##@ Logs
|
||||||
|
|
||||||
|
logs-oml-op: ## Show logs of the Operator Framework Lifecycle Manager.
|
||||||
|
kubectl logs -f deployment.apps/olm-operator --all-containers -n olm
|
||||||
|
|
Loading…
Reference in a new issue