# Same fix as apps/gitlab/manifests/redis-init-fix.yaml (home) - GitLab # chart 7.7.0's initializer ordering bug: 7_prometheus_metrics.rb loads # before 7_redis.rb (alphabetical 'p' < 'r'), triggering Redis cache # access before Gitlab::Redis::ALL_CLASSES is defined. This ConfigMap # provides an early initializer that loads the Redis module first. # # Mounting this into webservice/sidekiq deployments still has to be a # manual kubectl patch after first deploy - chart 7.7.0 doesn't support # extraVolumes on those workloads, same limitation home hit, and home's # own patch was never git-tracked either (applied live). See this # directory's own deploy notes for the exact patch commands. apiVersion: v1 kind: ConfigMap metadata: name: redis-init-fix namespace: gitlab data: 0_redis_early.rb: | require "gitlab/redis"