Skip to content

Commit

Permalink
feature: Remove Audit Log PVC (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
coreydaley authored Nov 15, 2024
1 parent bc193ee commit 86aa9b2
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 38 deletions.
2 changes: 1 addition & 1 deletion charts/backstage/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ sources:
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.21.0
version: 2.22.0
2 changes: 1 addition & 1 deletion charts/backstage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# RHDH Backstage Helm Chart for OpenShift (Community Version)

[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/rhdh-chart&style=flat-square)](https://artifacthub.io/packages/search?repo=rhdh-chart)
![Version: 2.21.0](https://img.shields.io/badge/Version-2.21.0-informational?style=flat-square)
![Version: 2.22.0](https://img.shields.io/badge/Version-2.22.0-informational?style=flat-square)
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

A Helm chart for deploying Red Hat Developer Hub.
Expand Down
13 changes: 1 addition & 12 deletions charts/backstage/templates/pvcs.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ printf "%s-audit-log" .Release.Name }}
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ printf "%s-dynamic-plugins-root" .Release.Name }}
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
storage: 5Gi
15 changes: 0 additions & 15 deletions charts/backstage/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -954,11 +954,6 @@
"app": {
"baseUrl": "https://{{- include \"janus-idp.hostname\" . }}"
},
"auditLog": {
"rotateFile": {
"enabled": true
}
},
"auth": {
"providers": {}
},
Expand Down Expand Up @@ -2596,10 +2591,6 @@
{
"mountPath": "/opt/app-root/src/dynamic-plugins-root",
"name": "dynamic-plugins-root"
},
{
"mountPath": "/var/log/redhat-developer-hub/audit",
"name": "audit-log-data"
}
],
"items": {
Expand Down Expand Up @@ -2651,12 +2642,6 @@
"claimName": "{{ printf \"%s-dynamic-plugins-root\" .Release.Name }}"
}
},
{
"name": "audit-log-data",
"persistentVolumeClaim": {
"claimName": "{{ printf \"%s-audit-log\" .Release.Name }}"
}
},
{
"configMap": {
"defaultMode": 420,
Expand Down
9 changes: 0 additions & 9 deletions charts/backstage/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ upstream:
# create multiple DBs. Since Backstage requires by default 5 different DBs, we
# can't accommodate that properly.
appConfig:
auditLog:
rotateFile:
enabled: true
auth:
providers: {}
app:
Expand Down Expand Up @@ -123,16 +120,10 @@ upstream:
# The initContainer below will install dynamic plugins in this volume mount.
- name: dynamic-plugins-root
mountPath: /opt/app-root/src/dynamic-plugins-root
# Audit Log data will be stored in this volume mount.
- name: audit-log-data
mountPath: /var/log/redhat-developer-hub/audit
extraVolumes:
- name: dynamic-plugins-root
persistentVolumeClaim:
claimName: '{{ printf "%s-dynamic-plugins-root" .Release.Name }}'
- name: audit-log-data
persistentVolumeClaim:
claimName: '{{ printf "%s-audit-log" .Release.Name }}'
# Volume that will expose the `dynamic-plugins.yaml` file from the `dynamic-plugins` config map.
# The `dynamic-plugins` config map is created by the helm chart from the content of the `global.dynamic` field.
- name: dynamic-plugins
Expand Down

0 comments on commit 86aa9b2

Please sign in to comment.