Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option for log level in gubernator #598

Merged
merged 1 commit into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading