Skip to content

Commit

Permalink
Run sharder with debug log level in kind
Browse files Browse the repository at this point in the history
  • Loading branch information
timebertt committed Nov 11, 2023
1 parent 046713d commit 030f145
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .run/sharder (kind).run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<configuration default="false" name="sharder (kind)" type="GoApplicationRunConfiguration" factoryName="Go Application">
<module name="kubernetes-controller-sharding" />
<working_directory value="$PROJECT_DIR$" />
<parameters value="--config=hack/config/sharder/local/config.yaml" />
<parameters value="--config=hack/config/sharder/local/config.yaml --zap-log-level=debug" />
<envs>
<env name="LEADER_ELECT" value="false" />
<env name="KUBECONFIG" value="$PROJECT_DIR$/hack/kind_kubeconfig.yaml" />
Expand Down
19 changes: 19 additions & 0 deletions hack/config/sharder/local/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions hack/config/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 030f145

Please sign in to comment.