Skip to content

(improve) support for kubernetes secrets in config #3760

@cboettig

Description

@cboettig

Bug description

The helm chart linter objects to the use of a kubernetes secret instead of a literal string as the value for an ImagePullSecret.password, like so:

imagePullSecret:
      create: true
      registry: ghcr.io
      username: cboettig
      password:
        valueFrom:
          secretKeyRef:
            name: jupyter-secrets
            key: GH_REGISTRY_PULL

Error: values don't meet the specifications of the schema(s) in the following chart(s):
jupyterhub:

  • at '/imagePullSecret/password': got object, want string

Other places where one would also want to use a kubernetes secret, such as hub.config.GitHubOAuthenticator fields do not trigger the linter, but for some reason still ultimately fail -- we just get the same error message about unexpected object deeper in the k8s logs when the hub doesn't start.

I think it would be reasonable to support kubernetes secrets for any of the secrets commonly used in the config.

See zulip discussion

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions