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

fix(release-1.3): Make the audit log PVC configurable [RHIDP-5839] #89

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 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.19.3
version: 2.19.4
3 changes: 2 additions & 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.19.3](https://img.shields.io/badge/Version-2.19.3-informational?style=flat-square)
![Version: 2.19.4](https://img.shields.io/badge/Version-2.19.4-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 Expand Up @@ -181,6 +181,7 @@ Kubernetes: `>= 1.25.0-0`

| Key | Description | Type | Default |
|-----|-------------|------|---------|
| auditLog.volumeClaimSpec | Spec of the audit log volume claim. <br/> Note that, by default, this is set to use the default storage class, if available in the cluster. | object | `{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"1Gi"}},"storageClassName":null}` |
| dynamicPlugins.cache.volumeClaimSpec | Spec of the dynamic plugins root volume claim. <br/> Note that, by default, this is set to use the default storage class, if available in the cluster. | object | `{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"5Gi"}},"storageClassName":null}` |
| global.auth | Enable service authentication within Backstage instance | object | `{"backend":{"enabled":true,"existingSecret":"","value":""}}` |
| global.auth.backend | Backend service to service authentication <br /> Ref: https://backstage.io/docs/auth/service-to-service-auth/ | object | `{"enabled":true,"existingSecret":"","value":""}` |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ upstream:
# This custom-sc storage class is created in the test GH Workflow
storageClass: custom-sc

auditLog:
volumeClaimSpec:
resources:
requests:
storage: 2Gi
# This custom-sc storage class is created in the test GH Workflow
storageClassName: custom-sc

dynamicPlugins:
cache:
volumeClaimSpec:
Expand Down
6 changes: 1 addition & 5 deletions charts/backstage/templates/pvcs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ apiVersion: v1
metadata:
name: {{ printf "%s-audit-log" .Release.Name }}
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
{{- toYaml .Values.auditLog.volumeClaimSpec | nindent 2 }}
---
kind: PersistentVolumeClaim
apiVersion: v1
Expand Down
11 changes: 11 additions & 0 deletions charts/backstage/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,17 @@ route:
# <br /> While each router may make its own decisions on which ports to expose, this is normally port 80. The only valid values are None, Redirect, or empty for disabled.
insecureEdgeTerminationPolicy: "Redirect"

auditLog:
# -- Spec of the audit log volume claim.
# <br/> Note that, by default, this is set to use the default storage class, if available in the cluster.
volumeClaimSpec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: null

dynamicPlugins:
cache:
# -- Spec of the dynamic plugins root volume claim.
Expand Down
Loading