Fixes the Upgrade Job label and automount service account token
General MR
Summary
Cleans the upstream redis files that should have been removed with the passthrough refactor. Removes the common.names.name ref to reference redis fullnameOverrides/nameOverrides. Removed common dependency chart.
Umbrella Branch
anchore_update_ui-redis_upstream
Relevant logs/screenshots
N/A
Linked Issue
Links to #143 (closed)
Upgrade Notices
The Redis package VirtualService and Grafana dashboard resource names have been updated to follow the fullnameOverride values in values.yaml (e.g., redis-bb and redis-bb-grafana-dashboards).
Upgrading to post-release 21.2.9-bb.1 may require a delete and redeploy of the Redis StatefulSet and PVC if the upgrade modifies any immutable specifications. To automate this process, you can enable the cleanUpgrade job by setting cleanUpgrade.enabled=true in values.yaml.
The cleanUpgrade job deletes and redeploys the Redis StatefulSet using its app.kubernetes.io/name label. By default, it automatically uses the value from nameOverride. However, if the Redis StatefulSet is deployed under an alias in the Chart.yaml, the label may differ.
Important Note: When enabled, the cleanUpgrade job deletes both the Redis StatefulSet and all associated PVCs that match the specified label selector. This will result in permanent data loss unless you have existing backups or external persistence. Use this job only when an upgrade changes immutable fields (such as volume claims or selectors) that prevent a normal Helm upgrade. Always confirm your PVCs, backups, and label selectors before running the job, and disable cleanUpgrade.enabled after the upgrade completes.
In this release (23.1.1-bb.1), we’ve added the cleanUpgrade.redisLabel key, allowing users to manually specify the exact label selector if the default doesn’t match the actual Redis resource labels. If you are upgrading from a pre–21.2.9-bb.1 release and are deploying Redis as a dependency chart, verify the Redis StatefulSet’s app.kubernetes.io/name label — it may need to be updated to align with the chart’s default labeling convention.
Links to #143 (closed)