From 030f1454cb7d87bb9ebd15658ea70503c813aafb Mon Sep 17 00:00:00 2001 From: Tim Ebert Date: Fri, 10 Nov 2023 22:27:18 +0100 Subject: [PATCH] Run sharder with debug log level in kind --- .run/sharder (kind).run.xml | 2 +- hack/config/sharder/local/kustomization.yaml | 19 +++++++++++++++++++ hack/config/skaffold.yaml | 8 ++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 hack/config/sharder/local/kustomization.yaml diff --git a/.run/sharder (kind).run.xml b/.run/sharder (kind).run.xml index 3a85bbf0..90beea8b 100644 --- a/.run/sharder (kind).run.xml +++ b/.run/sharder (kind).run.xml @@ -2,7 +2,7 @@ - + diff --git a/hack/config/sharder/local/kustomization.yaml b/hack/config/sharder/local/kustomization.yaml new file mode 100644 index 00000000..4189de72 --- /dev/null +++ b/hack/config/sharder/local/kustomization.yaml @@ -0,0 +1,19 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: +- ../../../../config/default + +patches: +- target: + group: apps + kind: Deployment + name: sharder + namespace: sharding-system + patch: | + - op: test + path: /spec/template/spec/containers/0/args/0 + value: --zap-log-level=info + - op: replace + path: /spec/template/spec/containers/0/args/0 + value: --zap-log-level=debug diff --git a/hack/config/skaffold.yaml b/hack/config/skaffold.yaml index e373d545..d999be7f 100644 --- a/hack/config/skaffold.yaml +++ b/hack/config/skaffold.yaml @@ -227,3 +227,11 @@ deploy: - --server-side - --force-conflicts defaultNamespace: "" +profiles: +- name: kind + activation: + - kubeContext: kind-.* + patches: + - op: replace + path: /manifests/kustomize/paths/0 + value: hack/config/sharder/local