Skip to content

Commit

Permalink
Add option for log level in gubernator (#598)
Browse files Browse the repository at this point in the history
Signed-off-by: Saswata Mukherjee <[email protected]>
  • Loading branch information
saswatamcode authored Sep 13, 2023
1 parent ba0ab0c commit 8bcf992
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ $(JSONNET_VENDOR_DIR): $(JB) jsonnetfile.json jsonnetfile.lock.json

.PHONY: update
update: $(JB) jsonnetfile.json jsonnetfile.lock.json
@$(JB) update --jsonnetpkg-home="$(JSONNET_VENDOR_DIR)" https://github.com/rhobs/obsctl-reloader/jsonnet/lib@main
@$(JB) update --jsonnetpkg-home="$(JSONNET_VENDOR_DIR)" https://github.com/observatorium/observatorium/configuration@main

.PHONY: format
format: $(JSONNET_SRC) $(JSONNETFMT) go-format
Expand Down
4 changes: 2 additions & 2 deletions jsonnetfile.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@
"subdir": "configuration"
}
},
"version": "05f2d2cd1467b29121ecc1e2732327b2464b3b0a",
"sum": "4VGJ2OWNQKIZ3ATmP/3pAjZIQJoVU6+CV2mR6gqVZzw="
"version": "54ed3ca4ce0d9b6d05abdc44c0a5abcb91045419",
"sum": "QMVHXmQ6fFl5Cg9XZ/5KgUwwEqyHwA9PGUfhxRLWp+E="
},
{
"source": {
Expand Down
4 changes: 4 additions & 0 deletions resources/services/observatorium-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1593,6 +1593,8 @@ objects:
value: app.kubernetes.io/name=gubernator
- name: GUBER_PEER_DISCOVERY_TYPE
value: k8s
- name: GUBER_LOG_LEVEL
value: ${GUBERNATOR_LOG_LEVEL}
image: ${GUBERNATOR_IMAGE}:${GUBERNATOR_IMAGE_TAG}
imagePullPolicy: IfNotPresent
name: gubernator
Expand Down Expand Up @@ -1736,6 +1738,8 @@ parameters:
value: 100Mi
- name: GUBERNATOR_REPLICAS
value: "2"
- name: GUBERNATOR_LOG_LEVEL
value: debug
- name: JAEGER_AGENT_IMAGE_TAG
value: 1.29.0
- name: JAEGER_AGENT_IMAGE
Expand Down
1 change: 1 addition & 0 deletions services/observatorium-template.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ local obs = import 'observatorium.libsonnet';
{ name: 'GUBERNATOR_MEMORY_LIMIT', value: '200Mi' },
{ name: 'GUBERNATOR_MEMORY_REQUEST', value: '100Mi' },
{ name: 'GUBERNATOR_REPLICAS', value: '2' },
{ name: 'GUBERNATOR_LOG_LEVEL', value: 'debug' },
{ name: 'JAEGER_AGENT_IMAGE_TAG', value: '1.29.0' },
{ name: 'JAEGER_AGENT_IMAGE', value: 'jaegertracing/jaeger-agent' },
{ name: 'JAEGER_COLLECTOR_NAMESPACE', value: '$(NAMESPACE)' },
Expand Down
1 change: 1 addition & 0 deletions services/observatorium.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ local obsctlReloader = (import 'github.com/rhobs/obsctl-reloader/jsonnet/lib/obs
version: '${GUBERNATOR_IMAGE_TAG}',
image: '%s:%s' % ['${GUBERNATOR_IMAGE}', cfg.version],
replicas: 1,
logLevel: '${GUBERNATOR_LOG_LEVEL}',
commonLabels+:: obs.config.commonLabels,
serviceMonitor: true,
resources: {
Expand Down

0 comments on commit 8bcf992

Please sign in to comment.