Skip to content

Commit

Permalink
Disable log collection by default for PAAS
Browse files Browse the repository at this point in the history
  • Loading branch information
treydock committed Dec 16, 2024
1 parent 72988c1 commit 0db1874
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/paas/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: paas
description: OSC PAAS bootstrap Helm Chart
type: application
version: 0.4.0
version: 0.5.0
appVersion: "0.1.0"
maintainers:
- name: treydock
Expand Down
3 changes: 2 additions & 1 deletion charts/paas/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# paas

![Version: 0.4.0](https://img.shields.io/badge/Version-0.4.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square)
![Version: 0.5.0](https://img.shields.io/badge/Version-0.5.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square)

OSC PAAS bootstrap Helm Chart

Expand Down Expand Up @@ -55,6 +55,7 @@ namespaces:
| account | The charge account for this namespace | **required** |
| groups | The groups that can manage the namespace's resources | `[]` |
| allowedDNS | Allowed DNS entries for namespace's Ingress resources | `[]` |
| collectLogs | Collect pod logs | `false` |
| cpuLimit | The max CPU this namespace can consume | `4` |
| cpuDefault | The default CPU request for this namespace | `1` |
| memoryLimit | The max memory this namespace can consume | `8Gi` |
Expand Down
1 change: 1 addition & 0 deletions charts/paas/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ namespaces:
| account | The charge account for this namespace | **required** |
| groups | The groups that can manage the namespace's resources | `[]` |
| allowedDNS | Allowed DNS entries for namespace's Ingress resources | `[]` |
| collectLogs | Collect pod logs | `false` |
| cpuLimit | The max CPU this namespace can consume | `4` |
| cpuDefault | The default CPU request for this namespace | `1` |
| memoryLimit | The max memory this namespace can consume | `8Gi` |
Expand Down
1 change: 1 addition & 0 deletions charts/paas/ci/test-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ namespaces:
serviceAccount: foo-account
account: foo
groups: ['bar']
collectLogs: true
- name: baz
serviceAccount: example
account: baz
3 changes: 3 additions & 0 deletions charts/paas/templates/namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ metadata:
{{- with $namespace.allowedDNS }}
osc.edu/allowed-dns: {{ join "," . | quote }}
{{- end }}
{{- if ne $namespace.collectLogs true }}
splunk.com/exclude: "true"
{{- end }}
{{ end }}

0 comments on commit 0db1874

Please sign in to comment.