Skip to content

Not found: "init-sidekiq-secrets"

Summary

Deployment of GitLab via Gitlab Environment Toolkit (cloud native hybrid mode) fails with error message after adding Omniauth Oauth2.0 generic configuration.

Steps to reproduce

  1. Deploy GitLab without Omniauth config
  2. Follow this guide

Configuration used

global:
  appConfig:
    omniauth:
      enabled: true
      providers:
        - name: "oauth2_generic"
          label: "Oauth2" # optional label for login button defaults to "Oauth2 Generic"
          app_id: "[REDACTED]"
          app_secret: "[REDACTED]"
          args:
            client_options:
              site: "[REDACTED]"
              user_info_url: "[REDACTED]"
              authorize_url: "[REDACTED]"
              token_url: "[REDACTED]"
            user_response_structure:
              root_path: []
              id_path: ["sub"]
              attributes:
                email: "email"
                name: "name"
            authorize_params:
              scope: "openid profile email"
            strategy_class: "OmniAuth::Strategies::OAuth2Generic"

Current behavior

Error is thrown

Expected behavior

  • No error is thrown
  • Oauth sign-in button appears on login page.

Versions

  • Chart: 6.8.4
  • Gitlab Environment Toolkit: 2.5.0
  • Platform:
    • Cloud: GKE
  • Kubernetes: (kubectl version)
    • Client: 1.25
    • Server: 1.24.9-gke.3200
  • Helm: (helm version)
    • Client: v3.9.4
    • Server:

Relevant logs

TASK [gitlab_charts : Install GitLab Charts] ***********************************

fatal: [localhost]: FAILED! => changed=false 

  command: /usr/local/bin/helm --version=6.8.4 upgrade -i --reset-values -f=/tmp/tmpi12j85wj.yml gitlab gitlab/gitlab

  msg: |-

    Failure when executing Helm command. Exited 1.

    stdout: Release "gitlab" does not exist. Installing it now.

  

    stderr: Error: failed to create resource: Deployment.apps "gitlab-sidekiq-all-in-1-v2" is invalid: [spec.template.spec.volumes[2].projected.sources[9].secret.name: Required value, spec.template.spec.initContainers[1].volumeMounts[1].name: Not found: "init-sidekiq-secrets"]

  stderr: |-

    Error: failed to create resource: Deployment.apps "gitlab-sidekiq-all-in-1-v2" is invalid: [spec.template.spec.volumes[2].projected.sources[9].secret.name: Required value, spec.template.spec.initContainers[1].volumeMounts[1].name: Not found: "init-sidekiq-secrets"]

  stderr_lines: <omitted>

  stdout: |-

    Release "gitlab" does not exist. Installing it now.

  stdout_lines: <omitted>
kubectl get pods -n ops
W0328 14:19:53.531190     669 gcp.go:119] WARNING: the gcp auth plugin is deprecated in v1.22+, unavailable in v1.26+; use gcloud instead.
To learn more, consult https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke
NAME                                                READY   STATUS             RESTARTS        AGE
gitlab-gitlab-exporter-868bdb86d6-mw5rh             2/2     Running            0               36m
gitlab-gitlab-shell-774bdb8544-qlqmj                2/2     Running            0               36m
gitlab-kas-84575bc866-9qvhz                         2/2     Running            0               36m
runners-gitlab-runner-v0-46-1-01-545b6f6787-w44vg   1/2     CrashLoopBackOff   7 (4m51s ago)   36m