Skip to content

Commit

Permalink
Merge branch 'main' into feature/addingPodLabel
Browse files Browse the repository at this point in the history
  • Loading branch information
msvticket authored Oct 5, 2022
2 parents da0d2fd + 44f5430 commit a385965
Show file tree
Hide file tree
Showing 10 changed files with 186 additions and 148 deletions.
288 changes: 147 additions & 141 deletions charts/lighthouse/README.md

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions charts/lighthouse/templates/foghorn-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ spec:
value: "{{ .Values.logFormat }}"
- name: LOGRUS_SERVICE
value: "{{ .Values.logService | default .Chart.Name }}"
- name: LOG_LEVEL
value: "{{ .Values.foghorn.logLevel }}"
- name: LOGRUS_SERVICE_VERSION
value: "{{ .Chart.Version }}"
- name: LOGRUS_STACK_SKIP
Expand Down
6 changes: 3 additions & 3 deletions charts/lighthouse/templates/gc-jobs-cj.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,10 @@ spec:
concurrencyPolicy: {{ .Values.gcJobs.concurrencyPolicy }}
failedJobsHistoryLimit: {{ .Values.gcJobs.failedJobsHistoryLimit }}
jobTemplate:
metadata:
creationTimestamp: null
spec:
backoffLimit: {{ .Values.gcJobs.backoffLimit }}
template:
metadata:
creationTimestamp: null
labels:
app: {{ template "gcJobs.name" . }}
release: {{ .Release.Name }}
Expand All @@ -31,6 +28,9 @@ spec:
args:
- "--namespace={{ .Release.Namespace }}"
- "--max-age={{ .Values.gcJobs.maxAge }}"
env:
- name: LOG_LEVEL
value: "{{ .Values.gcJobs.logLevel }}"
name: {{ template "gcJobs.name" . }}
resources: {}
terminationMessagePath: /dev/termination-log
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ spec:
value: "{{ .Values.logFormat }}"
- name: LOGRUS_SERVICE
value: "{{ .Values.logService | default .Chart.Name }}"
- name: LOG_LEVEL
value: "{{ .Values.jenkinscontroller.logLevel }}"
- name: LOGRUS_SERVICE_VERSION
value: "{{ .Chart.Version }}"
- name: LOGRUS_STACK_SKIP
Expand Down
3 changes: 3 additions & 0 deletions charts/lighthouse/templates/keeper-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ spec:
imagePullPolicy: {{ tpl .Values.keeper.image.pullPolicy . }}
args:
- "--namespace={{ .Release.Namespace }}"
env:
- name: LOG_LEVEL
value: "{{ .Values.keeper.logLevel }}"
ports:
- name: http
containerPort: {{ .Values.keeper.service.internalPort }}
Expand Down
3 changes: 3 additions & 0 deletions charts/lighthouse/templates/poller-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ spec:
{{- if .Values.poller.requireReleaseSuccess }}
- --require-release-success
{{- end }}
env:
- name: LOG_LEVEL
value: "{{ .Values.poller.logLevel }}"
ports:
- name: http
containerPort: {{ .Values.poller.internalPort }}
Expand Down
2 changes: 2 additions & 0 deletions charts/lighthouse/templates/tekton-controller-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ spec:
value: "{{ .Values.logFormat }}"
- name: LOGRUS_SERVICE
value: "{{ .Values.logService | default .Chart.Name }}"
- name: LOG_LEVEL
value: "{{ .Values.tektoncontroller.logLevel }}"
- name: LOGRUS_SERVICE_VERSION
value: "{{ .Chart.Version }}"
- name: LOGRUS_STACK_SKIP
Expand Down
2 changes: 2 additions & 0 deletions charts/lighthouse/templates/webhooks-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ spec:
value: "{{ .Values.logFormat }}"
- name: LOGRUS_SERVICE
value: "{{ .Values.logService | default .Chart.Name }}"
- name: LOG_LEVEL
value: "{{ .Values.webhooks.logLevel }}"
- name: LOGRUS_SERVICE_VERSION
value: "{{ .Chart.Version }}"
- name: LOGRUS_STACK_SKIP
Expand Down
24 changes: 21 additions & 3 deletions charts/lighthouse/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ logFormat: "json"
# logService -- The name of the service registered with logging
logService: ""

# logLevel -- The logging level: debug, info, warn
logLevel: "info"

# logStackSkip -- Comma separated stack frames to skip from the log
logStackSkip: ""

Expand Down Expand Up @@ -77,6 +74,9 @@ externalPlugins:
name: lighthouse-webui-plugin

gcJobs:
# logLevel -- The logging level: trace, debug, info, warn, error, fatal
logLevel: "info"

# gcJobs.maxAge -- Max age from which `LighthouseJob`s will be deleted
maxAge: 168h

Expand Down Expand Up @@ -106,6 +106,9 @@ gcJobs:
pullPolicy: "{{ .Values.image.pullPolicy }}"

webhooks:
# logLevel -- The logging level: trace, debug, info, warn, error, fatal
logLevel: "info"

# webhooks.replicaCount -- Number of replicas
replicaCount: 1

Expand Down Expand Up @@ -197,6 +200,9 @@ webhooks:
customDeploymentTriggerCommand: ""

foghorn:
# logLevel -- The logging level: trace, debug, info, warn, error, fatal
logLevel: "info"

# foghorn.replicaCount -- Number of replicas
replicaCount: 1

Expand Down Expand Up @@ -235,6 +241,9 @@ foghorn:


tektoncontroller:
# logLevel -- The logging level: trace, debug, info, warn, error, fatal
logLevel: "info"

# tektoncontroller.dashboardURL -- the dashboard URL (e.g. Tekton dashboard)
dashboardURL: ''
# tektoncontroller.dashboardTemplate -- Go template expression for URLs in the dashboard if not using Tekton dashboard
Expand Down Expand Up @@ -284,6 +293,9 @@ tektoncontroller:
annotations: {}

jenkinscontroller:
# logLevel -- The logging level: trace, debug, info, warn, error, fatal
logLevel: "info"

# jenkinscontroller.jenkinsURL -- The URL of the Jenkins instance
jenkinsURL:

Expand Down Expand Up @@ -334,6 +346,9 @@ jenkinscontroller:
annotations: {}

keeper:
# logLevel -- The logging level: trace, debug, info, warn, error, fatal
logLevel: "info"

# keeper.statusContextLabel -- Label used to report status to git provider
statusContextLabel: "Lighthouse Merge Status"

Expand Down Expand Up @@ -407,6 +422,9 @@ keeper:
tolerations: []

poller:
# logLevel -- The logging level: trace, debug, info, warn, error, fatal
logLevel: "info"

# poller.enabled -- Whether to enable or disable the poller component
enabled: false

Expand Down
2 changes: 1 addition & 1 deletion pkg/config/lighthouse/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ type Config struct {
//
// Valid values:
//
// "debug", "info", "warn", "warning", "error", "fatal", "panic"
// "trace", "debug", "info", "warn", "warning", "error", "fatal", "panic"
//
// Defaults to "info".
LogLevel string `json:"log_level,omitempty"`
Expand Down

0 comments on commit a385965

Please sign in to comment.