Skip to content

Commit

Permalink
make deploy keeps the log level defaults.
Browse files Browse the repository at this point in the history
make local-deploy patches the deployment to have debug log level and development log mode.
  • Loading branch information
eguzki committed Jun 12, 2024
1 parent 2a042c9 commit 1168e54
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 24 deletions.
5 changes: 0 additions & 5 deletions config/deploy/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: kuadrant-system
resources:
- ../default
- ../dependencies
patchesStrategicMerge:
- manager_debug_mode.yaml
18 changes: 0 additions & 18 deletions config/deploy/manager_debug_mode.yaml

This file was deleted.

3 changes: 2 additions & 1 deletion make/development-environments.mk
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ namespace: ## Creates a namespace where to deploy Kuadrant Operator
local-deploy: ## Deploy Kuadrant Operator from the current code
$(MAKE) docker-build IMG=$(IMAGE_TAG_BASE):dev
$(MAKE) kind-load-image IMG=$(IMAGE_TAG_BASE):dev

$(MAKE) deploy IMG=$(IMAGE_TAG_BASE):dev
kubectl -n $(KUADRANT_NAMESPACE) wait --timeout=300s --for=condition=Available deployments --all
./utils/kuadrant-operator-debug-mode.sh
kubectl -n $(KUADRANT_NAMESPACE) wait --timeout=300s --for=condition=Available deployments --all

.PHONY: env-setup
env-setup: ## Install deploy kuadrant dependencies and configured gatewayapi provider
Expand Down
15 changes: 15 additions & 0 deletions utils/kuadrant-operator-debug-mode.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

kubectl patch deployment kuadrant-operator-controller-manager -n kuadrant-system --patch-file=/dev/stdin <<-EOF
---
spec:
template:
spec:
containers:
- name: manager
env:
- name: LOG_LEVEL
value: debug
- name: LOG_MODE
value: development
EOF

0 comments on commit 1168e54

Please sign in to comment.