Skip to content

Commit

Permalink
feat: add helm values for outpost log level and format
Browse files Browse the repository at this point in the history
  • Loading branch information
joshiste committed Oct 5, 2023
1 parent e9a79e3 commit 960d5d6
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/steadybit-outpost/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: steadybit-outpost
description: steadybit outpost Helm chart for Kubernetes.
version: 1.1.23
version: 1.1.24
appVersion: latest
home: https://www.steadybit.com/
icon: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png
Expand Down
4 changes: 4 additions & 0 deletions charts/steadybit-outpost/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ spec:
failureThreshold: {{ .Values.outpost.livenessProbe.failureThreshold }}
{{- end }}
env:
- name: STEADYBIT_LOG_LEVEL
value: {{ .Values.logging.level | quote }}
- name: STEADYBIT_LOG_FORMAT
value: {{ .Values.logging.format | quote }}
- name: STEADYBIT_AGENT_REGISTER_URL
value: {{ .Values.outpost.registerUrl | quote }}
{{ if .Values.outpost.key -}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ using oauth2 with mtls from containerPath and token uri:
automountServiceAccountToken: true
containers:
- env:
- name: STEADYBIT_LOG_LEVEL
value: INFO
- name: STEADYBIT_LOG_FORMAT
value: text
- name: STEADYBIT_AGENT_REGISTER_URL
value: https://platform.steadybit.io
- name: POD_IP
Expand Down Expand Up @@ -158,6 +162,10 @@ using oauth2 with mtls from secrets:
automountServiceAccountToken: true
containers:
- env:
- name: STEADYBIT_LOG_LEVEL
value: INFO
- name: STEADYBIT_LOG_FORMAT
value: text
- name: STEADYBIT_AGENT_REGISTER_URL
value: https://platform.steadybit.io
- name: POD_IP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ manifest should match snapshot:
automountServiceAccountToken: true
containers:
- env:
- name: STEADYBIT_LOG_LEVEL
value: INFO
- name: STEADYBIT_LOG_FORMAT
value: text
- name: STEADYBIT_AGENT_REGISTER_URL
value: https://platform.steadybit.io
- name: STEADYBIT_AGENT_KEY
Expand Down Expand Up @@ -176,6 +180,10 @@ should add aws account id from values:
automountServiceAccountToken: true
containers:
- env:
- name: STEADYBIT_LOG_LEVEL
value: INFO
- name: STEADYBIT_LOG_FORMAT
value: text
- name: STEADYBIT_AGENT_REGISTER_URL
value: https://platform.steadybit.io
- name: STEADYBIT_AGENT_KEY
Expand Down Expand Up @@ -305,6 +313,10 @@ should add match labels:
automountServiceAccountToken: true
containers:
- env:
- name: STEADYBIT_LOG_LEVEL
value: INFO
- name: STEADYBIT_LOG_FORMAT
value: text
- name: STEADYBIT_AGENT_REGISTER_URL
value: https://platform.steadybit.io
- name: STEADYBIT_AGENT_KEY
Expand Down Expand Up @@ -449,6 +461,10 @@ should apply extra pod labels:
automountServiceAccountToken: true
containers:
- env:
- name: STEADYBIT_LOG_LEVEL
value: INFO
- name: STEADYBIT_LOG_FORMAT
value: text
- name: STEADYBIT_AGENT_REGISTER_URL
value: https://platform.steadybit.io
- name: STEADYBIT_AGENT_KEY
Expand Down Expand Up @@ -577,6 +593,10 @@ using extensions with mtls from containerpath:
automountServiceAccountToken: true
containers:
- env:
- name: STEADYBIT_LOG_LEVEL
value: INFO
- name: STEADYBIT_LOG_FORMAT
value: text
- name: STEADYBIT_AGENT_REGISTER_URL
value: https://platform.steadybit.io
- name: STEADYBIT_AGENT_KEY
Expand Down Expand Up @@ -719,6 +739,10 @@ using extensions with mtls from secrets:
automountServiceAccountToken: true
containers:
- env:
- name: STEADYBIT_LOG_LEVEL
value: INFO
- name: STEADYBIT_LOG_FORMAT
value: text
- name: STEADYBIT_AGENT_REGISTER_URL
value: https://platform.steadybit.io
- name: STEADYBIT_AGENT_KEY
Expand Down Expand Up @@ -823,7 +847,7 @@ using extensions with mtls from secrets:
resources:
requests:
storage: 200Mi
using image pull secrets:
using image pull secrets with debug json log:
1: |
apiVersion: v1
data: null
Expand Down Expand Up @@ -873,6 +897,10 @@ using image pull secrets:
automountServiceAccountToken: true
containers:
- env:
- name: STEADYBIT_LOG_LEVEL
value: debug
- name: STEADYBIT_LOG_FORMAT
value: json
- name: STEADYBIT_AGENT_REGISTER_URL
value: https://platform.steadybit.io
- name: POD_IP
Expand Down
5 changes: 4 additions & 1 deletion charts/steadybit-outpost/tests/statefulset_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,16 @@ tests:
asserts:
- matchSnapshot: { }

- it: using image pull secrets
- it: using image pull secrets with debug json log
set:
global:
clusterName: test
image:
pullSecrets:
- test-pull-secret
logging:
format: json
level: debug
chart:
version: 0.0.0
asserts:
Expand Down
6 changes: 6 additions & 0 deletions charts/steadybit-outpost/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ outpost:
# outpost.aws.accountId -- If running on AWS, the account id of the outpost. If not set, the account id will be determined from the instance metadata or using sts:GetCallerIdentity.
accountId: null

logging:
# logging.level -- The active log level. Valid values are: TRACE, DEBUG, INFO, WARN, ERROR
level: INFO
# logging.format -- The format of the log entries. One of text, json
format: text

image:
# image.name -- The container image to use of the steadybit outpost.
name: steadybit/outpost
Expand Down

0 comments on commit 960d5d6

Please sign in to comment.