Use shared gravatar config for all Rails gitlab.yml.erb configmaps

What does this MR do?

Adds a shared gitlab.appConfig.gravatar helper template to ensure global.appConfig.gravatar settings are consistently applied to all Rails pods' gitlab.yml.erb configmaps.

Changes:

  • Creates templates/_gitlab_appConfig_gravatar.tpl helper that renders gravatar.plain_url and gravatar.ssl_url from global.appConfig.gravatar
  • Replaces inline gravatar configuration in webservice, sidekiq, and geo-logcursor with the shared helper
  • Adds gravatar configuration to toolbox and migrations (previously missing)

This ensures parity across all Rails components (webservice, sidekiq, geo-logcursor, toolbox, migrations) as requested in the issue.

Closes #6067

Author checklist

For general guidance, please follow our Contributing guide.

Required

For anything in this list which will not be completed, please provide a reason in the MR discussion.

  • Merge Request Title and Description are up to date, accurate, and descriptive.

  • MR targeting the appropriate branch.

  • MR has a green pipeline.

    • Will be verified after push and pipeline runs
  • Documentation created/updated.

  • Tests added/updated, and test plan for scenarios not covered by automated tests.

    • Manual testing performed: helm dependency build . helm template test .
      -f values.yaml
      --set certmanager-issuer.email=test@example.com
      --set global.appConfig.gravatar.plainUrl=http://example.com
      --set global.appConfig.gravatar.sslUrl=https://example.com \

      rendered.yaml - Verified gravatar.plain_url and gravatar.ssl_url are present in gitlab.yml.erb for:

      • ConfigMap/test-webservice
      • ConfigMap/test-sidekiq
      • ConfigMap/test-geo-logcursor
      • ConfigMap/test-toolbox
      • ConfigMap/test-migrations
    • Test plan: Automated tests should verify that all Rails configmaps include gravatar configuration when global.appConfig.gravatar is set.
  • Equivalent MR/issue for omnibus-gitlab opened.

    • Not applicable. This MR only affects Helm charts' gitlab.yml.erb template generation, not omnibus-gitlab templates.

Reviewers checklist

Edited by Jay Sawant

Merge request reports

Loading